Bug 173329 - Should media query callbacks be fired asynchronously?
Summary: Should media query callbacks be fired asynchronously?
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Keywords: InRadar
Depends on:
Reported: 2017-06-13 14:25 PDT by zalan
Modified: 2017-06-13 16:27 PDT (History)
7 users (show)

See Also:

Test case (317 bytes, text/html)
2017-06-13 14:25 PDT, zalan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2017-06-13 14:25:38 PDT
Created attachment 312809 [details]
Test case

Currently Document::evaluateMediaQueryList() fires then synchronously through FrameView::layout. Since the callback could run any JS code, we might not be able to recover from it when climbing back on the callstack with nested frames.
See attached testcase (run-webkit-test --debug -1)
Comment 1 Radar WebKit Bug Importer 2017-06-13 14:26:15 PDT