Closed Bug 1490401 Opened 6 years ago Closed 6 years 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
Depends on: 1519496
Blocks: 1519463

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.

Depends on: 1430623
Depends on: 1521137
Blocks: 1521305
Depends on: 1521863
Depends on: 1524328
Depends on: 1525134
Depends on: 1525371
Depends on: 1526294
Depends on: 1528712
Depends on: 1528914
Depends on: 1530193
Depends on: 1530751
Depends on: 1535788
Depends on: 1536176

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: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
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.

Attachment

General

Created:
Updated:
Size: