Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Side by Side Diff: LayoutTests/fast/dom/HTMLLinkElement/link-preload-settings-no-crash.html

Issue 1107003002: Check the nullable Document::settings() before accessing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLLinkElement/link-preload-settings-no-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <link id="lnk" rel="preload" as="image" href="http://prefetch.wut.com.test/3.gif ">
8 <script>
9 description("Inserting a <link rel=preload> into a bare document shouldn't crash .");
10
11 window.jsTestIsAsync = true;
12
13 function runTest() {
14 var doc = document.implementation.createDocument("", "", null);
15 doc.appendChild(document.getElementById("lnk"));
16 testPassed("no crash");
17 finishJSTest();
18 }
19
20 window.onload = runTest;
21 </script>
22 </body>
23 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLLinkElement/link-preload-settings-no-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698