Closed
Bug 1513541
Opened 5 years ago
Closed 5 years ago
Report Site Issue button enabled for some release population users?
Categories
(Web Compatibility :: Tooling & Investigations, defect, P1)
Web Compatibility
Tooling & Investigations
Tracking
(firefox64+ wontfix, firefox65+ wontfix, firefox66+ fixed)
People
(Reporter: miketaylr, Assigned: twisniewski)
References
Details
Attachments
(3 files)
I cannot reproduce in a clean, new profile, but it appears there are some users out there who have this enabled (judging by the reports coming in). We need to get it turned off, and figure out why it's on in the first place. Things we knows: * extensions.webcompat-reporter.enabled is set to false, but toggling it to true, then false again actually disables it. * this does not appear to be a SHIELD recipe gone wrong (cf. Bug 1488931)
Reporter | ||
Comment 1•5 years ago
|
||
Comment 2•5 years ago
|
||
I can only reproduce with a local optimized release build, and also only when my CPU and my GPU are busy. But then, the "report site issue" button pops up. To my untrained eye, it almost looks like we are disabling the addon too late. This change [0] looks interesting to me: Tom, why did you decide to not have the function called immediately? Do we have any guarantee that the observer will fire at all/in time? Just brainstorming on what the issue could be here... :) [0]: https://phabricator.services.mozilla.com/D8678#change-tgz96YwIRtPN
Flags: needinfo?(twisniewski)
Assignee | ||
Comment 3•5 years ago
|
||
There were failures in checking that early, since the addon wasn't guaranteed to be ready to be enabled/disabled at that point. That's why I moved the startup-check into the other patch-hunk in XPIDatabase.jsm, and kept just the observer where it is. But if your theory is right and we have a race condition, then perhaps we will need to also start the observer at the same place in XPIDatabase.jsm, or perhaps there is something else going on that I don't really understand. What do you think, aswan?
Flags: needinfo?(twisniewski) → needinfo?(aswan)
Reporter | ||
Comment 4•5 years ago
|
||
As a temporary hack, and maybe to buy us time so we can wait for a dot release ride along, I'm going to try to head off any new reports on the server side: https://github.com/webcompat/webcompat.com/issues/2733. Working on it now.
Assignee | ||
Comment 5•5 years ago
|
||
Also sync system addon enabled/disabled state with its pref during updateAddonMetadata
Assignee | ||
Comment 6•5 years ago
|
||
I haven't yet figured out how to test this, but this is the direction that the addons team and I discussed we should take on IRC. Basically, the check for whether to enable the addon or not must be done in a second place in addition to addMetadata. I also found bug 1513617 with Screenshots' usage of nsBrowserGlue, and if that's fixed it might also benefit from this patch.
Flags: needinfo?(aswan)
See Also: → 1513617
Assignee | ||
Comment 7•5 years ago
|
||
I've updated the patch after a fresh discussion on IRC, but I'm still writing tests so it's not quite ready yet.
Assignee | ||
Comment 8•5 years ago
|
||
A quick update: I'm a bit stuck on tests, and have asked aswan for an assist to find out what I'm doing wrong. Assuming I'm not far off, I'm nearly done.
Flags: needinfo?(aswan)
Assignee | ||
Comment 9•5 years ago
|
||
Alright, I've managed to push the patch to a point where aswan feels the ball may be in his court now, due to a concern I'm not familiar with (though he may pass it back if he feels he doesn't have the time to get this across the finish line soon enough).
Assignee | ||
Comment 11•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=158b9b90feb60b0dabded0ada1695cdb3f7a071a
Assignee | ||
Comment 12•5 years ago
|
||
Updated•5 years ago
|
Assignee: nobody → twisniewski
status-firefox64:
--- → wontfix
status-firefox65:
--- → fix-optional
status-firefox66:
--- → affected
tracking-firefox64:
--- → +
tracking-firefox65:
--- → +
tracking-firefox66:
--- → +
Updated•5 years ago
|
Attachment #9030851 -
Attachment description: Bug 1513541 - Also sync system addon enabled/disabled state with its pref during updateAddonMetadata; r?aswan → Bug 1513541 - Ensure system addons are not accidentally started on start-up even if their about:config preferences are off; r?kmag
Assignee | ||
Comment 13•5 years ago
|
||
Alright, a try-run of the latest patch seems fine to me, so I've requested a review from kmag (as aswan suggested).
Assignee | ||
Comment 14•5 years ago
|
||
And one last try-push of the patch, as adjusted for review (just to be extra cautious): https://treeherder.mozilla.org/#/jobs?repo=try&revision=35ff35fa25f1248bdf7843fddfb867c955b2749f
Comment 15•5 years ago
|
||
Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/054b7887f985 Ensure system addons are not accidentally started on start-up even if their about:config preferences are off; r=kmag
Assignee | ||
Comment 16•5 years ago
|
||
The patch just received r+ conditional on a minor change, which aswan approved on IRC. Given that the previous try-run was fine, I've gone ahead and queued the final patch for landing with lando after a local test.
Comment 17•5 years ago
|
||
bugherder |
Comment 18•5 years ago
|
||
Given that this isn't a new issue and the circumstances to hit it seem a bit edge-case, I think it'd be better to let this fix ride the trains. Feel free to nominate the patch for uplift if you feel strongly otherwise, however.
Reporter | ||
Updated•5 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•