Bug 691614 - [Australis] Change zoom widget to work with e10s. r=felipe

This commit is contained in:
Tom Schuster 2014-01-17 20:58:56 +01:00
parent 48e551318f
commit 1b4f283ad7

View File

@ -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]
));