зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1150052: move up weak reference resolving for garbage collected chatboxes to fix JS errors making Loop cry. r=mixedpuppy
--HG-- extra : rebase_source : e528a25426b61bea710337a02448e93c2ad2bde6
This commit is contained in:
Родитель
14fc08113f
Коммит
20cbd530a5
|
@ -555,8 +555,7 @@
|
|||
<parameter name="aCallback"/>
|
||||
<body><![CDATA[
|
||||
let cb = this.chatboxForURL.get(aURL);
|
||||
if (cb) {
|
||||
cb = cb.get();
|
||||
if (cb && cb = cb.get()) {
|
||||
// A chatbox is still alive to us when it's parented and still has
|
||||
// content.
|
||||
if (cb.parentNode && cb.contentWindow) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче