Git Product home page Git Product logo

Comments (4)

aswan avatar aswan commented on August 19, 2024

@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.

tgkprog avatar tgkprog commented on August 19, 2024

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.

rpl avatar rpl commented on August 19, 2024

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.

tgkprog avatar tgkprog commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.