Backed out 5 changesets (bug 1615588) for browser-chrome failures e.g. browser_beforeunload_duplicate_dialogs.js. CLOSED TREE

Backed out changeset 751cca7566a8 (bug 1615588)
Backed out changeset 474aca043834 (bug 1615588)
Backed out changeset 7839b95ef76c (bug 1615588)
Backed out changeset 32bb87f48b13 (bug 1615588)
Backed out changeset 264e642042b1 (bug 1615588)
This commit is contained in:
Csoregi Natalia
2020-04-10 21:19:15 +03:00
parent 587b4a27d4
commit a3c8408007
28 changed files with 1508 additions and 1884 deletions

View File

@@ -11516,12 +11516,11 @@ nsresult nsDocShell::ConfirmRepost(bool* aRepost) {
return rv;
}
// Make the repost prompt content modal to prevent malicious pages from
// locking up the browser, see bug 1412559 for an example.
// Make the repost prompt tab modal to prevent malicious pages from locking
// up the browser, see bug 1412559 for an example.
if (nsCOMPtr<nsIWritablePropertyBag2> promptBag =
do_QueryInterface(prompter)) {
promptBag->SetPropertyAsUint32(NS_LITERAL_STRING("modalType"),
nsIPrompt::MODAL_TYPE_CONTENT);
promptBag->SetPropertyAsBool(NS_LITERAL_STRING("allowTabModal"), true);
}
int32_t buttonPressed;