Closed
Bug 1323420
Opened 8 years ago
Closed 8 years ago
Add a pref to control the close button on web permission prompts
Categories
(Firefox :: Site Identity, defect, P2)
Firefox
Site Identity
Tracking
()
People
(Reporter: past, Assigned: nhnt11)
Details
(Whiteboard: [fxprivacy])
Attachments
(3 files)
2.97 KB,
patch
|
Details | Diff | Splinter Review | |
59 bytes,
text/x-review-board-request
|
past
:
review+
lizzard
:
approval-mozilla-aurora+
|
Details |
1.64 KB,
patch
|
past
:
review+
lizzard
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
In bug 1282768 I attached a patch that adds a close button ("x") to the permission prompts. The team decided to land this behind a pref, disabled by default, in case we decide too late in the beta cycle that we want to provide the 'x'. I'm attaching the original patch here, but it needs to be modified to consult the new pref.
Updated•8 years ago
|
Priority: -- → P2
Whiteboard: [fxprivacy][triage] → [fxprivacy]
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•8 years ago
|
||
Comment on attachment 8824847 [details]
Bug 1323420 - Add a pref to control the close button on web permission prompts.
I had a few spare minutes, thought I'd look at this.
I don't really like this patch as a patch, but thought I'd upload and ask if it's in the direction we want. It definitely takes your patch and puts its changes behind a pref, but I have a feeling I might be missing some context :)
Attachment #8824847 -
Flags: feedback?(past)
Reporter | ||
Comment 3•8 years ago
|
||
mozreview-review |
Comment on attachment 8824847 [details]
Bug 1323420 - Add a pref to control the close button on web permission prompts.
https://reviewboard.mozilla.org/r/103134/#review103750
::: browser/app/profile/firefox.js:519
(Diff revision 1)
> pref("privacy.cpd.siteSettings", false);
> pref("privacy.cpd.openWindows", false);
>
> pref("privacy.history.custom", false);
>
> +pref("privacy.permissionPrompts.dismissOnClose", false);
Something like showClose would be more accurate: this is about displaying the X button, not controlling dismissal.
::: browser/modules/PermissionUI.jsm:343
(Diff revision 1)
> let options = this.popupOptions;
>
> if (!options.hasOwnProperty('displayURI') || options.displayURI) {
> options.displayURI = this.principal.URI;
> }
> - // Permission prompts are always persistent and don't have a close button.
> + // Permission prompts are always persistent; the close button is controled by a pref.
Typo: controlled
Reporter | ||
Comment 4•8 years ago
|
||
Comment on attachment 8824847 [details]
Bug 1323420 - Add a pref to control the close button on web permission prompts.
Yup, that's what we want here! Nothing too fancy :)
Attachment #8824847 -
Flags: feedback?(past) → feedback+
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → nhnt11
Status: NEW → ASSIGNED
Updated•8 years ago
|
Iteration: --- → 53.5 - Jan 23
Flags: qe-verify?
Comment hidden (mozreview-request) |
Reporter | ||
Updated•8 years ago
|
Flags: qe-verify? → qe-verify+
Reporter | ||
Comment 6•8 years ago
|
||
mozreview-review |
Comment on attachment 8824847 [details]
Bug 1323420 - Add a pref to control the close button on web permission prompts.
https://reviewboard.mozilla.org/r/103134/#review105882
You added an 11th test in that file, so there is a (probably small) chance of intermittents. The reason we broke them up in the first place was to make the tests finish in a reasonable time. I hope it's not a problem in this case, but the safest bet would be to put it in _5.js that only has 9 tests so far :)
::: browser/app/profile/firefox.js:522
(Diff revision 2)
> pref("privacy.cpd.siteSettings", false);
> pref("privacy.cpd.openWindows", false);
>
> pref("privacy.history.custom", false);
>
> +pref("privacy.permissionPrompts.showCloseButton", false);
Actually, since this pref is checked in toolkit code, we have to set it in all.js instead.
Attachment #8824847 -
Flags: review?(past) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Comment 8•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8824847 [details]
Bug 1323420 - Add a pref to control the close button on web permission prompts.
https://reviewboard.mozilla.org/r/103134/#review105882
I think we should keep the new test next to the existing close button test, and also there is no Test#8 so it's technically the 10th test ;)
Comment 9•8 years ago
|
||
(In reply to Nihanth Subramanya [:nhnt11] from comment #8)
> Comment on attachment 8824847 [details]
> Bug 1323420 - Add a pref to control the close button on web permission
> prompts.
>
> https://reviewboard.mozilla.org/r/103134/#review105882
>
> I think we should keep the new test next to the existing close button test,
> and also there is no Test#8 so it's technically the 10th test ;)
Why don't you put it in place of Test#8 then? :)
Comment hidden (mozreview-request) |
Comment 11•8 years ago
|
||
Pushed by nhnt11@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/0c698bfb1310
Add a pref to control the close button on web permission prompts. r=past
Assignee | ||
Comment 12•8 years ago
|
||
Attachment #8829545 -
Flags: review?(past)
Reporter | ||
Updated•8 years ago
|
Attachment #8829545 -
Flags: review?(past) → review+
Comment 13•8 years ago
|
||
Pushed by archaeopteryx@coole-files.de:
https://hg.mozilla.org/integration/autoland/rev/17f55a59a7d2
Fix curly brace positioning for eslint. r=past
Comment 14•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0c698bfb1310
https://hg.mozilla.org/mozilla-central/rev/17f55a59a7d2
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 54
Assignee | ||
Comment 16•8 years ago
|
||
Comment on attachment 8824847 [details]
Bug 1323420 - Add a pref to control the close button on web permission prompts.
Approval Request Comment
[Feature/Bug causing the regression]: Puts the close button for permissions prompts behind a pref.
[User impact if declined]: none for now, but we want to be able to switch this pref later.
[Is this code covered by automated tests?]: yes
[Has the fix been verified in Nightly?]: yes
[Needs manual test from QE? If yes, steps to reproduce]: no
[List of other uplifts needed for the feature/fix]:
[Is the change risky?]: no
[Why is the change risky/not risky?]: Puts a behavior behind a pref, off by default (i.e. preserves existing behavior for now).
[String changes made/needed]: none
Flags: needinfo?(nhnt11)
Attachment #8824847 -
Flags: approval-mozilla-aurora?
Assignee | ||
Updated•8 years ago
|
Attachment #8829545 -
Flags: approval-mozilla-aurora?
Comment 17•8 years ago
|
||
Hi Andrei,
could you help verify if this issue is fixed as expected on a latest Nightly build? Thanks!
Flags: needinfo?(andrei.vaida)
Comment 18•8 years ago
|
||
Hani, please verify this on latest Nightly.
Flags: needinfo?(andrei.vaida) → needinfo?(hani.yacoub)
QA Contact: hani.yacoub
Comment 19•8 years ago
|
||
Verified that the button is correctly displayed when preference "privacy.permissionPrompts.showCloseButton" is set on true and not displayed when preference "privacy.permissionPrompts.showCloseButton" is set on false. Verified on Nightly 54.0a1, Build ID: 20170125030214, on OSes:
Ubuntu 16.04 x64, Windows 10 x 64 and Mac OS X 10.11.
While testing I observed that the "x" button functionality matches the functionality of the "Don't Allow" button, so it's not only closing the permission prompt notification, it's actually Block or Block temporarily the permission(depending if "Remember this decision" is checked or not).
Is this the intended behavior for the "x" button?
Flags: needinfo?(hani.yacoub) → needinfo?(past)
Reporter | ||
Comment 20•8 years ago
|
||
(In reply to Hani Yacoub from comment #19)
> Is this the intended behavior for the "x" button?
It is.
Flags: needinfo?(past)
Updated•8 years ago
|
Status: RESOLVED → VERIFIED
Comment 21•8 years ago
|
||
Comment on attachment 8824847 [details]
Bug 1323420 - Add a pref to control the close button on web permission prompts.
Verified in m-c, let's uplift to aurora 53.
Attachment #8824847 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•8 years ago
|
Attachment #8829545 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 22•8 years ago
|
||
bugherder uplift |
Updated•8 years ago
|
Iteration: 53.5 - Jan 23 → 54.1 - Feb 6
Comment 23•8 years ago
|
||
Verified that the button is correctly displayed and the functionality matches the functionality of the "Don't Allow" button, when preference "privacy.permissionPrompts.showCloseButton" is set on true and not displayed when preference "privacy.permissionPrompts.showCloseButton" is set on false.
Verified on Aurora 53.0a2, Build ID: 20170130004003, on OSes:
Ubuntu 16.04 x64, Windows 10 x 64 and Mac OS X 10.11.
Updated•8 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•