PAC: PAC files need to be displayed (not loaded)
Categories
(Firefox :: File Handling, enhancement, P5)
Tracking
()
People
(Reporter: benc, Unassigned)
References
(Depends on 1 open bug)
Details
(Keywords: helpwanted)
Comment 3•24 years ago
|
||
Comment 4•24 years ago
|
||
Comment 9•22 years ago
|
||
Reporter | ||
Comment 11•22 years ago
|
||
![]() |
||
Comment 13•22 years ago
|
||
Comment 14•22 years ago
|
||
![]() |
||
Comment 15•22 years ago
|
||
Comment 16•22 years ago
|
||
![]() |
||
Comment 17•22 years ago
|
||
Comment 18•21 years ago
|
||
Reporter | ||
Comment 19•21 years ago
|
||
Reporter | ||
Comment 20•21 years ago
|
||
Updated•16 years ago
|
Updated•9 years ago
|
Comment 21•3 years ago
|
||
In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.
Comment 22•2 years ago
|
||
The severity field is not set for this bug.
:Gijs, could you have a look please?
For more information, please visit BugBot documentation.
Comment 23•2 years ago
|
||
Valentin, do you know if PAC files are still in common use and/or if it would make sense to treat these as text/plain
so they showed up inline by default? AIUI this is much simpler to fix than bug 57342 - to fix that bug would require UI work and thinking about what the UX should be in the current world (where the "what do you want to do with this file" dialog isn't the default anyway). But here, I think we could "just" add a converter registration that maps application/x-ns-proxy-autoconfig
to text/html
using the text-to-html converter, I think? cf. https://searchfox.org/mozilla-central/search?q=streamconv%3B1%3Ffrom&path=&case=false®exp=false
Comment 24•2 years ago
|
||
PAC files are still very much in use. I'm not sure just how critical it is to be able to display them in the browser though, but looking through the PAC code I don't think treating them as text/plain would cause any issues.
But here, I think we could "just" add a converter registration that maps application/x-ns-proxy-autoconfig to text/html using the text-to-html converter, I think? cf. https://searchfox.org/mozilla-central/search?q=streamconv%3B1%3Ffrom&path=&case=false®exp=false
Yes, I think that might work. Or otherwise just add a content handler for this content type here? The opposite of what we're doing in bug 1824325 for application/http-index-format.
Comment 25•2 years ago
|
||
The severity field is not set for this bug.
:Gijs, could you have a look please?
For more information, please visit BugBot documentation.
Updated•2 years ago
|
Comment 26•5 months ago
|
||
PAC files are similar to JavaScript files.
Since Firefox displays JavaScript as plain text, there is no complication in displaying .pac
similarly.
Description
•