mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Merge from mozilla-central to mozilla-inbound
This commit is contained in:
commit
65706f0f22
@ -261,6 +261,8 @@ var PageActions = {
|
||||
let container = document.getElementById("pageactions-container");
|
||||
let visibleNodes = container.querySelectorAll("pageaction:not([hidden=true])");
|
||||
let visibleCount = visibleNodes.length;
|
||||
if (visibleCount == 0)
|
||||
return;
|
||||
|
||||
for (let i = 0; i < visibleCount; i++)
|
||||
visibleNodes[i].classList.remove("odd-last-child");
|
||||
|
@ -6,13 +6,14 @@ let gCurrentTab = null;
|
||||
function test() {
|
||||
waitForExplicitFinish();
|
||||
|
||||
gCurrentTab = Browser.addTab(testURL_01, true);
|
||||
messageManager.addMessageListener("pageshow", function() {
|
||||
if (gCurrentTab.browser.currentURI.spec == testURL_01) {
|
||||
messageManager.removeMessageListener("pageshow", arguments.callee);
|
||||
pageLoaded();
|
||||
}
|
||||
});
|
||||
|
||||
gCurrentTab = Browser.addTab(testURL_01, true);
|
||||
}
|
||||
|
||||
function pageLoaded() {
|
||||
|
Loading…
Reference in New Issue
Block a user