Bug 1297075 - initialise with default value showAccelerators| and |showFocusRings|. r?peterv draft
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Mon, 22 Aug 2016 17:06:31 +0300
changeset 403974 7d30d0e55819cc519448cc672fd04041b7695d6a
parent 402944 cf06fbc831754e54c6abb71d3136597488a530e0
child 529044 19ff32013129515c253efab12a2e9ea495131608
push id27058
push userbmo:bpostelnicu@mozilla.com
push dateMon, 22 Aug 2016 14:06:50 +0000
reviewerspeterv
bugs1297075
milestone51.0a1
Bug 1297075 - initialise with default value showAccelerators| and |showFocusRings|. r?peterv 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());