7,443 questions
0
votes
1
answer
116
views
firefox extension: how do i write/update the side bar from firefox extension?
I'm writing a firefox (v.147) extension and I'm able to open a side bar.
How do I update/dynamically write messages (or add elements) from the extension onto the side bar?
551
votes
18
answers
767k
views
Getting "net::ERR_BLOCKED_BY_CLIENT" error on some AJAX calls
Recently I've realised that, some adblocker extensions (such as adBlocker plus) block some Ajax calls. I get that error on the console:
GET http://localhost/prj/conn.php?q=users/list/ net::...
0
votes
0
answers
151
views
Firefox WebExtension new-tab <video> briefly flashes black between poster and first frame, even though source video has no black frame
I am building a Firefox “New Tab” WebExtension that shows a full-screen looping video wallpaper (cat + fireplace). For perf reasons I try to show a static preview instantly and then fade into the live ...
0
votes
1
answer
97
views
Is there a way to get more detailed error messages from browser.scripting.executeScript?
I’m trying to run a simple script that extracts the length of a YouTube video inside of a tab from an extension in Firefox. I have code that looks like this:
try {
duration = await browser....
1
vote
1
answer
156
views
Plasmo Firefox production build: Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist
With plasmo 0.90.5, I faced this issue when trying to run my Firefox extension that I built with manifest v3. This issue happens when I try to pass a message to the content script.
Uncaught (in ...
1
vote
1
answer
267
views
React Router With Browser Extension Popup Window?
I'm trying to incorporate React Router into my Firefox browser extension to be able to display different pages in the extension's popup window. However, I keep getting the warning, You should call ...
0
votes
1
answer
81
views
Can modern Firefox addons/extensions edit user preferences (i.e. about:config properties)?
I keep toggling the preference full-screen-api.ignore-widgets via the Configuration Editor (i.e. about:config) and I'm wondering if Firefox would allow an extension to perform that change ...
371
votes
7
answers
265k
views
What is a MIME type?
I have been reading about how to build plug-ins and this "MIME type" keeps getting discussed in it. I have tried to look into it and know that it is Multipurpose Internet Mail Extensions (MIME) but no ...
257
votes
18
answers
180k
views
How to get notified about changes of the history via history.pushState?
So now that HTML5 introduces history.pushState to change the browsers history, websites start using this in combination with Ajax instead of changing the fragment identifier of the URL.
Sadly that ...
263
votes
13
answers
211k
views
How can I fix WebStorm warning "Unresolved function or method" for "require" (Firefox Add-on SDK)
I'm using WebStorm 7 for Firefox Add-on SDK development.
WebStorm shows a warning: "Unresolved function or method" for require().
I want to get rid of the warning.
var pageMod = require("sdk/page-...
0
votes
1
answer
413
views
How to not trigger Firefox's strict Content Security Policy by my extension
I am currently contributing on an extension, and the main problem is that on Firefox, the CSP is being triggered, which causes quite a few issues. Mainly it seems to block the injection of dynamic CSS,...
0
votes
1
answer
258
views
Install modified XPI on Firefox or Fennec while disconnected from the internet [closed]
I want to download an XPI extension, and then add a console.log('hello, XPI world'); to one of its JS files. My browser is Fennec installed from F-Droid on Android.
I am looking for an equivalent to ...
0
votes
0
answers
96
views
browser.runtime.sendNativeMessage → An unexpected error occurred
To implement browser bookmark integration I’m trying to use Firefox native messaging on macOS. Even a trivial shell script that just writes to /tmp/test.log is never executed. Firefox just fails ...
3
votes
1
answer
202
views
Is it possible to modify the body of an outgoing HTTP request in a Firefox add-on?
I am making a Firefox add-on and I need it to have the ability to modify the bodies of certain outgoing HTTP requests. The instructions for modifying headers are readily available on Mozilla's own ...
0
votes
1
answer
138
views
Getting around X-Frame-Options DENY in a Chrome extension? (2)
I have an iframe loading inside an extension page but unfortunately the document inside the iframe embeds its own iframes whose Content-Security-Policy I still can't circumvent with ...