TomoyukiHata

    • Aug 27, 2023
    • Joined Jul 31, 2023
    • 1 discussion
    • 3 posts
    • 0 best answers
    • 4 points
    • from https://orionfeedback.org/d/284-essential-browserchrome-variable-not-given-in-background-and-option-pages

      Steps to reproduce:

      Insert the following debug code in option page.

      alert(globalThis.chrome);
      await chrome.storage.local.get(null);

      Open the option page by calling chrome.runtime.openOptionsPage() from background page.
      Then appears 2 dialogs.

      Image from Gyazo
      Image from Gyazo

      Expected behavior:

      chrome variable can be accessed from option page.

      Orion, OS version; hardware type:

      • Orion
        • v1.2.10 (2) (WebKit 8615.2.9.10.6)
      • OS version
        • iPadOS v16.5.1
      • hardware type
        • iPad (10th generation)
      • We need access to ipad/iOS Orion debug console/web inspector to debug web site and extension on mobile devices.

        • Steps to reproduce:
          Please install the attached test extension and open the console of background page (Chrome just click "background page" and Firefox "Inspect") and the options page. Neither "browser" nor "chrome" variable is given.

          Expected behavior:
          "Browser" (or "chrome") variable is essential for extensions to work. Currently I can confirm only that it is working for new tab pages defined by chrome_url_overrides.newtab w/o prob, but not for background and option pages. I have no idea why the background page of 1Password is working but not for this test.

          Orion and macOS:
          0.99.107.14-beta (WebKit 613.1.8)
          macOS 12.0.1

          Image/Video:

          test.zip
          5kB