зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1156722 - Check for window.gBrowser instead of window.getBrowser r=smacleod
This commit is contained in:
Родитель
fd71ad4984
Коммит
bd14bee44a
|
@ -1635,8 +1635,8 @@ let SessionStoreInternal = {
|
||||||
if (!aTab.ownerDocument.defaultView.__SSi) {
|
if (!aTab.ownerDocument.defaultView.__SSi) {
|
||||||
throw Components.Exception("Default view is not tracked", Cr.NS_ERROR_INVALID_ARG);
|
throw Components.Exception("Default view is not tracked", Cr.NS_ERROR_INVALID_ARG);
|
||||||
}
|
}
|
||||||
if (!aWindow.getBrowser) {
|
if (!aWindow.gBrowser) {
|
||||||
throw Components.Exception("Invalid window object: no getBrowser", Cr.NS_ERROR_INVALID_ARG);
|
throw Components.Exception("Invalid window object: no gBrowser", Cr.NS_ERROR_INVALID_ARG);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Flush all data queued in the content script because we will need that
|
// Flush all data queued in the content script because we will need that
|
||||||
|
|
Загрузка…
Ссылка в новой задаче