VPN toolbar button shows incorrect state and excludes wrong URL for JSON/PDF viewer pages
Categories
(Firefox :: IP Protection, defect)
Tracking
()
People
(Reporter: jporter, Assigned: mhynson)
References
Details
(Whiteboard: [fx-vpn])
Attachments
(1 file, 1 external file)
When viewing a page that renders as a JSON viewer or PDF viewer (using Firefox's built-in viewers), the VPN indicator button reflects an incorrect connection state, and using the "Use VPN for this site" exclusion toggle excludes the wrong URL.
Steps to reproduce:
- Start with a fresh exclusion list and VPN enabled
- Navigate to a page that renders a JSON or PDF viewer
- Click the VPN toolbar button and toggle "Use VPN for this site" off
- View exclusion list in
about:preferences#privacy - Observe either
resource://pdf.jsorresource://devtoolsin the exclusion list instead of the page's actual URL, and the invalid VPN state based on the exclusion list- If loading the
api.my-ip.ioURL, also observe that the IP is using an IPPProtection VPN exit node instead of your actual IP address
- If loading the
- Click "Remove all websites" in the exclusion list
- Manually add the page's actual URL to the exclusion list
- Observe the VPN state is now showing as "Enabled" when it should be "Disabled" based on the exclusion list
Repeat this process with devtools.jsonview.enabled set to false and observe expected behavior for the JSON url. Disabling PDF previews just downloads the PDF instead of rendering it, so the PDF viewer case cannot be tested with a preference toggle.
Expected result
The VPN toolbar button should reflect the correct state based on the page's actual URL, and the "Use VPN for this site" toggle should exclude the page's actual URL.
Actual result
The VPN toolbar button reflects an incorrect state based on the viewer's URL instead of the page's actual URL, and the "Use VPN for this site" toggle excludes the viewer's URL instead of the page's actual URL.
Comment 1•6 months ago
|
||
Extra context for similar issue - https://bugzilla.mozilla.org/show_bug.cgi?id=2012113 (see lat comment)
Comment 2•6 months ago
|
||
The severity field is not set for this bug.
:fchasen, could you have a look please?
For more information, please visit BugBot documentation.
Updated•6 months ago
|
Updated•6 months ago
|
| Assignee | ||
Updated•6 months ago
|
| Assignee | ||
Comment 3•6 months ago
|
||
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Updated•4 months ago
|
Updated•4 months ago
|
Comment 5•4 months ago
|
||
| bugherder | ||
Updated•4 months ago
|
Comment 6•4 months ago
|
||
Verified this as fixed using Firefox Beta154.0b1 and Firefox Nightly 155.0a1 on Windows 11.
Adding "https://blog.mozilla.org/wp-content/blogs.dir/278/files/2025/11/Mozilla-Summary-Portfolio-Strategy.pdf" and "https://api.my-ip.io/v2/ip.json" manually or from the VPN panel to the exclussion list, excludes both websites.
The URLs added to about:preferences#privacy are https://blog.mozilla.org and https://api.my-ip.io.
Updated•4 months ago
|
Description
•