As far as I understand, each time an extension is reloaded, it gets a new moz-extension:// URL with a new UUID. This makes it impossible to know the extension page URL I want to use with web-ext run -u in advance. This makes web-ext almost worthless for me because I have to (manually) open the page I need to run my tests on. If I knew the URL beforehand I could just pass it to web-ext and do everything completely automatically, and with a headless FF. Is there a way around this?
Can Firefoxe's web-ext utility be made to open an extension page on start with -u?
519 Views Asked by Ivan At
1
There are 1 best solutions below
Related Questions in URL
- how do I change a URL with form to include additional selection
- Blog Post URL In flutter Web
- Why does RFC 3986 (URI generic syntax) declare the "host" component to be case-insensitive when the syntax rules show it to be case-sensitive?
- Non-Expiring Direct Link Like When Clicked It Will Download Without Landing Any Page
- Curl URL syntax for uploading files
- Send a json command to an app at a known port/address?
- How do I resolve this error ? "ERR_TOO_MANY_REDIRECTS"
- I'm using the googlesearch library in Colab, but I can't import my websites to a list. How can I do that?
- Sharepoint document library URL Rewrite
- Apache2 redirection results in wrong URL
- Vue / Vitest : issues in snapshots with dynamic import assets URL
- How to redirect to the landing page when the domain name is searched?
- find out filename from URL
- How do I ping a website to see if its valid before entering?
- Unable to download CSV file from web URL with runtime using python
Related Questions in FIREFOX
- (in promise) TypeError: NetworkError when attempting to fetch resource
- Optimizing Selenium script for faster execution
- Apply Firefox policies.json only to Firefox but not to Nightly
- Difficulty Accessing HTTP URLs/IP Addresses Due to Browser Redirecting to HTTPS: Seeking Solutions
- How do I separate emails (from 1 alias) in Thunderbird from invasive websites on Firefox with file browsing scripts? Should I worry?
- Gecko chrome @supports function for strings and numbers
- some CSS property working on chrome's console but not on firefox
- Playwright - Firefox tests time out, but Chromium tests don't
- Notification.permission always return 'denied' on firefox
- Useless horizontal scrollbar in Firefox with absolute positioned div with fixed height
- Why is it impossible to definitively know if your website is running as a PWA or as a website?
- WebRTC from Firefox to Android crashes
- Firefox CSS: Set a variable based on properties of another element
- Getting Negative Time Duration in Sender-to-Client Application using Date.now() api
- Prevent users accessing Firefox menu items
Related Questions in UUID
- Implementing UUID as primary key in Laravel intermediate table
- Use data type uuid or varchar(36) for my UUID column?
- How do you check if self.crypto.randomUUID() is available in Javascript?
- Invalid Input for type integer when my input should be a uuid
- symfony doctrine uuid on maria not working
- Approach to generate Short Unique key like (AboU8N) in distributed environment?
- Why is the UUID split into chunks like XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX?
- How to generate/pass unique UUID to Threads independent of each other in JMeter's Stepping Thread Group
- get values(pressure blood) from ble device in flutter
- ERROR TypeError: window.crypto.randomUUID is not a function - Angular
- Error loading from bundle using a file located in the projected
- Unable to find 128 bit characteristic UUID using Zephyr Heart Rate Service
- How can we get 2 UUID for Same device for same iOS App without Delete or Re-Install the same App?
- How to find by UUID in MongoDB
- Results from dplyr::join on UUID column differ between Linux and Mac OS
Related Questions in FIREFOX-ADDON-WEBEXTENSIONS
- Firefox extension background script terminated preemptively
- I'm building addon for firefox user can take screenshot, but browser.runtime.sendMessage returns undefined
- My service worker is not connecting to my content script in my Chrome extension. How do I fix this?
- How do I fix the following issues with my port of a manifest v2 browser extension to manifest v3?
- Delete all cookies in the browser using js?
- Changing src image with Firefox extension
- How to open a deeplink without creating a new tab or window in a web extension
- firefox extension, read background script variable from popup?
- WebExtensions : Can you access a JSON object that was fetched by the webpage
- browser.declarativeNetRequest property is undefined despite processing static DNR redirects
- Access Chrome APIs in a web application built with ReactJS
- WebExtension does not start content script on Android (geckoview)
- webRequest API not working with manifest v3 extension
- browser.webRequest.onBeforeRequest is not being triggered in my firefox extension
- How to cache storage in web extensions?
Related Questions in WEB-EXT
- web-ext SyntaxError: Unexpected reserved word
- How to debug Typescript code with Thunderbird?
- How to add a border around the badge in a browser extension
- Firefox EXTENSION_ID_REQUIRED on manifest.json
- Firefox web-ext run failing after running profile
- Chrome DevTools fails to load a WebExtension's source map with ERR_BLOCKED_BY_CLIENT (but I'm not using an ad blocker)
- How to use web-ext sign with a release notes
- Firefox extension not working post messages
- REDUX: Dispatch is not update the store
- web-ext connect ECONNREFUSED ::1:5037
- Disable cross-origin frame in Chrome or Firefox
- How to test web-ext in my current browser
- building a webextension with parcel and web-ext, what is the correct content security policy
- Error using Dexie from browser extension content scripts
- web-ext: How to run Firefox in dark mode?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
After some fiddling I finally managed to have
web-extopen a page withmoz-extensionschema on browser start.The only way (that I found) to open this page with an extension context (and test the page correctly) and not as an ordinary
file://is to use amoz-extension://<internal UUID>/path/to/extension/page/from/extension/roottype URI to access it.The problem is, as a temporary extension, it always has a different UUID that is not preserved between re-installs, so there is no way of telling
web-extto open an extension page via-uwhile using the defaults.This is where this helpful documentation page comes in. It mentions the
extensions.webextensions.keepUuidOnUninstalloption inabout:configthat does exactly that. So a profile has to be created that has this option set totrue, and used withweb-ext-poption.The next problem I had was that the page would silently fail to open. Apparently Firefox was attempting to open the page before the extension was installed. But
web-exthas a--pre-installoption that makes the extension (and its pages) available at start, so when it is enabled the page does open. Caveat 1 is that using--pre-installrequires the extension to have an ID (this one is not the mentioned UUID generated by Firefox) that has to be set inmanifest.json. Caveat 2,--pre-installdisables extension auto-reloading on file change.So my final solution was to:
With
firefox --manageProfiles, create a separate profile to test my extensionProceed to set and save the
extensions.webextensions.keepUuidOnUninstallabout:configflag (do this withoutweb-extor with--keep-profile-changesotherwise)In
manifest.jsonadd an id for the extension:Run
This starts Firefox with a temporary installation of your extension and opens the desired page.
If you know a better solution (e.g. one that does not disable the auto-reloading), your answer is very welcome.