summaryrefslogtreecommitdiff
path: root/docshell/base
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-21 20:00:48 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-21 21:36:54 -0500
commita9290ef91ec408fa7886b99cc59be40b413a0ce0 (patch)
tree1fa82c7349a85865717c83dedbba38aae87fe8b9 /docshell/base
parent722161775b9ec9314d1b02f567e42b83115cf993 (diff)
downloaduxp-a9290ef91ec408fa7886b99cc59be40b413a0ce0.tar.gz
Issue #1366 - Completely remove showModalDialog
Diffstat (limited to 'docshell/base')
-rw-r--r--docshell/base/nsDocShell.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp
index ebaf07bcdf..6104ebfa71 100644
--- a/docshell/base/nsDocShell.cpp
+++ b/docshell/base/nsDocShell.cpp
@@ -13356,24 +13356,9 @@ nsDocShell::EnsureScriptEnvironment()
uint32_t chromeFlags;
browserChrome->GetChromeFlags(&chromeFlags);
- bool isModalContentWindow =
- (mItemType == typeContent) &&
- (chromeFlags & nsIWebBrowserChrome::CHROME_MODAL_CONTENT_WINDOW);
- // There can be various other content docshells associated with the
- // top-level window, like sidebars. Make sure that we only create an
- // nsGlobalModalWindow for the primary content shell.
- if (isModalContentWindow) {
- nsCOMPtr<nsIDocShellTreeItem> primaryItem;
- nsresult rv =
- mTreeOwner->GetPrimaryContentShell(getter_AddRefs(primaryItem));
- NS_ENSURE_SUCCESS(rv, rv);
- isModalContentWindow = (primaryItem == this);
- }
-
// If our window is modal and we're not opened as chrome, make
// this window a modal content window.
- mScriptGlobal =
- NS_NewScriptGlobalObject(mItemType == typeChrome, isModalContentWindow);
+ mScriptGlobal = NS_NewScriptGlobalObject(mItemType == typeChrome);
MOZ_ASSERT(mScriptGlobal);
mScriptGlobal->SetDocShell(this);