Closed Bug 1909681 Opened 1 year ago Closed 6 months ago

Remove the Mixed Content Opt-Out in Identity Pane feature (broken for Passive Mixed Content, no longer wanted for active)

Categories

(Core :: DOM: Security, task, P3)

task

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- wontfix
firefox128 --- wontfix
firefox129 --- wontfix
firefox130 --- wontfix
firefox139 --- fixed

People

(Reporter: maltejur, Assigned: maltejur)

References

Details

(Whiteboard: [domsecurity-active])

Attachments

(2 files)

To reproduce:

  1. Use a recent version of Firefox that is already shipping with mixed content level 2 (security.mixed_content.upgrade_display_content = true)
  2. Visit https://a.httpsonly.polar.onl/mixed-content.html, or any other secure page that contains non-upgradable passive mixed content (like a image) and active mixed content (like a iframe).
  3. Click on the lock icon in the address bar > "Connection secure" > "Disable protections for now"
  4. The page should reload now

Expected result: Both the active (iframe) and passive (image) mixed content now loads as expected
Actual result: Only the active mixed content loads, the image is still being blocked

Flipping security.mixed_content.upgrade_display_content to false will make passive mixed content load as expected, so this must have changed with the rollout of mixed content level 2. I heard from Christoph that we may want to remove this UI in the identity pane (lock icon) entirely, as it currently already is quite hidden and used by a very little amount of users. That would of course solve this problem, and would also help with consistency in other components (like HTTPS-Only) which expect mixed content blocking to always be enabled.

Wow, I didn't even know we had the option to load insecure active content! That needs to go.

Since we just turned on mixed-passive content upgrading and may have broken images/videos some could argue we could redirect it the button to load the images (and not frames/scripts) instead. That would be a mistake. Chrome has been upgrading for a long time and all non-zombie sites have adjusted. Further, we can normally right-click on a broken item and open it in a new window if you really need to see it. We should just get rid of this button/mechanism entirely. I bet tracking this exception complicates the code a bit, too.

I didn't see this come up in the plans to revamp our address bar tracking/security/permissions panels -- I bet the UX folks didn't know about it either!

Unfortunately the "right-click to open" is also a bit broken now. The fix for that would be elsewhere (in the front-end) so I will file that separately. Option 1 (see below) would provide a work-around, but I doubt it would fix the "open in new tab" bug itself (it might?). Option 2 definitely wouldn't fix it, even though that is otherwise my preferred choice overall.

To summarize the end of comment 0, we have two options:

Option 1

Make "passive mixed content" loading check the "disable protections" state the way active content does

Option 2

Get rid of this mechanism entirely. Simplifies the code and removes an obscure and insecure feature that is no longer needed.

Severity: -- → S3
Has STR: --- → yes
Keywords: regression
Priority: -- → P3
Regressed by: mixed-content-level2
Summary: Mixed Content Opt-Out in Identity Pane does not seem to apply to Passive Mixed Content anymore → Mixed Content Opt-Out in Identity Pane does not work for Passive Mixed Content

Set release status flags based on info from the regressing bug 1779757

Severity: S3 → N/A
Type: defect → task
Keywords: regression
No longer regressed by: mixed-content-level2
Summary: Mixed Content Opt-Out in Identity Pane does not work for Passive Mixed Content → Remove the Mixed Content Opt-Out in Identity Pane feature (broken for Passive Mixed Content, no longer wanted for active)
Whiteboard: [domsecurity-backlog]

We're changing this bug to reflect "Option 2" -- a task to get rid of this feature entirely

Assignee: nobody → maltejur
Status: NEW → ASSIGNED
Whiteboard: [domsecurity-backlog] → [domsecurity-active]
Blocks: 1915141
No longer blocks: mixed-content-level2
Duplicate of this bug: 1674727

I wonder if we should find out how much the block_active_content and block_display_content prefs are used and consider them for a follow up....

Blocks: 1947985
Pushed by mjurgens@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c902a6507392 Remove mixed content exception button and permission r=freddyb,devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
QA Whiteboard: [qa-triage-done-c140/b139]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: