Re: unknown-content-type usable with xulrunner?

[email protected]
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
On Tuesday, July 11, 2006 6:04:37 PM UTC-4, [email protected] wrote:
> I'm trying to download a PDF through a <browser> in XulRunner, but have
> trouble at the step when the unknownContentType.xul dialog is loaded. I
> followed the advice at:
> http://developer.mozilla.org/en/docs/XULRunner_tips#Branding
> which finds the missing entities, but now I'm stuck on a javascript
> error in the window (says variable "dialog" is not defined).
> 
> Is this supposed to work "out-of-the-box"?
> 
> Also, isn't the "dialog" variable essentially like the "window"
> variable in HTML javascript? Why would that not be defined?
> 
> (Using xulrunner 1.8.0.1 on Windows XP Pro)
> 
> Thanks
> --Mark

I have stumbled upon this feature. And yes, it does work "out-of-the-box", it just takes a bit of digging. Since I agree that the "solution" to the branding issue described was a bit sketchy, I have documented the steps that worked for me at: ==> https://sites.google.com/a/digital-parts.com/xul-unknowncontent/home .
I haven't tested the steps, though, so if you find anything that needs correcting, let me know.

Ken
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.