Bug 1275184 - Uninitialised value use in nsDocShellTreeOwner. r=smaug.
authorJulian Seward <jseward@acm.org>
Thu, 26 May 2016 14:15:50 +0200
changeset 340181 83a0dff3856c57b1124da4df3d69c535bcdcfd83
parent 340180 581a44c822aa0140a74bbf803b5b3801404d2e22
child 340182 429f5a3ae4badce551053d5697914d710301233e
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1275184
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1275184 - Uninitialised value use in nsDocShellTreeOwner. r=smaug.
embedding/browser/nsDocShellTreeOwner.cpp
--- a/embedding/browser/nsDocShellTreeOwner.cpp
+++ b/embedding/browser/nsDocShellTreeOwner.cpp
@@ -1014,17 +1014,17 @@ nsDocShellTreeOwner::HandleEvent(nsIDOME
   }
 
   nsCOMPtr<nsIDroppedLinkHandler> handler =
     do_GetService("@mozilla.org/content/dropped-link-handler;1");
   if (handler) {
     nsAutoString eventType;
     aEvent->GetType(eventType);
     if (eventType.EqualsLiteral("dragover")) {
-      bool canDropLink;
+      bool canDropLink = false;
       handler->CanDropLink(dragEvent, false, &canDropLink);
       if (canDropLink) {
         aEvent->PreventDefault();
       }
     } else if (eventType.EqualsLiteral("drop")) {
       nsIWebNavigation* webnav = static_cast<nsIWebNavigation*>(mWebBrowser);
 
       nsAutoString link, name;