зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1302702 - Fix inspector panel deadwrapper exceptions on addon reloads. r=ochameau
MozReview-Commit-ID: DPaUiLeTyCC --HG-- extra : rebase_source : 8e72e722ef200f48ce2a2489f4c60de05ab9d4cf
This commit is contained in:
Родитель
4a08259610
Коммит
c422dba97a
|
@ -2446,6 +2446,8 @@ var WalkerActor = protocol.ActorClassWithSpec(walkerSpec, {
|
|||
this.rootDoc.defaultView) {
|
||||
this.onFrameUnload({ window: this.rootDoc.defaultView });
|
||||
}
|
||||
// Update all DOM objects references to target the new document.
|
||||
this.rootWin = window;
|
||||
this.rootDoc = window.document;
|
||||
this.rootNode = this.document();
|
||||
this.queueMutation({
|
||||
|
@ -2987,7 +2989,7 @@ function DocumentWalker(node, rootWin,
|
|||
whatToShow = nodeFilterConstants.SHOW_ALL,
|
||||
filter = standardTreeWalkerFilter,
|
||||
skipTo = SKIP_TO_PARENT) {
|
||||
if (!rootWin.location) {
|
||||
if (Cu.isDeadWrapper(rootWin) || !rootWin.location) {
|
||||
throw new Error("Got an invalid root window in DocumentWalker");
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче