Closed Bug 1697866 Opened 3 years ago Closed 3 years ago

Display HTTPS-Only exception pages and allow bypass them on Android

Categories

(GeckoView :: General, task, P1)

Unspecified
All

Tracking

(firefox94 fixed)

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: ckerschb, Assigned: owlish)

References

Details

(Whiteboard: [geckoview:m90][geckoview:m91][geckoview:m92][geckoview:m93][geckoview:m94])

Attachments

(1 file, 1 obsolete file)

GeckoView uses different exception pages than Desktop Firefox. E.g. for https-only-mode we added some specific tests which seem hard to port to GeckoView at the moment (e.g. within Bug 1691888).

From what I can tell all other error page tests are kept within toolkit and are all disabled on android/geckoview.

Severity: -- → S3
Priority: -- → P2
Whiteboard: [geckoview:m90]
Whiteboard: [geckoview:m90] → [geckoview:m90?]
Priority: P2 → P1
Whiteboard: [geckoview:m90?] → [geckoview:m90]
Rank: 3

From what I'm seeing we don't handle error pages correctly for HTTPS only mode, and that's a problem beyond tests. We likely need to also change the error code here for GeckoView to behave correctly: https://searchfox.org/mozilla-central/rev/6e630edb09c3ab06d0103665b16c9ea7dce782c5/docshell/base/nsDocShell.cpp#3903-3907 (even if only for Android).

Since GV only gets the error code and not the error page name: https://searchfox.org/mozilla-central/rev/6e630edb09c3ab06d0103665b16c9ea7dce782c5/docshell/base/nsDocShell.cpp#3911-3913

Christoph, what is the timeline for shipping HTTPs only mode on Fenix? How urgently do we need to schedule this in?

Flags: needinfo?(ckerschb)
Whiteboard: [geckoview:m90] → [geckoview:m90][geckoview:m91]

The current plan is

  • https-only will remain an opt-in feature for Desktop Firefox and hence also for GV.
  • However, we are planning to ship https-first, which upgrades the top-level load to https with a fallback to http in the near future. We are soon ready to do that in PBM in Nightly (see Bug 1709838). It seems all the tests for https-first (which are bundled within dom/security/test/https-first) are enabled for GV.

Arthur, anything I am missing?

Flags: needinfo?(ckerschb) → needinfo?(arthur)
Rank: 3 → 4
Whiteboard: [geckoview:m90][geckoview:m91] → [geckoview:m90][geckoview:m91][geckoview:m92]
Assignee: nobody → bugzeeeeee
Attachment #9233221 - Attachment description: WIP: Bug 1697866 - Add HTTPS-only specific error code and pass it to GeckoView, to handle HTTPS-only specific errors correctly → Bug 1697866 - Add HTTPS-only specific error code and pass it to GeckoView, to handle HTTPS-only specific errors correctly
Whiteboard: [geckoview:m90][geckoview:m91][geckoview:m92] → [geckoview:m90][geckoview:m91][geckoview:m92][geckoview:m93]
Attachment #9234498 - Attachment description: WIP: Bug 1697866 - Add HTTPS-only specific error code and pass it to GeckoView, to handle HTTPS-only specific errors correctly → Bug 1697866 - Add HTTPS-only specific error code and pass it to GeckoView, to handle HTTPS-only specific errors correctly
Attachment #9234498 - Attachment is obsolete: true
Whiteboard: [geckoview:m90][geckoview:m91][geckoview:m92][geckoview:m93] → [geckoview:m90][geckoview:m91][geckoview:m92][geckoview:m93][geckoview:m94]
Summary: Extend tests for HTTPS-Only exception pages → Display HTTPS-Only exception pages and allow bypass them on Android
Pushed by istorozhko@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/890d147bad1d
Add HTTPS-only specific error code and pass it to GeckoView, to handle HTTPS-only specific errors correctly r=agi,JulianWels,nika,ckerschb
Flags: needinfo?(bugzeeeeee)
Pushed by istorozhko@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2716327aeafe
Add HTTPS-only specific error code and pass it to GeckoView, to handle HTTPS-only specific errors correctly r=agi,JulianWels,nika,ckerschb
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
Regressions: 1762566

Clearing out my ni? queue with super old ni? requests which rendered unnecessary in the meantime.

Flags: needinfo?(arthuredelstein)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: