Firefox: unable to install or write new styles

Hi,

So I've been using this extension for years. Never had an issue. Maybe performance, but that's my fault. Today I was trying to install a new style, and found out that the "Install with Stylish" button in the userstyles.org website is doing nothing. To get around it, I tried to manually create the style but no window shows up at all.... I can't add new styles!!!

When I click Install, the only clue I'm given is a e.preventDefault() deprecation warning on a application.js file... afaik warnings shouldn't halt execution. When I try to write a new style manually, I'm given a browsers[i].contentDocument null TypeError and no editor window is shown.

I'm using Firefox Developer Edition. Any ideas?

Comments

  • edited December 2016 Chrome
    Try:

    about:config - change extensions.stylish.editorWindowMode to 1

  • Hey, thanks! I've tried that and had no luck. I've re-installed the add-on, but doesn't work either.

    I just noticed someone reported same issue in the Firefox add-on website, using same version as me. Could it be broken for FF 52?

  • edited January 1 Chrome
    Sorry to hear it. I've seen this bug, or something like it being discussed. The general consensus was that that config setting worked for a similar issue recently. I don't use FF much, and haven't come across any editor bug when I have. The thread I was getting that answer from is here. There may be something else useful to you there. I wish you luck.
  • edited January 1 Firefox
    Try this:
    About:config > extensions.stylish.editorWindowPersist > right click > restore default values.
    If it doesn't work, restore the firefox profile (about:support), before reinstalling Stylish. But remember that by restoring, you lose everything except bookmarks, so back up what's important.
  • Happy new-years I guess? Hehe.

    So I usually have several profiles at the same time, mostly for work accounts on PayPal and such; I only have uBlock and a Profile Switch add-on there. I decided to try installing Stylish, and it worked.

    Next, I thought my profile was probably kill. But I didn't want to restore the thing. I tried on last time to disable all my plugins, and giving it a try... didn't work. Then I just fiddled with Session Manager to prepare for an imminent reset (saved a session, restarted Firefox without tabs), then for some reason decided to give Stylish a try and... IT WORKED AGAIN.

    I have absolutely NO idea why. Leaving it here for future reference of someone else out there.

  • edited January 2 Firefox

    ... nevermind! It stopped working again. Found the culprit, though: KeeFox. For some reason, it prevents any tweaking process inside Stylish (writing new styles, installing from URL, installing from Web).

    Further testing is needed, of course.

    EDIT: I'm unable to reproduce. I'll just use it as is... if it works, don't fix it.

  • I couldn't find the repository to submit a patch so I'll post it here.

    The issue is in the stylishCommon.focusWindow function. It errors out when contentDocument of a tab is unaccessible.

    The patch makes it check first if it's accessible. With the patch it may not quite work as intended as the function can not focus the editor tab any more but at least it will let edit userstyles.

  • I couldn't find the repository to submit a patch so I'll post it here.

    The issue is in the stylishCommon.focusWindow function. It errors out when contentDocument of a tab is unaccessible.

    The patch makes it check first if it's accessible. With the patch it may not quite work as intended as the function can not focus the editor tab any more but at least it will let edit userstyles.

    I hope someone see's this. I can't even sync my stylish after a fresh install
Sign In or Register to comment.