tor-browser

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

fetch-topics.tentative.https.html (718B)


      1 <!doctype html>
      2 <body>
      3  <script src=/resources/testharness.js></script>
      4  <script src=/resources/testharnessreport.js></script>
      5  <script src=/browsing-topics/resources/header-util.sub.js></script>
      6  <script>
      7    promise_test(async t => {
      8      let response = await fetch('./resources/check-topics-request-header.py', {browsingTopics: true});
      9      let topics_header = await response.text();
     10 
     11      // An empty result indicates that the request was eligible for topics.
     12      // Currently, the web-platform-tests framework does not support actually
     13      // handling the topics request.
     14      assert_equals(topics_header, EMPTY_TOPICS_HEADER);
     15    }, 'test fetch(<url>, {browsingTopics: true})');
     16  </script>
     17 </body>