mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 583041 - Style Editor integration; sourceeditor fix; r=rcampbell,msucan
This commit is contained in:
parent
0a65912c6d
commit
ae9e468806
@ -222,7 +222,17 @@ SourceEditor.prototype = {
|
||||
}, this);
|
||||
|
||||
if (aCallback) {
|
||||
aCallback(this);
|
||||
let iframe = this._view._frame;
|
||||
let document = iframe.contentDocument;
|
||||
if (!document || document.readyState != "complete") {
|
||||
let onIframeLoad = function () {
|
||||
iframe.contentWindow.removeEventListener("load", onIframeLoad, false);
|
||||
aCallback(this);
|
||||
}.bind(this);
|
||||
iframe.contentWindow.addEventListener("load", onIframeLoad, false);
|
||||
} else {
|
||||
aCallback(this);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user