Semro / syncwatch

Browser extension to watch videos together
MIT License
135 stars 19 forks source link

Initial Firefox mobile support #25

Closed Semro closed 2 years ago

Semro commented 2 years ago

Potentially closes https://github.com/Semro/syncwatch/issues/24

Seems like the latest Firefox mobile doesn't have feature to open an extension popup, so for now it only works for Firefox Nightly, tested on version 99.0a1 (Build #2015865867).

Notes for future me on debugging an extension for Firefox mobile - Delete `"incognito": "split"`, string to build it with `web-ext run -t firefox-android --adb-device XXX --firefox-apk org.mozilla.fenix` - Docs on debugging extension on Android: https://extensionworkshop.com/documentation/develop/developing-extensions-for-firefox-for-android/#debug-your-extension - To inspect elements of popup.html or options.html possible only opening it in a new tab, example code for background.js: `chrome.tabs.create({url: 'popup.html'});` - For some reason, there will be no error/warning if an extension is using unsupported API for Firefox mobile. I've managed to spot non-working code manually writing console.log in different places.