The state of "Remember this decision" checkbox is not visible on doorhangers
Categories
(Firefox :: Site Identity, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox65 | --- | unaffected |
firefox66 | --- | unaffected |
firefox67 | + | verified |
People
(Reporter: gpalko, Assigned: surkov)
References
Details
(Keywords: regression, Whiteboard: [fixed by bug 1455433])
Affected versions
- Nightly 67.0a1
Affected platforms
- Windows, MacOS, Ubuntu
Steps to reproduce
- Launch Firefox Nightly
- Open https://mozilla.github.io/webrtc-landing/gum_test.html
- Click the Audio&Video button
- Click Allow on the camera and microphone access doorhanger
- Reload the page and select Audio&Video button again
- Click on the "Remember this decision" checkbox
Expected result
- Checked/Unchecked state is visible on the checkbox
Actual result
- The checkbox is empty after every click, the user doesn't know if the checkbox is checked or not
Regression range:
After running mozregression, it seems that this was introduced by https://bugzilla.mozilla.org/show_bug.cgi?id=1487065:
Notes
This is reproducible on all doorhangers, except the Location access doorhanger.
Comment 1•6 years ago
|
||
Brian, can you take a look, please? Thank you!
Comment 2•6 years ago
|
||
[Tracking Requested - why for this release]:
Can't use checkbox in permission doorhangers.
Comment 3•6 years ago
|
||
@johannh can I take this up?
Comment 4•6 years ago
|
||
I'm not sure what caused this so I think Brian should take a look at it first.
Comment 5•6 years ago
|
||
I can't reproduce it locally, but I think it might be something wrong on my end. After step 4 (Click Allow on the camera and microphone access doorhanger), it doesn't actually share my camera and I see "NotFoundError: The object can not be found here." in the console and displayed in red in the page. I was seeing this error when running some of the webrtc mochitests as well (which were failing locally both before and after Bug 1487065, but passing on try in both cases).
Comment 6•6 years ago
|
||
Okay, please assign me some other bug till then. Also, how do I self assign a bug?
Comment 7•6 years ago
|
||
Matt and I walked through some pretty complicated logic for maintaining the checkbox state within popupnotification using checkboxState and _onCheckboxCommand when working on that bug. We ultimately ended up pulling the checkboxchecked attribute off of the popupnotification node (which was then being inherited down onto the checkbox) and managed more directly (https://searchfox.org/mozilla-central/rev/00f3836a87b844b5e4bc82f698c559b9966e4be2/toolkit/content/widgets/popupnotification.js#44) because I was seeing issues like the one filed here when we were using the attribute. Unfortunately I'm not seeing that discussion in https://phabricator.services.mozilla.com/D17699 so I think it happened on IRC.
My best guess is that this.checkboxState
is getting reset to false after being set to true in _onCheckboxCommand (https://searchfox.org/mozilla-central/rev/00f3836a87b844b5e4bc82f698c559b9966e4be2/toolkit/modules/PopupNotifications.jsm#1459).
Matt or Johann, can you confirm the STR? As I mentioned in Comment 5 I'm not able to reproduce locally so it's hard for me to debug this.
Comment 8•6 years ago
|
||
Also, sorry, but I'm going to be offline next week so I won't have time to fix this before the merge. Matt, would you be able to take this over or find another owner for it?
Comment 9•6 years ago
|
||
Yeah, I'll look into it next week.
Updated•6 years ago
|
Comment 10•6 years ago
|
||
I can't reproduce this so I will do a mozregression to confirm the fix.
Comment 11•6 years ago
|
||
Mozregression tells me this was fixed by https://hg.mozilla.org/integration/autoland/rev/623c6ca6ed6c (bug 1455433).
Gyula Palko, can you verify the fix?
Reporter | ||
Comment 12•6 years ago
|
||
Verified, that the issue is no longer reproducible on the latest Nightly 67(20190305214137).
Updated•6 years ago
|
Description
•