tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

empty-background-image.html (849B)


      1 <!doctype html>
      2 <title>Empty url shouldn't try to load a subresource.</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <link rel="help" href="https://drafts.csswg.org/css-values-4/#url-empty">
      6 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1302991">
      7 <style>
      8 @import url();
      9 @import url('');
     10 @import url("");
     11 </style>
     12 <div style="background-image: url()"></div>
     13 <div style="background-image: url('')"></div>
     14 <div style='background-image: url("")'></div>
     15 <script>
     16 let t = async_test("Empty url shouldn't try to load a subresource.");
     17 onload = t.step_func_done(function() {
     18  for (let entry of performance.getEntriesByType("resource")) {
     19    assert_not_equals(entry.name, location.href, "Shouldn't have tried to request ourselves as a subresource")
     20  }
     21 });
     22 </script>