Loading toolkit/components/windowwatcher/nsWindowWatcher.cpp +9 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ #include "mozilla/dom/BrowsingContextGroup.h" #include "mozilla/dom/Document.h" #include "mozilla/dom/DocumentInlines.h" #include "nsIDragService.h" #include "nsIDOMChromeWindow.h" #include "nsIPrompt.h" #include "nsIScriptObjectPrincipal.h" Loading Loading @@ -415,6 +416,14 @@ nsresult nsWindowWatcher::CreateChromeWindow(nsIWebBrowserChrome* aParentChrome, } bool cancel = false; if (aChromeFlags & nsIWebBrowserChrome::CHROME_OPENAS_DIALOG) { // If there are any drag and drop operations in flight, try to end them. nsCOMPtr<nsIDragService> ds = do_GetService("@mozilla.org/widget/dragservice;1"); if (ds) { ds->EndDragSession(true, 0); } } nsCOMPtr<nsIWebBrowserChrome> newWindowChrome; nsresult rv = mWindowCreator->CreateChromeWindow( aParentChrome, aChromeFlags, aOpenWindowInfo, &cancel, Loading toolkit/components/windowwatcher/nsWindowWatcher.h +3 −4 Original line number Diff line number Diff line Loading @@ -105,10 +105,9 @@ class nsWindowWatcher : public nsIWindowWatcher, const mozilla::Maybe<float>& aOpenerFullZoom = mozilla::Nothing()); private: nsresult CreateChromeWindow(nsIWebBrowserChrome* aParentChrome, uint32_t aChromeFlags, nsIOpenWindowInfo* aOpenWindowInfo, nsIWebBrowserChrome** aResult); MOZ_CAN_RUN_SCRIPT_BOUNDARY nsresult CreateChromeWindow( nsIWebBrowserChrome* aParentChrome, uint32_t aChromeFlags, nsIOpenWindowInfo* aOpenWindowInfo, nsIWebBrowserChrome** aResult); void MaybeDisablePersistence(const SizeSpec& sizeSpec, nsIDocShellTreeOwner* aTreeOwner); Loading Loading
toolkit/components/windowwatcher/nsWindowWatcher.cpp +9 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ #include "mozilla/dom/BrowsingContextGroup.h" #include "mozilla/dom/Document.h" #include "mozilla/dom/DocumentInlines.h" #include "nsIDragService.h" #include "nsIDOMChromeWindow.h" #include "nsIPrompt.h" #include "nsIScriptObjectPrincipal.h" Loading Loading @@ -415,6 +416,14 @@ nsresult nsWindowWatcher::CreateChromeWindow(nsIWebBrowserChrome* aParentChrome, } bool cancel = false; if (aChromeFlags & nsIWebBrowserChrome::CHROME_OPENAS_DIALOG) { // If there are any drag and drop operations in flight, try to end them. nsCOMPtr<nsIDragService> ds = do_GetService("@mozilla.org/widget/dragservice;1"); if (ds) { ds->EndDragSession(true, 0); } } nsCOMPtr<nsIWebBrowserChrome> newWindowChrome; nsresult rv = mWindowCreator->CreateChromeWindow( aParentChrome, aChromeFlags, aOpenWindowInfo, &cancel, Loading
toolkit/components/windowwatcher/nsWindowWatcher.h +3 −4 Original line number Diff line number Diff line Loading @@ -105,10 +105,9 @@ class nsWindowWatcher : public nsIWindowWatcher, const mozilla::Maybe<float>& aOpenerFullZoom = mozilla::Nothing()); private: nsresult CreateChromeWindow(nsIWebBrowserChrome* aParentChrome, uint32_t aChromeFlags, nsIOpenWindowInfo* aOpenWindowInfo, nsIWebBrowserChrome** aResult); MOZ_CAN_RUN_SCRIPT_BOUNDARY nsresult CreateChromeWindow( nsIWebBrowserChrome* aParentChrome, uint32_t aChromeFlags, nsIOpenWindowInfo* aOpenWindowInfo, nsIWebBrowserChrome** aResult); void MaybeDisablePersistence(const SizeSpec& sizeSpec, nsIDocShellTreeOwner* aTreeOwner); Loading