mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
Bug 509408: when getting notification asking to allow popup, it covers the url bar, r=stuart
This commit is contained in:
parent
ac1458e631
commit
648a8d4ac3
@ -422,6 +422,14 @@ var Browser = {
|
||||
}
|
||||
window.addEventListener("fullscreen", fullscreenHandler, false);
|
||||
|
||||
function notificationHandler() {
|
||||
// Let the view know that the layout might have changed
|
||||
bv.onAfterVisibleMove();
|
||||
}
|
||||
let notifications = document.getElementById("notifications");
|
||||
notifications.addEventListener("AlertActive", notificationHandler, false);
|
||||
notifications.addEventListener("AlertClose", notificationHandler, false);
|
||||
|
||||
// initialize input handling
|
||||
ih = new InputHandler(container);
|
||||
|
||||
|
@ -232,6 +232,8 @@
|
||||
</toolbar>
|
||||
</box>
|
||||
|
||||
<notificationbox id="notifications"/>
|
||||
|
||||
<!-- Content viewport -->
|
||||
<box>
|
||||
<html:div id="tile-container" style="width: 800px; height: 480px; overflow: hidden;"
|
||||
@ -256,9 +258,6 @@
|
||||
</scrollbox>
|
||||
|
||||
<box id="stack-toolbar-container" hidden="true" top="0" left="0"/>
|
||||
|
||||
<notificationbox id="notifications" top="0" left="0"/>
|
||||
|
||||
<!-- popup for find toolbar -->
|
||||
<hbox id="findbar-container" hidden="true" top="0" left="0">
|
||||
<findbar id="findbar" flex="1"/>
|
||||
|
@ -53,9 +53,14 @@
|
||||
document.removeEventListener("TabClose", this, true);
|
||||
document.removeEventListener("TabSelect", this, true);
|
||||
control.removeNotification(this);
|
||||
}
|
||||
else
|
||||
} else {
|
||||
this.hidden = true;
|
||||
}
|
||||
|
||||
// Fire an event when closing a notification
|
||||
let event = document.createEvent("Events");
|
||||
event.initEvent("AlertClose", true, true);
|
||||
this.dispatchEvent(event);
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
@ -79,7 +84,7 @@
|
||||
}
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
</method>
|
||||
</implementation>
|
||||
</binding>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user