Skip to content

Commit

Permalink
Backed out changeset 736e01530c6d (bug 1667491) for perma failures on…
Browse files Browse the repository at this point in the history
… 1667491.html. CLOSED TREE
  • Loading branch information
Razvan Maries committed Sep 30, 2020
1 parent c955285 commit e8fa10f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 41 deletions.
32 changes: 0 additions & 32 deletions docshell/base/crashtests/1667491.html

This file was deleted.

1 change: 0 additions & 1 deletion docshell/base/crashtests/crashtests.list
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ load 1341657.html
load 1584467.html
load 1614211-1.html
load 1617315-1.html
pref(dom.disable_open_during_load,false) pref(security.data_uri.unique_opaque_origin,false) pref(security.data_uri.block_toplevel_data_uri_navigations,false) load 1667491.html
16 changes: 8 additions & 8 deletions layout/base/nsDocumentViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1223,18 +1223,18 @@ nsDocumentViewer::PermitUnload(PermitUnloadAction aAction,
bool foundBlocker = false;
bool foundOOPListener = false;
bc->PreOrderWalk([&](BrowsingContext* aBC) {
if (!aBC->IsInProcess()) {
WindowContext* wc = aBC->GetCurrentWindowContext();
if (wc && wc->HasBeforeUnload()) {
foundOOPListener = true;
}
} else if (aBC->GetDocShell()) {
nsCOMPtr<nsIContentViewer> contentViewer(
aBC->GetDocShell()->GetContentViewer());
if (aBC->IsInProcess()) {
nsCOMPtr<nsIContentViewer> contentViewer;
aBC->GetDocShell()->GetContentViewer(getter_AddRefs(contentViewer));
if (contentViewer &&
contentViewer->DispatchBeforeUnload() == eRequestBlockNavigation) {
foundBlocker = true;
}
} else {
WindowContext* wc = aBC->GetCurrentWindowContext();
if (wc && wc->HasBeforeUnload()) {
foundOOPListener = true;
}
}
});

Expand Down

0 comments on commit e8fa10f

Please sign in to comment.