5

Steps to reproduce:
Attempting to detect the browser by checking the extension protocol (yet in Orion this is simply chrome-extension, unlike other browsers like firefox, in which it is moz-extension). Or by checking the userAgent (navigator.userAgent) or chrome.runtime.getBrowserInfo(). However, in each situation Orion pretends to be Google Chrome in every way.

Expected behavior:
While I understand the need of pretending to be Google Chrome on the public web for many obvious reasons. As an extension it is important to be able to detect Orion as extensions in the browser work quite differently than in other browsers. Take for example these bugs:
https://orionfeedback.org/d/5548-chromestoragesync-is-using-the-same-storage-as-chromestoragelocal
https://orionfeedback.org/d/4526-g-app-launcher-extension-gets-reset-on-every-launch

  • Vlad replied to this.

    jeurissen How would you suggest this to be addressed? Many Chrome extensions perform this check to make sure they are running inside Chromium.

      5 months later

      Vlad

      Hello Vladimir,
      There is a bug in Orion that chrome.browserAction.setIcon could not accept imageData as option.
      https://orionfeedback.org/d/6734-browserbrowseractionseticon-does-not-work-with-imagedata

      We hope that this can be fixed soon.
      As a temporary solution, we might need to disable the icon caching feature for Orion.

      There is no a direct way to detect Orion.

      One suggestion is that Orion should provide navigator.userAgentData as Chrome and Brave do.
      https://orionfeedback.org/d/6732-navigatoruseragentdata-is-undefined

      Another way is that to determine Orion like this.

      const IS_ORION = typeof webkitIndexedDB === 'object' && chrome.contentScripts && !navigator.userAgentData;

      There are few concerns from Violentmonkey's developer.
      Hope you can answer ASAP so that we can apply our temporary solution before the official fix from Orion comes.

        5 days later

        jeurissen If the requirement is just to detect if the browser is Orion, you can simply check availability of window.KAGI object.

        Later we may provide some other unique way to do this.

          3 months later

          @jeurissen the problem with your G App extension hasd been fixed in the latest RC versions

            No one is typing