<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - media/restore-from-page-cache.html causes NoEventDispatchAssertion::isEventAllowedInMainThread() assertion failure"
   href="https://bugs.webkit.org/show_bug.cgi?id=170087">170087</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>media/restore-from-page-cache.html causes NoEventDispatchAssertion::isEventAllowedInMainThread() assertion failure
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Tools / Tests
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dbates&#64;webkit.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lforschler&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The test media/restore-from-page-cache.html dispatches a non-bubbling, non-cancelable DOM resize event when the page is being restored from the page cache. Following &lt;<a href="https://trac.webkit.org/changeset/214014">https://trac.webkit.org/changeset/214014</a>&gt; (<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED"
   href="show_bug.cgi?id=169703">bug #169703</a>) we assert that DOM events should not be dispatched when a page is being restored from the page cache.

[[
ASSERTION FAILED: NoEventDispatchAssertion::isEventAllowedInMainThread()
/Volumes/Data/slave/sierra-debug/build/Source/WebCore/dom/EventDispatcher.cpp(131) : bool WebCore::EventDispatcher::dispatchEvent(WebCore::Node &amp;, WebCore::Event &amp;)
1   0x11076682d WTFCrash
2   0x110766849 WTFCrashWithSecurityImplication
3   0x1188d7ef4 WebCore::EventDispatcher::dispatchEvent(WebCore::Node&amp;, WebCore::Event&amp;)
4   0x119fdda1d WebCore::Node::dispatchEvent(WebCore::Event&amp;)
5   0x118d59d75 WebCore::HTMLMediaElement::layoutSizeChanged()::$_2::operator()() const
6   0x118d59b39 WTF::Function&lt;void ()&gt;::CallableWrapper&lt;WebCore::HTMLMediaElement::layoutSizeChanged()::$_2&gt;::call()
7   0x11805679e WTF::Function&lt;void ()&gt;::operator()() const
8   0x118b152b6 WebCore::FrameView::flushPostLayoutTasksQueue()
9   0x118b028a5 WebCore::FrameView::performPostLayoutTasks()
10  0x118b0939d WebCore::FrameView::layout(bool)
11  0x118b12a2a WebCore::FrameView::updateContentsSize()
12  0x1182413a0 WebCore::CachedPage::restore(WebCore::Page&amp;)
13  0x118ad6683 WebCore::FrameLoader::commitProvisionalLoad()
14  0x118adc0f5 WebCore::FrameLoader::loadProvisionalItemFromCachedPage()
15  0x118ad44a6 WebCore::FrameLoader::continueLoadAfterNavigationPolicy(WebCore::ResourceRequest const&amp;, WebCore::FormState*, bool, WebCore::AllowNavigationToInvalidURL)
16  0x118aeb338 WebCore::FrameLoader::loadWithDocumentLoader(WebCore::DocumentLoader*, WebCore::FrameLoadType, WebCore::FormState*, WebCore::AllowNavigationToInvalidURL)::$_4::operator()(WebCore::ResourceRequest const&amp;, WebCore::FormState*, bool) const
17  0x118aeb2da void std::__1::__invoke_void_return_wrapper&lt;void&gt;::__call&lt;WebCore::FrameLoader::loadWithDocumentLoader(WebCore::DocumentLoader*, WebCore::FrameLoadType, WebCore::FormState*, WebCore::AllowNavigationToInvalidURL)::$_4&amp;, WebCore::ResourceRequest const&amp;, WebCore::FormState*, bool&gt;(WebCore::FrameLoader::loadWithDocumentLoader(WebCore::DocumentLoader*, WebCore::FrameLoadType, WebCore::FormState*, WebCore::AllowNavigationToInvalidURL)::$_4&amp;&amp;&amp;, WebCore::ResourceRequest const&amp;&amp;&amp;, WebCore::FormState*&amp;&amp;, bool&amp;&amp;)
18  0x118aeb219 std::__1::__function::__func&lt;WebCore::FrameLoader::loadWithDocumentLoader(WebCore::DocumentLoader*, WebCore::FrameLoadType, WebCore::FormState*, WebCore::AllowNavigationToInvalidURL)::$_4, std::__1::allocator&lt;WebCore::FrameLoader::loadWithDocumentLoader(WebCore::DocumentLoader*, WebCore::FrameLoadType, WebCore::FormState*, WebCore::AllowNavigationToInvalidURL)::$_4&gt;, void (WebCore::ResourceRequest const&amp;, WebCore::FormState*, bool)&gt;::operator()(WebCore::ResourceRequest const&amp;, WebCore::FormState*&amp;&amp;, bool&amp;&amp;)
19  0x11a0f21fa std::__1::function&lt;void (WebCore::ResourceRequest const&amp;, WebCore::FormState*, bool)&gt;::operator()(WebCore::ResourceRequest const&amp;, WebCore::FormState*, bool) const
20  0x11a0f20bb WebCore::PolicyCallback::call(bool)
21  0x11a0f3388 WebCore::PolicyChecker::continueAfterNavigationPolicy(WebCore::PolicyAction)
22  0x11a0f705e WebCore::PolicyChecker::checkNavigationPolicy(WebCore::ResourceRequest const&amp;, bool, WebCore::DocumentLoader*, WebCore::FormState*, std::__1::function&lt;void (WebCore::ResourceRequest const&amp;, WebCore::FormState*, bool)&gt;)::$_1::operator()(WebCore::PolicyAction) const
23  0x11a0f702f void std::__1::__invoke_void_return_wrapper&lt;void&gt;::__call&lt;WebCore::PolicyChecker::checkNavigationPolicy(WebCore::ResourceRequest const&amp;, bool, WebCore::DocumentLoader*, WebCore::FormState*, std::__1::function&lt;void (WebCore::ResourceRequest const&amp;, WebCore::FormState*, bool)&gt;)::$_1&amp;, WebCore::PolicyAction&gt;(WebCore::PolicyChecker::checkNavigationPolicy(WebCore::ResourceRequest const&amp;, bool, WebCore::DocumentLoader*, WebCore::FormState*, std::__1::function&lt;void (WebCore::ResourceRequest const&amp;, WebCore::FormState*, bool)&gt;)::$_1&amp;&amp;&amp;, WebCore::PolicyAction&amp;&amp;)
24  0x11a0f6fb9 std::__1::__function::__func&lt;WebCore::PolicyChecker::checkNavigationPolicy(WebCore::ResourceRequest const&amp;, bool, WebCore::DocumentLoader*, WebCore::FormState*, std::__1::function&lt;void (WebCore::ResourceRequest const&amp;, WebCore::FormState*, bool)&gt;)::$_1, std::__1::allocator&lt;WebCore::PolicyChecker::checkNavigationPolicy(WebCore::ResourceRequest const&amp;, bool, WebCore::DocumentLoader*, WebCore::FormState*, std::__1::function&lt;void (WebCore::ResourceRequest const&amp;, WebCore::FormState*, bool)&gt;)::$_1&gt;, void (WebCore::PolicyAction)&gt;::operator()(WebCore::PolicyAction&amp;&amp;)
25  0x122c9f12c std::__1::function&lt;void (WebCore::PolicyAction)&gt;::operator()(WebCore::PolicyAction) const
26  0x122ca75a0 -[WebFramePolicyListener receivedPolicyDecision:]
27  0x122ca777d -[WebFramePolicyListener use]
28  0x10ea675da -[DefaultPolicyDelegate webView:decidePolicyForNavigationAction:request:frame:decisionListener:]
29  0x7fffcfc5a6dc __invoking___
30  0x7fffcfc5a561 -[NSInvocation invoke]
31  0x7fffcfc73736 -[NSInvocation invokeWithTarget:]
]]
&lt;<a href="https://build.webkit.org/results/Apple%20Sierra%20Debug%20WK1%20(Tests)/r214369%20(166)/media/restore-from-page-cache-crash-log.txt">https://build.webkit.org/results/Apple%20Sierra%20Debug%20WK1%20(Tests)/r214369%20(166)/media/restore-from-page-cache-crash-log.txt</a>&gt;</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>