Open Bug 1655069 Opened 5 years ago Updated 3 years ago

CSP/XFO error pages should offer an option to visit the page directly on Android

Categories

(Firefox for Android :: General, defect)

All
Android
defect

Tracking

()

Tracking Status
firefox80 --- affected

People

(Reporter: kbrosnan, Unassigned, Mentored)

References

(Blocks 1 open bug)

Details

(Whiteboard: [geckoview])

Provide the same affordance as bug 1461195 for Android. The button does not show up. Would be good to do the copy update mentioned in bug 1643964 as Android will definitely be opening a new tab.

Bug 1461195 comment 6

Updated (simpler) STR:

For these two error pages, we want to offer the possibility to open the page directly, to do that, we could do that by offering an option like the one shown in the screenshot in comment 0 on the page.

The important part is outlined in comment 5. If we add a link to the page, we need to ensure that we're not opening it with the system principal, so that SameSite=Strict cookies are not set. You can use https://samesite-cookies.glitch.me/ to quickly test whether or not you're loading SameSite cookies. If a link from the error page is sending SameSite cookies, we could fall back to calling window.open() instead, which will hopefully not.

The more challenging part may be writing a test for this. To verify SameSite=Strict cookies aren't loading, we'll need to use a server script in our test.

Severity: normal → --
Priority: P2 → --

This is front-end code, should probably be filed against Fenix (bug 1461195 shouldn't have been "DOM: Security").

Component: DOM: Security → Security: Android
Product: Core → Fenix
Version: Trunk → unspecified
Component: Security: Android → General
Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.