Questions tagged [firefox-addon-webextensions]

WebExtensions provide a versatile platform for developing browser extensions that can be used across various browsers like Google Chrome and Opera. Microsoft is currently working on introducing compatibility with their Edge browser in the near future. For any inquiries or issues related to debugging, please make sure to include your manifest.json file along with all the necessary files needed to recreate the problem.

Guide to duplicating a json file using the webpack duplication tool and integrating the version from the package.json file

I am attempting to move my manifest.json file (which is used for web extensions) into the build/ directory and replace the version within that file with the version stated in the package.json file using webpack's DefinePlugin. Is there a way for me t ...

Is there a way to consistently trigger the browser.webRequest.onBeforeRequest event in Mozilla Firefox when it is launched via a link?

Hello knowledgeable individuals. I am unable to solve this issue on my own. Here is the add-on I have created: 1) manifest.json: { "manifest_version": 2, "name": "Example", "version": "1.0", "description": "Example", "permissions": [ "tabs" ...

The event listener for browser.menus.onClicked is dysfunctional in Firefox

Currently, I am in the process of developing my own Firefox extension and I have encountered an issue with adding a listener to an onclick event for a context menu item. manifest.json { "manifest_version": 2, "name": "My exten ...

Exploring Firefox extension elements with Selenium: A step-by-step guide

I am looking to extract a link from a notification generated by an extension using Selenium for testing purposes across various websites. The specific extension I am working with is demonstrated in this GitHub example full code available here. It showcase ...

Content Security Policy Error triggered by Iframe Source Running Script in Web Extension

My web extension for Firefox utilizes a content script to add HTML to a webpage when a button is clicked. The injected HTML includes an iFrame nested in multiple div elements. Below is the relevant part of the content script: var iFrame = document.create ...