зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset c738cce970b5 (bug 1544167) for causing permafailures on /browser_popup_condition.js. CLOSED TREE
This commit is contained in:
Родитель
1fc62f7b6f
Коммит
eddf40e132
|
@ -29,7 +29,6 @@
|
|||
#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"
|
||||
|
@ -416,14 +415,6 @@ 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,
|
||||
|
|
|
@ -105,9 +105,10 @@ class nsWindowWatcher : public nsIWindowWatcher,
|
|||
const mozilla::Maybe<float>& aOpenerFullZoom = mozilla::Nothing());
|
||||
|
||||
private:
|
||||
MOZ_CAN_RUN_SCRIPT_BOUNDARY nsresult CreateChromeWindow(
|
||||
nsIWebBrowserChrome* aParentChrome, uint32_t aChromeFlags,
|
||||
nsIOpenWindowInfo* aOpenWindowInfo, nsIWebBrowserChrome** aResult);
|
||||
nsresult CreateChromeWindow(nsIWebBrowserChrome* aParentChrome,
|
||||
uint32_t aChromeFlags,
|
||||
nsIOpenWindowInfo* aOpenWindowInfo,
|
||||
nsIWebBrowserChrome** aResult);
|
||||
|
||||
void MaybeDisablePersistence(const SizeSpec& sizeSpec,
|
||||
nsIDocShellTreeOwner* aTreeOwner);
|
||||
|
|
Загрузка…
Ссылка в новой задаче