Closed Bug 2034088 Opened 7 months ago Closed 4 months ago

VPN toolbar button shows incorrect state and excludes wrong URL for JSON/PDF viewer pages

Categories

(Firefox :: IP Protection, defect)

Firefox 149
x86_64
macOS
defect

Tracking

()

VERIFIED FIXED
154 Branch
Tracking Status
firefox154 --- verified
firefox155 --- verified

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:

  1. Start with a fresh exclusion list and VPN enabled
  2. Navigate to a page that renders a JSON or PDF viewer
  3. Click the VPN toolbar button and toggle "Use VPN for this site" off
  4. View exclusion list in about:preferences#privacy
  5. Observe either resource://pdf.js or resource://devtools in 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.io URL, also observe that the IP is using an IPPProtection VPN exit node instead of your actual IP address
  6. Click "Remove all websites" in the exclusion list
  7. Manually add the page's actual URL to the exclusion list
  8. 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.

Extra context for similar issue - https://bugzilla.mozilla.org/show_bug.cgi?id=2012113 (see lat comment)

The severity field is not set for this bug.
:fchasen, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(fchasen)
Flags: needinfo?(fchasen)
Severity: -- → S2
Assignee: nobody → mhynson
Status: NEW → ASSIGNED
Whiteboard: [fx-vpn]
Severity: S2 → S3
Assignee: mhynson → nobody
Status: ASSIGNED → NEW
Assignee: nobody → mhynson
Status: NEW → ASSIGNED
Pushed by mhynson@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/63e94264f774 https://hg.mozilla.org/integration/autoland/rev/3a2fc3984874 Display correct URL in VPN's site exclusion for JSON/PDF viewer pages. r=ip-protection-reviewers,sstreich
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
QA Whiteboard: [qa-triage-done-c155/b154]

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.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: