Back out bug 967873 - Proxy nsDocumentViewer::PermitUnload to the child process

This commit is contained in:
Bill McCloskey
2015-10-07 11:07:44 -07:00
parent b91728c8be
commit 8612a67a22
17 changed files with 167 additions and 303 deletions

View File

@@ -1519,7 +1519,7 @@ nsHTMLDocument::Open(JSContext* cx,
if (cv) {
bool okToUnload;
if (NS_SUCCEEDED(cv->PermitUnload(&okToUnload)) && !okToUnload) {
if (NS_SUCCEEDED(cv->PermitUnload(false, &okToUnload)) && !okToUnload) {
// We don't want to unload, so stop here, but don't throw an
// exception.
nsCOMPtr<nsIDocument> ret = this;