| testRunner.waitUntilDone(); |
| if (window.internals && internals.settings) |
| internals.settings.setShouldRestrictBaseURLSchemes(false); |
| document.getElementById("result").textContent = "FAIL"; |
| document.getElementById("result").textContent = "PASS"; |
| <base href="data:/,testPassed()/"> |
| <p>This test overrides the setting <code>shouldRestrictBaseURLSchemes</code> to <code>false</code> and then sets the base URL to a data URL. This is allowed and hence script is executed.</p> |
| <p>Note that there will be a JavaScript ReferenceError on success.</p> |
| <script src="./non-existent-file.js" onerror="testFailed()"></script> |