зеркало из https://github.com/mozilla/gecko-dev.git
Bug 851845 - Intermittent (NS_ERROR_NOT_AVAILABLE) [nsIDOMWindowUtils.getScrollbarSize]; r=jaws
This commit is contained in:
Родитель
19036f920d
Коммит
50b719379f
|
@ -244,7 +244,14 @@ this.PageThumbs = {
|
|||
let utils = aWindow.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||
.getInterface(Ci.nsIDOMWindowUtils);
|
||||
let sbWidth = {}, sbHeight = {};
|
||||
utils.getScrollbarSize(false, sbWidth, sbHeight);
|
||||
|
||||
try {
|
||||
utils.getScrollbarSize(false, sbWidth, sbHeight);
|
||||
} catch (e) {
|
||||
// This might fail if the window does not have a presShell.
|
||||
Cu.reportError("Unable to get scrollbar size in _determineCropSize.");
|
||||
sbWidth.value = sbHeight.value = 0;
|
||||
}
|
||||
|
||||
// Even in RTL mode, scrollbars are always on the right.
|
||||
// So there's no need to determine a left offset.
|
||||
|
|
Загрузка…
Ссылка в новой задаче