Rob--W / stackexchange-notifications

Realtime desktop notifications for Stack Exchange sites.
44 stars 8 forks source link

Firefox add-on broken #15

Closed protist closed 9 years ago

protist commented 9 years ago

Hi, this add-on doesn't appear to provide notifications any more. I also cannot find how to access its settings. The add-on bar is no more, but I cannot find the icon to drag it to the "normal" toolbar. It'd be nice to be able to access the settings from the Add-on page, and/or the Tools menu.

FF 33.1.1 Arch Linux

Rob--W commented 9 years ago

I'm also using Firefox 33.1.1 on ArchLinux, and the add-on works as expected. Do you have any other conflicting add-ons? ffsenotif

protist commented 9 years ago

There's no new add-ons added since it worked, but of course an update to any of them may have caused this behaviour. Is there another way to access the settings? Would that provide some useful feedback that it's configured okay?

Rob--W commented 9 years ago

@protist If you right-click on the menu bar and choose "Customize", doesn't the button show up somewhere in the customization panel?

protist commented 9 years ago

You mean click on the ≡ in the menu bar then "Customize"? Yeah, there is no button there.

protist commented 9 years ago

And I just restarted Firefox to check, and the "connecting" window shows, so it's definitely running on some level.

Rob--W commented 9 years ago

It is there if I create a new profile and install the addon from AMO:

customize

Do you see any errors? (Ctrl Shift J) (besides a deprecation warning about the widget module)

protist commented 9 years ago

I'm not sure what AMO is, but is that the Mozilla Add-on site? That's where I installed it from. Also, in my current profile, I can see just the deprecation warning when I filter by stack:

"DEPRECATED: The widget module is deprecated.  Please consider using the sdk/ui module instead.
Traceback (most recent call last):
  File "resource://gre/modules/commonjs/sdk/passwords.js", line 47, in createWrapperMethod/</<
    onComplete(value);
  File "resource://stackexchange-notifications-at-jetpack/desktop-notifications-stack-exchange/lib/main.js", line 35, in .onComplete
    onReady(token);
  File "resource://stackexchange-notifications-at-jetpack/desktop-notifications-stack-exchange/lib/main.js", line 57, in onReady
    require('sdk/widget').Widget({
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 633, in require
    freeze(load(loader, module));
  File "resource://gre/modules/commonjs/sdk/loader/cuddlefish.js", line 129, in CuddlefishLoader/options<.load
    result = load(loader, module);
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 313, in load
    evaluate(sandbox, module.uri);
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 262, in evaluate
    : loadSubScript(uri, sandbox, encoding);
  File "resource://gre/modules/commonjs/sdk/widget.js", line 59, in null
    require("./util/deprecate").deprecateUsage(
  File "resource://gre/modules/commonjs/sdk/util/deprecate.js", line 18, in deprecateUsage
    let stack = get().slice(2);"
protist commented 9 years ago

Interesting… I created a new profile, installed the add-on from Mozilla, then immediately switched to configure, and the icon was still missing.

Rob--W commented 9 years ago

I followed these steps:

  1. Open terminal.
  2. Run mkdir /tmp/fftmp ; firefox --no-remote -profile /tmp/fftmp https://addons.mozilla.org/en-US/firefox/addon/real-time-desktop-notificat/
  3. Install the addon.
  4. Observe that the addon icon immediately shows up at the upper-right corner.

Firefox 33.1.1 ArchLinux x64 KDE.

Could you show your steps, or even a screenshot / video of the issue?

protist commented 9 years ago

This is very strange. I tried your way, and it worked fine. I then tried my original new-profile method (using the GUI with firefox -P), and the icon was there. I plausibly missed it before, since it was in the toolbar already, and not in the "unused" box, where I had checked.

However, I then opened up my old profile, and the icon was in the "unused" box. It was definitely not there before, as I had checked that region at least three times. I accessed the settings, and it looks fine (Socket status: listening.). However, filtering by stack in the browser console again, I can now see

The connection to wss://qa.sockets.stackexchange.com/ was interrupted while the page was loading.

I guess I'll wait until I have a notification and see if it triggers, then report back.

Rob--W commented 9 years ago

@protist So it works fine? What is your Stack Exchange / Stack Overflow account? I can write you a comment for debugging purposes.

Rob--W commented 9 years ago

@protist I've written a comment. Did you get a notification? Do you still see the button in the toolbar?

protist commented 9 years ago

Okay, so now it works! I have no idea what happened there. Thanks for the help, and please let me know if there's any more debugging I can do.

protist commented 9 years ago

And yes and yes to your questions.

Rob--W commented 9 years ago

@protist Ok, great!