Bug 1297075 - initialise with default value showAccelerators| and |showFocusRings|. r=baku
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Mon, 22 Aug 2016 17:06:31 +0300
changeset 313058 b84791fdddb2458fe44a22dafe714426b569b20a
parent 313057 22cea8abf7e408bf742b3f1d97049bb99a3ac440
child 313059 68d9ee3993176dfbf39afd7a757b09dd2677d997
push id20479
push userkwierso@gmail.com
push dateThu, 08 Sep 2016 01:08:46 +0000
treeherderfx-team@fb7c6b034329 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1297075
milestone51.0a1
Bug 1297075 - initialise with default value showAccelerators| and |showFocusRings|. r=baku MozReview-Commit-ID: EB6F5RvoR9o
dom/ipc/TabContext.cpp
--- a/dom/ipc/TabContext.cpp
+++ b/dom/ipc/TabContext.cpp
@@ -297,18 +297,18 @@ MaybeInvalidTabContext::MaybeInvalidTabC
 {
   bool isMozBrowserElement = false;
   bool isPrerendered = false;
   uint32_t containingAppId = NO_APP_ID;
   DocShellOriginAttributes originAttributes;
   nsAutoCString originSuffix;
   nsAutoCString signedPkgOriginNoSuffix;
   nsAutoString presentationURL;
-  UIStateChangeType showAccelerators;
-  UIStateChangeType showFocusRings;
+  UIStateChangeType showAccelerators = UIStateChangeType_NoChange;
+  UIStateChangeType showFocusRings = UIStateChangeType_NoChange;
 
   switch(aParams.type()) {
     case IPCTabContext::TPopupIPCTabContext: {
       const PopupIPCTabContext &ipcContext = aParams.get_PopupIPCTabContext();
 
       TabContext *context;
       if (ipcContext.opener().type() == PBrowserOrId::TPBrowserParent) {
         context = TabParent::GetFrom(ipcContext.opener().get_PBrowserParent());