-
Notifications
You must be signed in to change notification settings - Fork 515
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
[improved descriptions] for extensions.getAddons.cache.enabled #615
Comments
Ahh, I never knew that clicking an extension card to load in it's own "page", actually expanded to show all the text. I just assumed each extension showed a one-liner, and the own page was to set update policy per extension, show version number, etc. Worthy of a |
thanks @v00p 💋 |
Which means any extensions that you previously installed while this config was set to |
I'll reopen, so we can investigate further. The purpose of the pref may have changed over time |
This is old, probably added when FF4 came out - but it also hasn't been removed or updated AFAICT: https://blog.mozilla.org/addons/how-to-opt-out-of-add-on-metadata-updates/
|
I am not an expert at reading this stuff.... There is a pref called metadataAge() {
let now = Math.round(Date.now() / 1000);
let lastUpdate = Services.prefs.getIntPref(PREF_METADATA_LASTUPDATE, 0);
return Math.max(0, now - lastUpdate);
},
isMetadataStale() {
let threshold = Services.prefs.getIntPref(PREF_METADATA_UPDATETHRESHOLD_SEC, DEFAULT_METADATA_UPDATETHRESHOLD_SEC);
return (this.metadataAge() > threshold);
}, .. and if you follow the crumbs it seems to call /**
* Fetch metadata for a given set of addons from AMO.
*
* @param aIDs
* The array of ids to retrieve metadata for.
* @returns {array<AddonSearchResult>}
*/
async getAddonsByIDs(aIDs) {
return this._fetchPaged(aIDs, PREF_GETADDONS_BYIDS,
results => results.map(
entry => this._parseAddon(entry)));
}, I need someone like @earthlng to confirm what exactly is actually going on, and also that time factor (it's probably once a day) I guess the question is, does this do any harm - given we set extension update checks = on: I'm not worried about Mozilla getting info TBH, but blocking this would seem to be a bit pointless: so at the very least we could make it inactive (but leave the pref in for those who want to disable it) I also wonder about |
Hmmm you might be right. I completely forgot the nasty "scheduled phone stab" scenario.. I'll digg a little more... |
browser_preferences_usage.js at line 100 uses function checkPrefGetters and says it is accessed in debug only. |
Some help...
The metadata seems to be fetched mostly on addon install/update, with few exceptions, but |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bump .. anyone any wiser as to when / if addon metadata cache checks for updates? |
Not with updates disabled. I have updates disabled, plus the entry Note: I also have browser.addon-watch.interval twartwed with -1 |
^I'm on ESR. Btw by checking around I see that going to Help>About Firefox and clicking for updates still gives me the opportunity to update to the latest ESR version. |
@earthlng bump .. can you work this out (follow the code man!) as in when it gets updated ... I don't mean that we remove it, but maybe make it inactive if it doesn't call home any more than when you update/install @Atavic it's not about "thwarting" it, it's about does it call home (which is not a risk, but useful for those who want zero outbound) in the background (i.e not when updating/installing) |
it's a bit tough to follow but as far as I can tell it's only used on install, update and the daily background update checks. (thanks @claustromaniac for the breakdown and all the links) |
Already did 1c09ec3 .. but I think inactive is a good choice as well .. will do some rewording and a commit later |
OK, flipping this to inactive. We check auto-CHECK for updates, so this does nothing except limit information. |
FWIW, with the pref reset, I just checked for extension updates (there were none), and nothing changed. I used uBO, since that is OP's exaample, but of course my uBO is already up to date, so we'll see what happens down the track , i.e when an update is available then it should start building the cache? |
the extra metadata displayed only ends up in your cache when you actually update the extension. I just had CanvasBlocker with a single line (remember, I checked for updates a few hours ago), checked for updates, CB needed one, so I did it, and now CB has a mountain of info displayed So when "update checking" can be crossed off the list. |
see #615 (comment) - checking for updates is not a trigger, having an update **and** applying it is
... the daily background update checks! |
hashtag blackwordsmatter :) |
I was going to check in the next 20+ hours to see if any of the other extensions I have update their meta data then add that in. I'll re-open as a reminder. IF you're sure, then just do a commit and close |
I wonder what URL it uses, because we block extensions.webservice.discoverURL - probably doesn't use this one, but the same one as checking for updates, IDK .. guess I'll find out |
probably |
OK .. practically 24hrs after resetting the pref, the addons got their metadata |
see arkenfox/user.js#615 (comment) - checking for updates is not a trigger, having an update **and** applying it is
This config not only disable updating, but fetching as well.
Might worth mentionning in the comment.
Current:
Proposed:
Before/Afer sample:
The text was updated successfully, but these errors were encountered: