Closed Bug 1490401 Opened 2 years ago Closed 1 year ago

MediaQueryList::Matches shouldn't need a pres context, but a document instead | matchMedia should work in display:none iframes

Categories

(Core :: CSS Parsing and Computation, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Blocks 1 open bug)

Details

(Whiteboard: [webcompat][wptsync upstream])

Attachments

(1 file)

No description provided.
Priority: -- → P3

This is a webcompat issue that causes some tracking scripts to fall into infinite loops, see bug 1519463.

Summary: MediaQueryList::Matches shouldn't need a pres context, but a document instead. → MediaQueryList::Matches shouldn't need a pres context, but a document instead | matchMedia should work in display:none iframes
Whiteboard: [webcompat]

I guess I should just fix it. I did most of the work in bug 1430608, and the plumbing is pretty annoying but nothing egregious.

Assignee: nobody → emilio
Flags: needinfo?(emilio)

Ah, this is not as easy, I know why... We need a default style to evaluate media queries. And a style right now requires a pres context.

Duplicate of this bug: 1519496

Finally!

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f98617ff7cf5
MatchMedia should work inside display: none iframes. r=heycam
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Duplicate of this bug: 1519463
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/16488 for changes under testing/web-platform/tests
Whiteboard: [webcompat] → [webcompat][wptsync upstream]
You need to log in before you can comment on or make changes to this bug.