firefox-addon-webextensions Questions

1

Solved

I have a firefox web extension ported from chrome. This is a site specific extension and I am hosting this on my web server to avoid lengthy review times on developer hub. Users install extension ...
Wulfe asked 11/11, 2016 at 5:18

1

Solved

So, I've looked through the WebExtensions API, but I haven't been able to figure out how to open an HTML page separate from about:addons for options. In the Add-on SDK you could have resource://ext...

1

Solved

I am developing an extension for both Chrome and Firefox, and I have come across a problem. Basically, I am trying to get a content script to listen to messages using chrome.runtime.onMessage.addL...

1

Solved

Update I have solved this problem (thanks to @DanielHerr) by using a Blob URL / Object-URL (URL.createObjectURL(blob)), however I am still curious to why this error exists when using data: URLs ...

2

I'm trying to port a Chrome extension Firefox add-on using the WebExtensions API . In chrome extension I am using src: url('chrome-extension://__MSG_@@extension_id__/css/fonts/webFonts/font-awes...

1

Solved

When writing a Firefox web extension it's possible to use a default css for browser or page actions so that they are styled like other browser UI components. It's done by inserting: "browser_style...
Monochrome asked 3/10, 2016 at 11:0

1

Solved

Suppose HTML files coming from a server have these headers: Content-Type: application/octet-stream Content-Disposition: attachment; I would like to alter the headers in a web extension (so that...

2

Solved

I'm trying to get a Google Chrome Extension to run as a Firefox Webextension. My original Problem is that the popup has no height. Besides that I could not for the life of me figure out how to insp...
Damico asked 28/1, 2016 at 9:9

1

Solved

I'm porting my Chrome extension to Firefox. According to MDN there is a browser.tabs API which should be supported by chrome. However browser is not an object in Chrome stable. At the same time c...

1

Solved

I have a settings page on my WebExtension, but I dont know how to acces the values of the settings with javascript. Current .xul-File: <?xml version="1.0"?> <!DOCTYPE mydialog SYSTEM "c...

1

Solved

Does anyone know how to see the output from a console.log() call in a background script? I can see the output from the same in a content script. Here is a simple script that I am testing this with:...

1

I see this behavior only when google SERP page is loading (when searched from the search box on google.com/ or box on SERP page it self). I was seeing expected behavior for other pages i.e., I see ...

2

Solved

I am currently creating a WebExtension in which I register a listener on the web requests being made, as such: main.js: chrome.webRequest.onBeforeRequest.addListener(main_function, {urls: sites},...
Symphonious asked 14/8, 2016 at 8:10

3

I am trying to test sample code for web extension for browsers. But, it doesn't work. I checked the console for Google Chrome and also for Firefox. It doesn't print anything. The following is my co...

1

I made a working Chrome extension that is not packaged and is just a directory on my computer. I found out that I should be able to port this to Firefox rather easily. I followed the "Porting a Go...

2

I am trying to port a chrome extension to firefox using the relatively new WebExtensions from Firefox. I always getting the following error Cross-Origin Request Blocked: The Same Origin Polic...
Implosive asked 14/4, 2016 at 17:8

1

I've tried the following: chrome.browserAction.onClicked.addListener(function(tab) { chrome.tabs.create({ url: "about:newtab" }); }); Unfortunately, I can not open the new tab page about:n...
Shorthand asked 9/5, 2016 at 18:58

1

I am working on a Firefox WebExtension which has a popup and uses chrome.storage.local to store state. So far, I have got it to store data for specific tabs using the tab id. I would like to reini...
Albinaalbinism asked 16/7, 2016 at 4:27

1

So, I tried to load my add-on using the about:debugging page in Firefox. But, it simply wouldn't load. Is there somewhere where an error would be logged that I could find it? Here is my manifest.J...
Loni asked 15/7, 2016 at 2:15

1

Solved

I'm trying to add a context menu to my firefox add-on using the WebExtensions API. I need the background script to listen to a click on the menu item and send a message to the content script. This ...

1

I've seen loads of examples of creating xhr requests from Firefox Add-ons, but I am trying to use the new WebExtensions stuff (where require and Components are undefined) and can't seem to see why ...

1

I'd like to run a command (exe somewhere on disk) with arguments in a simple WebExtensions addon, and possibly get its stdout. Is there a way to do so in WebExtensions, since the older APIs are bei...
Counterstroke asked 11/6, 2016 at 23:59

1

Solved

If content scripts are specified in manifest.json for Firefox, Firefox will also load content scripts for already opened tabs and execute them even the tabs are already in loaded and ready state. ...
Peepul asked 10/5, 2016 at 0:18

1

For my chrome and firefox extension, I need a way to figure if the background script has unloaded or is unloading. Is there an event fired when this happens? I went through multiple links on stacko...
Mosasaur asked 13/4, 2016 at 10:35

1

Solved

I am feeling overwhelmed by so many different approaches, guides, and yet none I tried work for me. Please connect at least some of the dots for me... My objective is to find a window object in ba...

© 2022 - 2024 — McMap. All rights reserved.