-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firefox support #52
Comments
I've tried to fix it but the devtools experience in Firefox is just unbelievably terrible for WebExtensions compared to Chrome's, so sorry, I just can't stand it for more than a couple of minutes, probably because I'm a total noob in Firefox devtools. Hopefully other developers don't have this problem (@schomery?). Things I've noticed that need fixing:
|
@tophf - Thanks for the update. Works fine when I install it as a temporary addon, however when I attempted to self-sign it at addons.mozilla.org for my own usage, clicking on the "Manage" or "Open styles manager" button in Stylus fails. Here's the validation report:
Out of those issues, the main one I believe is the Apparently, Stylus will need to use an Add-on ID when using Then, that ID needs to be unique and added to the Here's some more info about the Update: I attempted to add in the |
I'll try self-signing at some point in the future, when we're closer to the next version release. |
Just updated to v1.0.7 and this fixed the issue with the popup styling in Firefox. Tested with Firefox 53. |
24b82f8#diff-b5dfc3ff7c7bccd1bec16cd3bc5f663eL122 fixes this. |
The current master branch works fine in Firefox browser. Let's submit it to AMO and get some feedback. |
@tophf and @narcolepticinsomniac if you have Firefox id, please share so that I can add you guys to AMO. |
I can't install it from AMO, Firefox says it's corrupt apparently because the addon is not signed. Anyway, I don't have an AMO id, nor want to have one as I don't use FF. |
Yes, it is not yet reviewed. But we should add this block to the manifest anyway as Linux version apparently needs it.
|
|
I have no idea. So it's better to just add it before submission for now. |
Okay, I've tried adding and it indeed shows as an error on chrome://extensions page. I really don't give a damn about FF so please don't add it in the main manifest.json. |
sure |
It installs in WaterFox. I get a "Cannot communicate with the page" warning in the popup after installing. Browser restart was necessary to get rid of it. I'm not a huge Firefox fan either, but it's pretty great to have an interchangeable DB backup. Every once in a while, I like to play around with FF to see if it has improved, and importing styles manually was a huge drawback. I'm checking out my Stylus style in FF, and it just needs a few tweaks. One thing that's not immediately obvious to me is why |
I've installed in portable Dev FF. Same "Cannot Communicate" warning as Narco above when installing. So far: |
Were they lost due to the backup import, you think? Yeah, I hadn't checked, but installing styles from USO doesn't work. I think we might have another FF specific dilemma there as well. For FF, I think as far as regular styles for websites, users might really prefer Stylus since it has a much nicer UI, it has quite a few extra features, and it applies styles just as well, but it can't affect the browser UI and internal pages like the legacy Stylish. I'd bet that a lot of users who might want to use Stylus for the majority of userstyles, are still gonna want to have the old version of Stylish for the specialized stuff. In which case, there'll be a competition for the USO install button if we don't implement a workaround. |
I am assuming so. They were simply gone as soon as the backup was installed. Same thing when I tried again in nightly. I'm genuinely loving the idea of one extension for both FF and Chrome type browsers, and agree with your assessment. I've been pretty impressed by Stylus-Chrome so far, so any love given to us diehard FF users is greatly appreciated! |
I got around to testing this and can confirm that not only does this occur in FF, but in Chrome as well. Fresh install, install a couple styles, and then import a backup. The couple installed beforehand are gone. I'm surprised with all the testing we did, something like that slipped by. I wouldn't think it's all that uncommon a scenario, it's just not a sequence I ever tested personally. I've seen the import successfully ignore preexisting styles so often, I kinda took it for granted that it was always working. |
That's the original behavior of the backup process: it overwrites an old style with the same id. Not sure what a universal approach might be for such cases. I guess I can try to detect whether the old style and the new one have nothing in common by checking more fields, and assign a new id accordingly (that might introduce some unwanted duplicates but it's easier to delete a duplicate than to restore an overwritten style). |
Well, that sounds much better than how it's currently handling the scenario. Not sure what fields you're referring to, but if it cross-references the style name and its applies-to rules, duplicates should be minimal. Depends how lenient the check for similarities can be made, which could be more-so with the more fields checked, I suppose. |
A couple other observations in my brief testing of FF. The tab has no icon, which seems odd: Also, when the manage page is loaded, the population of the list of installed styles (for a large DB) is much slower and clumsier in FF. Maybe that's just one of the many charms of FF that fans have learned to settle for. I always want to like FF, but slow and clumsy, and horrible with CPU (especially regarding simple javascript) has always been a deal-breaker. I wonder how v57 will differ in those regards. |
fixed via 4df35b8
Yeah. I checked performance timeline in devtools once and it showed such a ridiculous amount of FF overhead code that I immediately gave up as I have no idea how to tackle this. |
I'm not seeing any difference. Tested a couple times with a style installed from USO (not present in the backup) and a random test style created (nothing even remotely similar in the backup). Both were lost upon importing the backup. |
Indeed, it was wrong. Hopefully, fixed in 449f86e |
Ran the same couple of tests, and it seems fixed. Definitely a huge improvement anyway. |
How the hell do you even sideload an extension in FF? |
How bout: Each browser also restricts access to its own extensions gallery (like Chrome Web Store or AMO). I can switch it up and and remove completed translations if that's good. |
Thanks! do we need to remove the completed translations? |
For the popup message, I would think so. It's a fairly significant addition to the message. NBD to me personally, just figured they'd need an update. If you think they're close enough, that's fine by me. |
That's right. Please remove the completed translations then. |
Message is edited, and completed translation entries should all be removed. |
@tophf I just tested in Nightly, and the issue with the style list speed on the manage page seems resolved. Pretty damn close to being on par with Chrome anyway. @schomery I figured 1.0.8.1 contained those bug fixes, but it doesn't. Looks like Stylus has finally been approved by Mozilla, so we might wanna push those. |
I see that Stylus is finally available for FF which is awesome. Not able to write and save a new style yet. Save button doesn't seem to work. Also tried importing styles from Chrome, but FF Stylus tab just hangs, Not sure if you guys know about this, or if it's a conflict with my install; vanilla FF up-to-date with NoScript & uBlock Origin. |
I saw another report like this, but I haven't been able to replicate. Everything works fine. Have you tried without NoScript enabled? I just tried to install NoScript in WaterFox to test, and after installing, it's now crashing the whole browser every time I launch it. |
Finally got Waterfox working with NoScript. and I already had UBo. I have no issues importing or saving. Double-checked in FF stable portable. Installed NoScript, then UBo, then Stylus. No issues there either. You're not the only one reporting this though. I saw another comment here. I know NoScript is pretty powerful, but |
@BangDroid You have FF set to "never remember history"? Another user with the same issues figured out that was what was causing it here. Don't know if there's much that we could do about this. Seems like a FF bug to me. |
@narcolepticinsomniac I am preparing the FF version right now. |
@narcolepticinsomniac I use FF with the same settings as private mode - but not an actual 'private window'. Changing FF to remember history fixed the issue with Stylus; I can write and import. Other observations, I opened a Private Window to see if anything differed. The popup is non-functional - none of the buttons work and where it would normally say the URL was blank. |
@BangDroid Firefox's storage is pretty messed up at the moment. Chrome provides isolated storage for extensions so even in the private mode, extensions still can read/write to the |
@schomery Ok. I have Stylus working now, I had to de-select "never remember history" and use custom setting for history. |
I found this happening for accented characters on Stylish for Firefox only on that panel message "Stylus doesn't work on pages like this": |
it seems that the localized strings written to moz-extension://812e069f-0f48-1c40-989e-52f1c0055a5f/popup.css have encoding issue. Can somebody opens a bug in bugzilla? |
Added a workaround for the FF bug with CSS messages in 2687d1e |
@schomery, now that FF is supported, can we close this issue? I think new problems should be submitted as new issues. Also, it is possible to add a new version on AMO before it gets their review under the "Versions" at the bottom of the addon page? |
I would say close it. Stylus works well on Firefox. |
@XeonX1, I can't reproduce in FF55 dev/standard edition nor 56 nightly. Make sure you don't block WebExtensions storage by using incorrect settings in addons like Cookie Monster etc. Or maybe you use the private mode in FF. I have no idea how to disable it so just read the posts above this one. If it won't help, check devtools console for errors, submit a new issue, include those errors if any. It's also weird your screenshot has a window title and frame because in FF the options are shown as a part of the addons manager page. I'm closing this issue because FF support is a done deal. |
@schomery, please edit the AMO description (also mirrored on about:addons page for Stylus) that links to this thread, and relink to |
@tophf done. |
I think we can submit beta versions too. Not sure if they get signed or not. |
@XeonX1 this is not a Stylus issue. You will get this blank UI on all WebExtension option pages. For instance try my Popup Blocker add-on with this "Extensions Options Menu" add-on. You need to report this to "Extensions Options Menu" forum or bug reporter. |
It should be relatively easy to support Firefox now that Firefox supports WebExtensions, which is an API that is compatible with Chrome's model:
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Porting_a_Google_Chrome_extension
I tested Stylus briefly (using Chrome Store Foxified to install it in Firefox) and it works pretty good.
One minor thing I've found is the popup that appears when clicking on the Stylus toolbar button has scrollbars.
The text was updated successfully, but these errors were encountered: