tor-browser

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

browser_processAUMID.js (902B)


      1 /* Any copyright is dedicated to the Public Domain.
      2 * https://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 /**
      5 * Bug 1950734 tracks how calling PinCurrentAppToTaskbarWin11
      6 * on MSIX may cause the process AUMID to be unnecessarily changed.
      7 * This test verifies that the behaviour will no longer happen
      8 */
      9 
     10 ChromeUtils.defineESModuleGetters(this, {
     11  ShellService: "moz-src:///browser/components/shell/ShellService.sys.mjs",
     12 });
     13 
     14 add_task(async function test_processAUMID() {
     15  let processAUMID = ShellService.checkCurrentProcessAUMIDForTesting();
     16 
     17  // This function will trigger the relevant code paths that
     18  // incorrectly changes the process AUMID on MSIX, prior to
     19  // Bug 1950734 being fixed
     20  await ShellService.checkPinCurrentAppToTaskbarAsync(false);
     21 
     22  is(
     23    processAUMID,
     24    ShellService.checkCurrentProcessAUMIDForTesting(),
     25    "The process AUMID should not be changed"
     26  );
     27 });