Bug 915444 - Add webProgress to root actor for the chrome style editor and inspector. r=harth

This commit is contained in:
Philipp Kewisch 2013-10-17 21:28:49 +02:00
parent d43fabe210
commit 7df510b46b

View File

@ -190,6 +190,17 @@ RootActor.prototype = {
*/
get window() Services.wm.getMostRecentWindow(DebuggerServer.chromeWindowType),
/**
* Getter for the best nsIWebProgress for to watching this window.
*/
get webProgress() {
return this.window
.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIDocShell)
.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIWebProgress);
},
/**
* Disconnects the actor from the browser window.
*/