Release assert in Document::updateLayout() in WebPage::determinePrimarySnapshottedPlu...
[WebKit-https.git] / LayoutTests / plugins / snapshotting / determine-primary-snapshotted-plugin-crash.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>This tests determining the primary snapshotted plugin does not hit an assertion.</p>
5 <div id="result">FAIL</div>
6 <embed id="testPlugin" src="webkit-test-netscape" type="application/x-webkit-test-netscape"></embed>
7 <script>
8 if (!window.testRunner)
9     result.textContent = 'This test requires WebKitTestRunner.';
10 else {
11     internals.settings.setPlugInSnapshottingEnabled(true);
12     internals.settings.setMaximumPlugInSnapshotAttempts(0);
13     testRunner.waitUntilDone();
14     testRunner.dumpAsText();
15     setTimeout(() => {
16         const testPlugin = document.getElementById("testPlugin");
17         if (internals.isPluginSnapshotted(testPlugin))
18             result.textContent = 'PASS';
19         else
20             result.textContent = 'FAIL - not snapshot';
21         testRunner.notifyDone();
22     }, 500);
23 }
24
25 </script>