-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Hello Kirill,
I tried and failed to port the extension to Chrome in this commit
jmfayard/webextension-search-kotlin-docs@0bc78b0
Things I have done:
- Read https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Porting_a_Google_Chrome_extension
- Read https://github.com/mozilla/webextension-polyfill
- Added
src/main/resources/browser-polyfill.js
to the background scripts - Noticed in https://developer.chrome.com/extensions/declare_permissions that the permission was called
contextMenus
instead ofmenus
so added it to the manifest. ./gradlew runDceKotlinJs --continous
- Opened
chrome://extensions/
in Chrome Canary.
- I enabled the developer mode
Load unpacked
, tried to use the extension, openedErrors
There I see Uncaught TypeError: Cannot read property 'create' of undefined
The polyfill from browser.menus
to browser.contextMenus
is not working
Metadata
Metadata
Assignees
Labels
No labels