4
  • Essential Browser/Chrome variable not given in background and option pages

  • BugsExtensionsDone

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
    24 days later

    Its much better with recent Beta, but it seems its not always fixed.

    • Please install e.g. NelliTab,
    • make a copy of the extension by copying the directory/files out of Orion extension directory (e.g. cp ~/Library/Application\ Support/Orion/Defaults/Extensions/<id> ~/Downloads/),
    • remove previous installed NelliTab via GUI in Orion,
    • install the copied extension via Orion from disk from "Downloads" directory.

    A new tab e.g. via keyboard shortcut Cmd+T should open the new tab extension w/o any problem, but if you click the NelliTab icon in toolbar (in my screenshot first icon after address bar) which opens a new tab as well shows an error that "browser/chome" variable cannot be found.

      tom Thanks for continuing to check!

      Can you list what improved between the two betas ? (have you tried the recent RC?)

        Seems that browser/chrome variable now exists in new RC, but unfortunately my extension does not work anymore. Neither from disk nor from any store. Console shows that chrome/browser.runtime is gone which I not catch. I need to check deeper tomorrow. If I have more information than "runtime" property, then I let you know.

        If I try to catch / check for "runtime" in hope that it runs again, but another error rises in "Global Code":

        TypeError: undefined is not a function (near '...kagi.executeCallback...')

        But now my knowledge ends. 😃

          I opened a new issue because it has nothing to do with this one.

            9 days later
            2 years later
            No one is typing