Index: LayoutTests/http/tests/loading/preload-ignore-invalid-base.html |
diff --git a/LayoutTests/http/tests/loading/preload-ignore-invalid-base.html b/LayoutTests/http/tests/loading/preload-ignore-invalid-base.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bedb53f8f4b2a4e45b5b9ea276051fd42baedf2e |
--- /dev/null |
+++ b/LayoutTests/http/tests/loading/preload-ignore-invalid-base.html |
@@ -0,0 +1,15 @@ |
+<!DOCTYPE html> |
+<script src="/js-test-resources/js-test.js"></script> |
+<script> |
+window.fail = false; |
+</script> |
+<base href="gopher:???:"></base> |
+<script src="http://127.0.0.1:8000/resources/slow-script.pl?delay=100"></script> |
+<script> |
+shouldBeFalse('internals.isPreloaded("resources/fail.js")') |
+</script> |
+<!-- The resource should not be read, as the baseUrl is now set to empty from reading invalid url --> |
+<script src="resources/fail.js"></script> |
+<script> |
+shouldBeFalse('window.fail') |
+</script> |