From 5b5db164211a1685fa4a635704e37e7e99c52fd2 Mon Sep 17 00:00:00 2001 From: Olli Pettay Date: Mon, 10 Dec 2012 21:52:01 +0200 Subject: [PATCH] Backout Bug 818559 to fix Bug 820067, a=me --- browser/base/content/test/browser_bug676619.js | 3 +-- browser/base/content/test/download_page.html | 5 ----- docshell/base/nsDocShell.cpp | 7 +++---- dom/src/jsurl/nsJSProtocolHandler.cpp | 11 ++++------- 4 files changed, 8 insertions(+), 18 deletions(-) diff --git a/browser/base/content/test/browser_bug676619.js b/browser/base/content/test/browser_bug676619.js index 23dd66e87c9..647ec2495f1 100644 --- a/browser/base/content/test/browser_bug676619.js +++ b/browser/base/content/test/browser_bug676619.js @@ -23,7 +23,6 @@ function test () { function testLink(link, name, next) { addWindowListener("chrome://mozapps/content/downloads/unknownContentType.xul", function (win) { - is(doc.getElementById("unload-flag").textContent, "Okay", "beforeunload shouldn't have fired"); is(win.document.getElementById("location").value, name, "file name should match"); win.close(); next(); @@ -118,4 +117,4 @@ TabOpenListener.prototype = { this.closecallback = null; } } -}; +}; \ No newline at end of file diff --git a/browser/base/content/test/download_page.html b/browser/base/content/test/download_page.html index 541f6f88b36..3f5c34d3d7d 100644 --- a/browser/base/content/test/download_page.html +++ b/browser/base/content/test/download_page.html @@ -33,15 +33,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=676619 li.appendChild(a); document.getElementsByTagName('ul')[0].appendChild(li); - - window.addEventListener("beforeunload", function (evt) { - document.getElementById("unload-flag").textContent = "Fail"; - });