tor-browser

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

browser_inner_html_caching.js (736B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 "use strict";
      6 
      7 // CacheKey::InnerHTML, CacheDomain::InnerHTML
      8 addAccessibleTask(
      9  `<math id="test"><mfrac><mi>x</mi><mi>y</mi></mfrac></math>`,
     10  async function (browser, docAcc) {
     11    let acc = findAccessibleChildByID(docAcc, "test");
     12    await verifyAttributeCachedNoRetry(acc, "html");
     13  },
     14  {
     15    topLevel: true,
     16    iframe: true,
     17    remoteIframe: true,
     18    // Entire test runs with domain already active because there's no XPC method
     19    // to trigger caching of InnerHTML.
     20    cacheDomains: CacheDomain.InnerHTML,
     21  }
     22 );