<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>173329</bug_id>
          
          <creation_ts>2017-06-13 14:25:38 -0700</creation_ts>
          <short_desc>Should media query callbacks be fired asynchronously?</short_desc>
          <delta_ts>2017-06-13 16:27:43 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="alan">zalan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>dino</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1318818</commentid>
    <comment_count>0</comment_count>
      <attachid>312809</attachid>
    <who name="alan">zalan</who>
    <bug_when>2017-06-13 14:25:38 -0700</bug_when>
    <thetext>Created attachment 312809
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)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1318819</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-06-13 14:26:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/32748777&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>312809</attachid>
            <date>2017-06-13 14:25:38 -0700</date>
            <delta_ts>2017-06-13 14:25:38 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>show-modal-dialog-during-execCommand.html</filename>
            <type>text/html</type>
            <size>317</size>
            <attacher name="alan">zalan</attacher>
            
              <data encoding="base64">PGJvZHk+CjxpZnJhbWUgaWQ9Zm9vYmFyPjwvaWZyYW1lPgo8c2NyaXB0PgogICAgbGV0IG1lZGlh
TGlzdCA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJmb29iYXIiKS5jb250ZW50V2luZG93Lm1h
dGNoTWVkaWEoIihtYXgtd2lkdGg6IDEwMHB4KSIpOwogICAgbWVkaWFMaXN0LmFkZExpc3RlbmVy
KCgpID0+IHsKICAgICAgICBsZXQgbGluayA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoImEiKTsK
ICAgICAgICBsaW5rLmhyZWYgPSAiaHR0cDovL2dvb2dsZS5jb20iOwogICAgICAgIGxpbmsuY2xp
Y2soKTsKICAgIH0pOwo8L3NjcmlwdD4KPC9ib2R5Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>