-
Notifications
You must be signed in to change notification settings - Fork 11
Add WebExtension port of this add-on #48
Conversation
For a discussion about how settings migration might work see #47. |
Just a note I'm not ignoring all of this, it's just I'm on vacation 🐼 |
Most stuff was rewritten and (if possible) simplified, the only truely original piece of code is the policy engine that processes the whitelist entries.
Also features a new "logo" for Smart Referer.
So here is the final version of this (for now): As you can see I've added a more user-friendly UI for managing exceptions. Additionally smart referer can now be enabled and disabled using the checkbox in the options OR using the icon on the toolbar. Everything else is unchanged (aside from be implemented as a WebExtension). @meh Thanks for your feedback on your current “status”. Have a nice holiday! 🙂 |
Known issue: Options page not displayed by this version (but on-off-toolbar-button works). In theory this should also work in Thunderbird, but could not be tested unfortunately.
I don't want to be annoying or anything but have you had time to take a look at this by now, @meh? In particular, since Firefox 51 has now been released, it'd be possible to release an intermediate version of this add-on that migrates the settings from the old (non-WebExtension) version of this add-on to the newly written code-base. |
Since somebody (@publicarray) asked about this, I think I will complete what I've started here. @meh: Would you review and let me publish this upgrade on AMO? |
7ebfb2a
to
437ff99
Compare
…r an embedded web extension
OK, I think I'm done for now; awaiting any review and particularly some testing. "Building" the code: Just run How to test the migration (please don't just "throw it in there", I need real feedback if things go wrong!):
If errors happen during the migration I will need both the relevant terminal and Browser-Console output! |
I tested the migration from a clean FF profile. It works as expected however I did not follow your instructions as
From the browser console:
Legacy prefs are also gone 👏 |
@publicarray: Thanks for your feedback! Regarding the @meh: What's your timeframe on providing initial feedback on this? |
Published, now to wait for approval. Nice work! 🐼 |
Thanks! 😁 |
What's the current AMO queue position? |
Queue Position: 228 of 278 |
@meh Thanks. Wow, it's possible humans will inhabit Mars before then. ;) |
@meh may I ask for an update on the AMO queue position? |
@publicarray Queue Position: 159 of 287 |
Thanks! This looks like a race, what will come first? The FF update that disables the current add-on or the new shiny extension gets approved? ;) |
Yeah, this is the first time it takes so long to get approved, it usually got put in front of the queue, probably because they were just minor updates. |
Actually the currently generated extension isn't even compatible with 57+, since it includes an unconfined migration aid -.- The queue we're waiting in for Smart Referer is also not the only one. After submitting an update to a new (from-scratch, WExt-only, 57+) extension, it's currently number 604 of 662 (at a about 15 progress per day) in it's queue… Probably just about every currently maintained add-on in existence sits in that queue! /So much for my rant on the current state of affairs in add-on-land. Just in case anybody wants to know how bad things currently are… |
Could you please share XPI file of the latest version? I don't care if it's signed ot not. |
@reallyuniquename I have made a singed version for myself (so that nightly stops complaining) with some changes. I'm willing to share it but be mindful that It's not 100% the code provided here.
https://seby.io/smart_referer.xpi 19c592849b141132a747c5b3ec0941a7d1755abd |
@publicarray All right, thanks. Few slightly unrelated questions. Does this extension/version spoof Can it be configured to spoof referer on direct page visit when browser sends no referer at all (e.g. bypassing hotlinking and 403s)? See #10. |
Yes, you can test it here https://seby.io/ref/ turn the Same Origin option on/off
I think I just found a bug where the mode can not be changed 🙊. Normally setting the mode to "Send the URL you're going to as referer" should do what you want I think. |
Weird… where did my response go? Anyway I tried to implement On the bright side: We got translation support and several other small fixes out of this (#54), so it at least was worth something 😄. (Also the current behaviour strikes make as quite a bit less than stable so the written code may still come in handy one day.) |
What's the current queue position? |
Queue Position: 40 of 195 |
Thanks @meh It's interesting how long they are taking. But at their current rate, we should expect an official release within 2 weeks. |
Any day now? 🙏 or has the Queue Position gone to negative one (-1) 😝 |
Queue Position: 23 of 109 |
Thanks @meh It's so close I can almost taste it. |
@meh since we have been waiting for so long it is possible to ask at https://discourse.mozilla-community.org/c/add-ons/addons-mozilla-org if someone can look into it. This comment is also interesting. Edit: If I had to guess than I think because of the major code changes to make this a web extension a reviewer flagged it for admin review which takes longer. |
It's been approved. |
Finally! But why is AMO not listing it as a webextension? |
Because it is an embedded WebExtension with an non-sandboxed migration agent. We'll have to upload an update by the beginning of September that drops the migration agent, then it will receive the 57+ badge. You can already build a pure-WebExtension version of the extension by running |
Thanks @Alexander255 |
@Alexander255 Is it time to drop the migration agent? |
@Gitoffthelawn Yes. @meh Will you look into doing #55 in the next couple of days, or should we do another intrim release? |
Most stuff was rewritten and (if possible) simplified, the only truely original piece of code is the policy engine that processes the whitelist entries.
Also contains a newly "designed" logo that is used for the toolbar icon requested #27.
Except for not preserving the previous settings this add-on does everything the previous iteration of Smart Referer did and more!