Comments (4)
@tgkprog: there's an inconsistency above, your exception says: "hrome.browserAction is undefined"
, but of course you want chrome.browserAction
or browser.browserAction
.
If that's just a copy/paste error, can you include a link to the full code for your extension?
from webextensions-examples.
This is issue is there on Ubuntu 16, Firefox 47, Yes I changed the code. My code is at https://github.com/tgkprog/webExtnNotifyUrlWS/blob/891cc6ef25094842d5b9156b174cb6cbed1f2424/code/notify.js#L88
from webextensions-examples.
I just tried to load the extension linked above on my system:
- lsb_release: Ubuntu 16.04.1 LTS
- Firefox version: 47.0 (installed from apt, built from Canonical)
Once the extension is started, its browserAction button is visible in the toolbar, and when I click on the browserAction button I get the following logs in the Browser Console:
send1 request1 | notify.js:13:2
An error occurred while transferring the file.[object ProgressEvent] | notify.js:71:3
e hist add 1 | notify.js:165:2
e hist add end | notify.js:181:2
which, at least from a brief look at the sources, seems to confirm that the browserAction onClicked listener has been called.
To be even more sure that the listener is called everytime the button has been clicked, I also tried to set a breakpoint from the Browser Toolbox and I've been able to step through the send1 function, and so the onClicked listener seems to work without issues on my system.
Have you already tried to reproduce the issue on a clean profile (e.g. a newly created profile without any other addon installed)?
from webextensions-examples.
Hmm its working now. Maybe my permissions were not right earlier. I dunno. Sorry. but I read somewhere on the mozilla site that this feature is in 48 and beyond so was testing on 48 on my windows... and beta on ubuntu. anyway closing this. thank you for your time.
from webextensions-examples.
Related Issues (20)
- Favourite Color bug manifest HOT 11
- Native messaging example doesn't pong after a while HOT 3
- browser is not defined in firefox HOT 3
- Can't get response in Ubuntu HOT 10
- Python Native Messaging host does not process 1MB input HOT 11
- Image is not loading by innerHTML in the content-script-register HOT 3
- Create an example of getting select text to a variable HOT 2
- Please add example for "Paste text from clipboard" HOT 5
- examples.json should include a way to list significant manifest keys
- Update eslint, fix linting errors and integrate in CI
- MV3 example for getting data from page/content script/activeTab context into action / popup HOT 3
- Broken root-cert-stats due to var -> let change HOT 6
- Firefox Load temporary addon not working HOT 12
- native-messaging app example: provide non-contrived example for each platform HOT 1
- Update root-cert-stats to use runtime.sendMessage HOT 3
- zip does not contain a valid manifest HOT 2
- Examples disabled when run via web-ext or from folder (applyCSS, borderify) HOT 9
- minor bug with native messaging example HOT 2
- native messaging example: port disconnects without an error HOT 14
- devtools-panels example broken with manifest v3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webextensions-examples.