mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 691614 - [Australis] Change zoom widget to work with e10s. r=felipe
This commit is contained in:
parent
48e551318f
commit
1b4f283ad7
@ -365,9 +365,9 @@ const CustomizableWidgets = [{
|
||||
//XXXgijs in some tests we get called very early, and there's no docShell on the
|
||||
// tabbrowser. This breaks the zoom toolkit code (see bug 897410). Don't let that happen:
|
||||
let zoomFactor = 100;
|
||||
if (window.gBrowser.docShell) {
|
||||
try {
|
||||
zoomFactor = Math.floor(window.ZoomManager.zoom * 100);
|
||||
}
|
||||
} catch (e) {}
|
||||
zoomResetButton.setAttribute("label", CustomizableUI.getLocalizedProperty(
|
||||
buttons[1], "label", [zoomFactor]
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user