mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 160fcef60196 (bug 882977)
This commit is contained in:
parent
de264e943c
commit
034df468f0
@ -277,7 +277,6 @@ MOCHITEST_BROWSER_FILES = \
|
||||
plugin_bug787619.html \
|
||||
plugin_bug797677.html \
|
||||
plugin_bug820497.html \
|
||||
browser_bug882977.js \
|
||||
plugin_hidden_to_visible.html \
|
||||
plugin_two_types.html \
|
||||
alltabslistener.html \
|
||||
|
@ -1,40 +0,0 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/
|
||||
*/
|
||||
|
||||
function test() {
|
||||
waitForExplicitFinish();
|
||||
|
||||
registerCleanupFunction(function() {
|
||||
Services.prefs.clearUserPref("browser.startup.homepage");
|
||||
Services.prefs.clearUserPref("browser.startup.page");
|
||||
win.close();
|
||||
});
|
||||
|
||||
let homepage = "about:home";
|
||||
Services.prefs.setCharPref("browser.startup.homepage", homepage);
|
||||
Services.prefs.setIntPref("browser.startup.page", 1);
|
||||
let win = OpenBrowserWindow();
|
||||
whenDelayedStartupFinished(win, function() {
|
||||
let browser = win.gBrowser.selectedBrowser;
|
||||
if (browser.contentDocument.readyState == "complete" &&
|
||||
browser.currentURI.spec == homepage) {
|
||||
checkIdentityMode(win);
|
||||
return;
|
||||
}
|
||||
|
||||
browser.addEventListener("load", function onLoad() {
|
||||
if (browser.currentURI.spec != homepage)
|
||||
return;
|
||||
browser.removeEventListener("load", onLoad, true);
|
||||
checkIdentityMode(win);
|
||||
}, true);
|
||||
});
|
||||
}
|
||||
|
||||
function checkIdentityMode(win) {
|
||||
let identityMode = win.document.getElementById("identity-box").className;
|
||||
is(identityMode, "unknownIdentity", "Identity should be chromeUI but is currently " +
|
||||
"shown as unknownIdentity for new windows.");
|
||||
finish();
|
||||
}
|
Loading…
Reference in New Issue
Block a user