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

Side by Side Diff: LayoutTests/http/tests/loading/preload-ignore-invalid-base.html

Issue 1044133002: HTMLPreloadScanner should only use valid <base> urls (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: move the check up Created 5 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="/js-test-resources/js-test.js"></script>
3 <script>
4 window.fail = false;
5 </script>
6 <base href="gopher:???:"></base>
7 <script src="http://127.0.0.1:8000/resources/slow-script.pl?delay=100"></script>
8 <script>
9 shouldBeFalse('internals.isPreloaded("resources/fail.js")')
10 </script>
11 <!-- The resource should not be read, as the baseUrl is now set to empty from re ading invalid url -->
12 <script src="resources/fail.js"></script>
13 <script>
14 shouldBeFalse('window.fail')
15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698