Andre Pang wrote:

The bad news is two-fold: first, any hyperlinks I have in the browser content display don't actually update the location bar with the new hyperlink. i.e. If I am viewing data.foo via chrome://fooviewer/, and the chrome presents a hyperlink to data2.foo, then when the user clicks on that link, the location bar still displays data.foo.

Are you passing in the chrome channel to OnStartRequest, or the HTTP channel?

If the former, do you set the OriginalURI on your chrome channel to the HTTP channel, by any chance? If not, worth trying....

The basic problem is that docshell actually depends on the channel to know what's being loaded, so if you load something else but have the same channel....

Second, pressing the Back button when viewing data2.foo displays the entire chrome:// URL again for viewing data.foo (and pressing Forward from there displays the entire chrome:// URL for data2.foo).

Right. Because that's the URI that's stored in session history -- the URI of the channel.


You will likely also run into the issue that the document gets permissions based on its URI, so if its URI (as far as docshell is concerned) is not chrome it won't get chrome permissions...

-Boris
_______________________________________________
Mozilla-netlib mailing list
Mozilla-netlib@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to