Bug 998898 - Fix webconsole exception on simulator. r=jryans

This commit is contained in:
Alexandre Poirot 2014-04-23 06:45:38 -07:00
parent 93d55c6e94
commit 58d9f4a8b3

View File

@ -537,7 +537,9 @@ TabActor.prototype = {
* Getter for the nsIMessageManager associated to the tab.
*/
get messageManager() {
return this._chromeEventHandler;
return this.docShell
.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIContentFrameMessageManager);
},
/**
@ -1085,14 +1087,6 @@ Object.defineProperty(BrowserTabActor.prototype, "docShell", {
configurable: false
});
Object.defineProperty(BrowserTabActor.prototype, "messageManager", {
get: function() {
return this._browser.messageManager;
},
enumerable: true,
configurable: false
});
Object.defineProperty(BrowserTabActor.prototype, "title", {
get: function() {
let title = this.contentDocument.title || this._browser.contentTitle;