[Webkit-unassigned] [Bug 172361] New: matchMedia('print').addListener() fires in WK1 but never in WK2 when printing (breaks printing Google maps, QuickLooks)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 19 09:31:21 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=172361

            Bug ID: 172361
           Summary: matchMedia('print').addListener() fires in WK1 but
                    never in WK2 when printing (breaks printing Google
                    maps, QuickLooks)
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Printing
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: koivisto at iki.fi

<html><body>
<div id="main">Before print</div>
<script>
var mql = window.matchMedia("print");
mql.addListener(onPrint);
function onPrint(e) {
  if (e.matches) {
    document.getElementById("main").innerHTML = "Printing";
  } else {
    document.getElementById("main").innerHTML = "After print";
  }
}
</script></body></html>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170519/ac5cf248/attachment.html>


More information about the webkit-unassigned mailing list