On 24/01/2005, at 3:05 AM, Boris Zbarsky wrote:
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....
Thanks for your suggestion Boris; I tried it and it did have an effect, but not the one I intended. (Sorry, I can't remember exactly what effect setting OriginalURI did, but it didn't work in any case ...).
I've actually received a private email from somebody else who'd been wanting to do the same thing, i.e. use a chrome XUL application as a viewer for a particular content type. I guess after banging my head against this for a while, it's just too hard (perhaps impossible) to do, so the best step from here would be to try to get support for this in the next versions of Mozilla. What would be the best way to go about doing this? (Sorry, I'm a bit new to Mozilla development practices.) Should I submit a bug report now, or use the mailing lists (such as this one) to discuss possible solutions first before submitting one?
-- % Andre Pang : trust.in.love.to.save <http://www.algorithm.com.au/> _______________________________________________ Mozilla-netlib mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-netlib
