rpl edited this page Sep 13, 2010 · 2 revisions
Clone this wiki locally

This is a forked repository. Have a look at
bard’s mozrepl wiki
for more information.

Temporary Fix Branches


On XulRunner trying to repl.enter from a main xul window to a browser_tag.contentWindow don’t work
’cause an Exception on removeEventListener:

function _migrateTopLevel(context) {
    if(this._hostContext instanceof Ci.nsIDOMWindow)
       this._hostContext.removeEventListener('unload', this._emergencyExit, false);

    this._hostContext[this._name] = undefined;
    this._hostContext = context;
    this._hostContext[this._name] = this;

    if(this._hostContext instanceof Ci.nsIDOMWindow)
        this._hostContext.addEventListener('unload', this._emergencyExit, false);

as temporary fix we’ve commented out add/removeEventListener calls, but this problem need more analysis.