Closed
Bug 1011468
Opened 11 years ago
Closed 2 years ago
MediaQueryList::Matches needs to flush (for layout changes between Window.matchMedia() and MediaQueryList.matches getter)
Categories
(Core :: DOM: CSS Object Model, defect, P5)
Core
DOM: CSS Object Model
Tracking
()
RESOLVED
FIXED
115 Branch
| Tracking | Status | |
|---|---|---|
| firefox115 | --- | fixed |
People
(Reporter: dbaron, Assigned: emilio)
References
Details
Attachments
(1 file)
Bug 753777 added a flush of layout in the parent frame in the codepath to produce a MediaQueryList object, but there's still no flush if the user calls matchMedia and then later accesses the matches method (with something that changes layout in the parent in between).
We should add such a flush. (And also check if any other flushes are needed in MediaQueryList.)
| Reporter | ||
Comment 1•11 years ago
|
||
| Reporter | ||
Updated•11 years ago
|
Summary: MediaQueryList::Matches needs to flush → MediaQueryList::Matches needs to flush (for layout changes between Window.matchMedia() and MediaQueryList.matches getter)
Comment 2•7 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046
Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.
If you have questions, please contact :mdaly.
Priority: -- → P5
| Reporter | ||
Comment 3•7 years ago
|
||
This code was modified in bug 1490012, so I'm going to abandon the work-in-progress patch that I've had sitting around for a while at https://hg.mozilla.org/users/dbaron_mozilla.com/patches/raw-file/32fd64a24ed8/media-query-list-flushes .
| Reporter | ||
Comment 4•7 years ago
|
||
Also see bug 1458816.
Updated•3 years ago
|
Severity: normal → S3
| Assignee | ||
Comment 6•2 years ago
|
||
This is necessary to properly report changes in our document.
The remaining failures are about change event scheduling, which is a
pre-existing issue. Will fix, but in a separate bug.
Updated•2 years ago
|
Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/72f49d2e5d48
Flush parent document layout if needed for viewport dependent media queries. r=dshin
Pushed by emilio@crisal.io:
https://hg.mozilla.org/integration/autoland/rev/2c9cd4b22aab
Mark test_media_query_list subtest as now passing as expected.
Comment 9•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/72f49d2e5d48
https://hg.mozilla.org/mozilla-central/rev/2c9cd4b22aab
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox115:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•