"Report broken site" in the protections panel + hamburger menu should be hidden when the WebCompat Reporter is disabled and/or when the `DisableFeedbackCommands` policy is configured
Categories
(Web Compatibility :: Tooling & Investigations, defect, P1)
Tracking
(firefox-esr128 unaffected, firefox-esr140 affected, firefox141 wontfix, firefox142- wontfix, firefox143- wontfix)
People
(Reporter: celenity, Assigned: twisniewski)
References
(Regressed 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(3 files)
|
48 bytes,
text/x-phabricator-request
|
diannaS
:
approval-mozilla-beta+
pascalc
:
approval-mozilla-release-
|
Details | Review |
|
5.64 MB,
image/gif
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
Steps to reproduce:
Set extensions.webcompat-reporter.enabled & ui.new-webcompat-reporter.enabled to false (via the about:config or some other means).
Actual results:
Observe that the Report broken site option is still visible at the top of the protections panel.
Expected results:
When the WebCompat Reporter is disabled, this option should also be hidden from the protections panel. At the very least, there needs to be some kind of preference to control this. This is very important for forks/custom configs/custom user.js files/etc. to prevent users from filing invalid reports and wasting Mozilla's time/resources.
| Reporter | ||
Comment 1•6 months ago
|
||
It just occurred to me that this is also important to fix for enterprise/policies, as this option appears regardless of the DisableFeedbackCommands policy.
Comment 2•6 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::Protections UI' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 3•6 months ago
|
||
Yep, I agree. I didn't even know it was on the protections panel.
| Reporter | ||
Comment 4•6 months ago
|
||
It looks like there's also a new Report broken site option in the hamburger menu as well (towards the bottom, above Help) - which also isn't covered by the existing preferences (extensions.webcompat-reporter.enabled & ui.new-webcompat-reporter.enabled) and/or the DisableFeedbackCommands policy.
| Reporter | ||
Updated•6 months ago
|
| Reporter | ||
Updated•6 months ago
|
| Reporter | ||
Updated•6 months ago
|
Comment 5•4 months ago
|
||
This is a regression of the bug 1952334. The logic to hide the item in the hamburger menu is missing in the commit:
https://hg-edge.mozilla.org/mozilla-central/rev/f4fae47c5010ae1c3a26c55faa9cafbfd406b90b#l11.108
Updated•4 months ago
|
Comment 6•4 months ago
|
||
:twisniewski, since you are the author of the regressor, bug 1952334, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 7•4 months ago
|
||
Thank you, Piro. I'll re-add that code ASAP.
| Assignee | ||
Comment 8•4 months ago
|
||
Oh.. I had forgotten about this, but what we do when Report Broken Site is disabled right now is that we change the feature to instead send users to webcompat.com to submit their reports, rather than using the new reporter.
I will keep that for the case where the new reporter is preffed off, but will explore how to disable and hide it entirely when DisableFeedbackCommands is set.
| Assignee | ||
Comment 9•4 months ago
|
||
Updated•4 months ago
|
Comment 10•4 months ago
|
||
Set release status flags based on info from the regressing bug 1952334
Comment 11•3 months ago
|
||
Updated•3 months ago
|
Comment 12•3 months ago
|
||
| bugherder | ||
Comment 13•3 months ago
|
||
The patch landed in nightly and beta is affected.
:twisniewski, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- See https://wiki.mozilla.org/Release_Management/Requesting_an_Uplift for documentation on how to request an uplift.
- If no, please set
status-firefox142towontfix.
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 14•3 months ago
|
||
Comment on attachment 9503074 [details]
Bug 1963764 - make sure Report Broken Site is still hidden appropriately when enterprise DisableFeedbackCommands policy is active (regressed by bug 1952334); r?gijs
Beta/Release Uplift Approval Request
- User impact if declined/Reason for urgency: Users who have DisableFeedbackCommands enabled in their enterprise policy settings will erroneously still see Report Broken Site in the menus.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: Set DisableFeedbackCommands in enterprise policies, and see if Report Broken Site appears in the help menu and app menu (it should not appear at all with that policy set).
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This is a regression, and the code's logic is the same as the working version used before, just checking for the DisableFeedbackCommands enterprise policy to be set, rather than a pref.
- String changes made/needed:
- Is Android affected?: No
| Assignee | ||
Updated•3 months ago
|
Comment 15•3 months ago
|
||
Comment on attachment 9503074 [details]
Bug 1963764 - make sure Report Broken Site is still hidden appropriately when enterprise DisableFeedbackCommands policy is active (regressed by bug 1952334); r?gijs
Approved for 142.0b6
Comment 16•3 months ago
|
||
| uplift | ||
Updated•3 months ago
|
| Assignee | ||
Comment 17•3 months ago
|
||
Comment on attachment 9503074 [details]
Bug 1963764 - make sure Report Broken Site is still hidden appropriately when enterprise DisableFeedbackCommands policy is active (regressed by bug 1952334); r?gijs
Beta/Release Uplift Approval Request
- User impact if declined/Reason for urgency: Users who have DisableFeedbackCommands enabled in their enterprise policy settings will erroneously still see Report Broken Site in the menus.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: Set DisableFeedbackCommands in enterprise policies, and see if Report Broken Site appears in the help menu and app menu (it should not appear at all with that policy set).
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This is a regression, and the code's logic is the same as the working version used before, just checking for the DisableFeedbackCommands enterprise policy to be set, rather than a pref.
- String changes made/needed:
- Is Android affected?: No
Updated•3 months ago
|
Updated•3 months ago
|
| Assignee | ||
Comment 19•3 months ago
|
||
Sure, it ought to apply cleanly on ESR 140 as well.
| Assignee | ||
Comment 20•3 months ago
|
||
Comment on attachment 9503074 [details]
Bug 1963764 - make sure Report Broken Site is still hidden appropriately when enterprise DisableFeedbackCommands policy is active (regressed by bug 1952334); r?gijs
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: Given that it affects enterprise policies, it seems appropriate to target ESR as well.
- User impact if declined: Users who have DisableFeedbackCommands enabled in their enterprise policy settings will erroneously still see Report Broken Site in the menus.
- Fix Landed on Version: 142 (uplifts to other branches also happening now)
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): The patch is very small and limited to only our report broken site feature.
Comment 21•3 months ago
|
||
Comment on attachment 9503074 [details]
Bug 1963764 - make sure Report Broken Site is still hidden appropriately when enterprise DisableFeedbackCommands policy is active (regressed by bug 1952334); r?gijs
Approved for 140.2.0esr
Comment 22•3 months ago
|
||
| uplift | ||
Updated•3 months ago
|
Comment 23•3 months ago
|
||
Celenity, I set up the policy as indicated but the "Report Broken Site" option in not gray out in none of the menus as in the recording attached. Is this expected? Thank you.
Comment 24•3 months ago
|
||
Mike, can you please confirm if attached recording is expected behavior? Thank you.
Comment 25•3 months ago
|
||
Comment on attachment 9503074 [details]
Bug 1963764 - make sure Report Broken Site is still hidden appropriately when enterprise DisableFeedbackCommands policy is active (regressed by bug 1952334); r?gijs
QA wasn't able to verify that the fix actually works and we have shipped multiple releases with this regression.
Also, I think this is not an S2 ("Major functionality/product severely impaired or a high impact issue and a satisfactory workaround does not exist"), probably more an S3/S4 given that it involves non default configurations.
Comment 26•3 months ago
|
||
Maybe I'm remembering wrong, but this fix was to bring back the fact that it was showing in the Browser menus.
We'll need a separate fix for the protections panel
| Reporter | ||
Comment 27•3 months ago
|
||
(In reply to Monica Chiorean from comment #23)
Created attachment 9504455 [details]
recordingCelenity, I set up the policy as indicated but the "Report Broken Site" option in not gray out in none of the menus as in the recording attached. Is this expected? Thank you.
Apologies for the late response here, thanks for taking a look at this. To answer your question: No, I don't think that's expected. I think that once the DisableFeedbackCommands policy is set, the option in the protections panel should also be hidden or grayed out.
Ideally, I think that these Report Broken Site UI options should also be hidden or grayed out when extensions.webcompat-reporter.enabled and/or ui.new-webcompat-reporter.enabled is set to false. It's currently somewhat confusing, since there's now those 2 separate preferences to control this functionality, and neither of them seem to work properly at the moment.
Comment 28•3 months ago
|
||
Reopen issue based on comment #27, please update if otherwise. Thank you.
Updated•3 months ago
|
Updated•3 months ago
|
| Assignee | ||
Comment 29•3 months ago
|
||
Ah, I see what's happening. I should have been more thorough before landing the patch here, sorry. It turns out that the policies disable the new reporter by pref, so my code to hide the reporter were being skipped outright. I'll make a new patch to fix that.
(In reply to celenity from comment #27)
Ideally, I think that these
Report Broken SiteUI options should also be hidden or grayed out whenextensions.webcompat-reporter.enabledand/orui.new-webcompat-reporter.enabledis set tofalse. It's currently somewhat confusing, since there's now those 2 separate preferences to control this functionality, and neither of them seem to work properly at the moment.
I'm fine with dropping one of the prefs (I would prefer the old one, since we do have others in the new- branch for controlling the behavior of the new reporter). Did you or others have a preference?
| Assignee | ||
Comment 30•3 months ago
•
|
||
Actually no, it seems that despite about:policies showing me that DisableFeedbackCommands is true (or false), Services.policies.isAllowed("DisableFeedbackCommands") is always returning true to my code. Weird. I'm not sure what's up yet.
| Assignee | ||
Comment 31•3 months ago
|
||
Oh my. I think I'm just being a bonehead, and the value I ought to be be checking is feedbackCommands, not DisableFeedbackCommands.
| Assignee | ||
Comment 32•3 months ago
|
||
Comment 33•3 months ago
|
||
Comment 34•3 months ago
|
||
Comment 35•3 months ago
|
||
Backed out for causing bc failures
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | browser/components/reportbrokensite/test/browser/browser_parent_menuitems.js | isMenuItemHidden(AppMenu) when disabled by DisableFeedbackCommands enterprise policy - menu item is hidden -
Comment 36•3 months ago
|
||
Updated•3 months ago
|
Comment 37•3 months ago
|
||
Comment 38•3 months ago
|
||
Reverted this because it was causing mochitests failures in browser_parent_menuitems.js.
- Revert link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | browser/components/reportbrokensite/test/browser/browser_parent_menuitems.js | isMenuItemHidden(AppMenu) when disabled by DisableFeedbackCommands enterprise policy - menu item is hidden -
Comment 39•3 months ago
|
||
:twisniewski Since RC week is next week, do we need to roll back https://phabricator.services.mozilla.com/D258785 and give this more time in nightly?
| Assignee | ||
Comment 40•3 months ago
|
||
Thankfully, what we've landed does no harm, so I don't think it's worth rolling it back (it effectively does nothing). I do still need to work on my patch, since I don't understand why it's intermittently failing on Linux yet, and I don't know if I'll have time to figure it out during this release cycle (but I'll try!)
Updated•3 months ago
|
| Assignee | ||
Comment 42•2 months ago
|
||
I (or someone else) needs to figure out what's causing my patch's tests to intermittently fail, and I don't have time to check into that right now.
One option is to ship the patch and live with it intermittently failing, but I suspect that we would not want to do that.
Updated•2 months ago
|
Comment 43•2 months ago
|
||
Comment on attachment 9503074 [details]
Bug 1963764 - make sure Report Broken Site is still hidden appropriately when enterprise DisableFeedbackCommands policy is active (regressed by bug 1952334); r?gijs
Clearing the approval flag to get this off the needs-uplift radar for ESR140.
Updated•2 months ago
|
Updated•1 month ago
|
Description
•