Closed Bug 1678945 Opened 4 years ago Closed 3 years ago

Color scheme simulation doesn't work on remote iframe when Fission is enabled

Categories

(DevTools :: Inspector, defect, P3)

Firefox 85
defect

Tracking

(Fission Milestone:Future)

RESOLVED FIXED
Fission Milestone Future

People

(Reporter: sebo, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

What were you doing?

  1. Enable the preferences fission.autostart and devtools.inspector.color-scheme-simulation.enabled
  2. Go to https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme#Result
  3. Open the Inspector
  4. Toggle the color scheme simulation via the button in the Styles side panel

What happened?

When Fission is enabled, the color scheme simulation doesn't work.

What should have happened?

The <div>s in the example saying "changes in light/dark scheme" should change their background and foreground colors like they do when Fission is disabled.

Anything else we should know?

I've tested this using Nightly 85.0a1 (2020-11-22).

Sebastian

DevTools code seems to run fine all the way to https://searchfox.org/mozilla-central/rev/f081504642a115cb8236bea4d8250e5cb0f39b02/devtools/server/actors/emulation/content-viewer.js#91 .

Emilio, would you know what's missing from emulatePrefersColorScheme (nsIContentViewer.idl) to make it work with Fission enabled?
Would that be fixed with Bug 1662840 or Bug 1591120 ?

Flags: needinfo?(emilio)

I think those two bugs will fix this. The example is in a cross-origin iframe.

Flags: needinfo?(emilio)

thanks emilio!

Summary: Color scheme simulation isn't compatible with Fission → Color scheme simulation doesn't work on remote iframe when Fission is enabled

Bug 1679409 will have a test for a remote iframe (with fail-if = fission annotation)

Depends on: 1662840, 1591120
Fission Milestone: --- → M7
Severity: -- → S3
Priority: -- → P3
Whiteboard: dt-fission-m3-mvp
Whiteboard: dt-fission-m3-mvp → dt-fission-m3-reserve

Honza said this is not part of dt-fission-m3-mvp and is not considered Fission M7 blocker.

Fission Milestone: M7 → ---

Moving "dt-fission-m3-reserve" bugs to "dt-fission-future" because they don't block Fission MVP.

Fission Milestone: --- → Future
Whiteboard: dt-fission-m3-reserve → dt-fission-future
Depends on: 1690100
No longer depends on: 1662840

The test highlighting the issue is now enabled on fission (https://hg.mozilla.org/mozilla-central/diff/11263420ea88cf234951aa2d015f30f8cd49c6a6/devtools/client/inspector/rules/test/browser_part1.ini), so we should be able to close this bug :)

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Whiteboard: dt-fission-future
You need to log in before you can comment on or make changes to this bug.