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)

defect

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.)
Summary: MediaQueryList::Matches needs to flush → MediaQueryList::Matches needs to flush (for layout changes between Window.matchMedia() and MediaQueryList.matches getter)
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
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 .
See Also: → 1458816
Severity: normal → S3
Duplicate of this bug: 1458816

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.

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.
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: