Re: Is there any events before loading a URL to a docshell.

2015-09-15 Thread Neil
Mike Conley wrote: From the passed in nsIWebProgress[1], you should be able to get at the nsIDOMWindow, and from there, I *think* you can get to the nsIDocShell by QI'ing the nsIWebProgress to an nsIInterfaceRequestor and then GetInterface'ing nsIDocShell. I haven't tried this, but I'm reason

Re: Is there any events before loading a URL to a docshell.

2015-09-14 Thread Mike Conley
Hey Yonggang, You might find nsIWebProgressListener useful: https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIWebProgressListener Specifically the onLocationChange method. This is fired once we've determined that we're going to load a new URI for a DOM Window. Fr

Is there any events before loading a URL to a docshell.

2015-09-13 Thread Yonggang Luo
So that I know what's the docshell is and the URL is. -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform