Closed
Bug 1193004
Opened 9 years ago
Closed 9 years ago
Always show permissions section in the Control Center
Categories
(Firefox :: General, defect, P1)
Firefox
General
Tracking
()
Tracking | Status | |
---|---|---|
firefox43 | --- | verified |
People
(Reporter: bgrins, Assigned: ttaubert)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxprivacy])
Attachments
(2 files, 1 obsolete file)
(deleted),
patch
|
bgrins
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review |
Right now, the Permissions section is only visible when there are some non-default permissions for the site. For Bug 1188355, we should make it visible all the time, and then have the following text visible if there are no non-default preferences:
"You have not granted this page any special permissions."
Flags: qe-verify+
Flags: firefox-backlog?
Updated•9 years ago
|
Flags: firefox-backlog? → firefox-backlog+
Updated•9 years ago
|
Priority: -- → P1
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → ttaubert
Status: NEW → ASSIGNED
Iteration: --- → 43.2 - Sep 7
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8657064 -
Flags: review?(bgrinstead)
Reporter | ||
Comment 2•9 years ago
|
||
Comment on attachment 8657064 [details] [diff] [review]
0001-Bug-1193004-Always-show-permissions-section-in-the-C.patch
Review of attachment 8657064 [details] [diff] [review]:
-----------------------------------------------------------------
The browser_permissions.js is going to need to be updated since it will fail with this patch applied. Can you modify that test to check is_hidden on the description element instead of permissionsContainer?
::: browser/locales/en-US/chrome/browser/browser.dtd
@@ +729,5 @@
>
> <!ENTITY identity.moreInfoLinkText2 "More Information">
>
> <!ENTITY identity.permissions "Permissions">
> +<!ENTITY identity.permissionsEmpty "You have not granted this page any special permissions.">
Ash, is this string still correct with the new design work?
Attachment #8657064 -
Flags: review?(bgrinstead)
Reporter | ||
Comment 3•9 years ago
|
||
(In reply to Brian Grinstead [:bgrins] from comment #2)
> Ash, is this string still correct with the new design work?
Also, do we still want the 'always shown' permissions section in the main view for 43 or should that wait for 44 along with the subview changes?
Flags: needinfo?(agrigas)
Comment 4•9 years ago
|
||
(In reply to Brian Grinstead [:bgrins] from comment #3)
> (In reply to Brian Grinstead [:bgrins] from comment #2)
> > Ash, is this string still correct with the new design work?
>
> Also, do we still want the 'always shown' permissions section in the main
> view for 43 or should that wait for 44 along with the subview changes?
The main view can show as long as it matches existing behavior of the current release version users have (https://www.dropbox.com/s/c2telu40akl3p10/Screenshot%202015-09-03%2017.56.43.png?dl=0) in terms of functionality until we update it with the subpanel in 44.
For the string - we have currently: 'Requested by this site.' - it doesnt change whether you have something showing or not below it. For now, we can use 'No permissions have been requested.'
Flags: needinfo?(agrigas)
Comment 5•9 years ago
|
||
(In reply to agrigas from comment #4)
> For now, we can use 'No permissions have been requested.'
This isn't accurate either. A site could have requested a permission with the user ignoring the request or granting / denying it without persisting that choice.
Updated•9 years ago
|
Iteration: 43.2 - Sep 7 → 43.3 - Sep 21
Assignee | ||
Comment 6•9 years ago
|
||
Didn't change the string, the current version seems to make the most sense.
Attachment #8657064 -
Attachment is obsolete: true
Attachment #8658715 -
Flags: review?(bgrinstead)
Comment 7•9 years ago
|
||
Permissions are generally site-specific, not page-specific, and the string should probably reflect that.
Comment 8•9 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #5)
> (In reply to agrigas from comment #4)
> > For now, we can use 'No permissions have been requested.'
>
> This isn't accurate either. A site could have requested a permission with
> the user ignoring the request or granting / denying it without persisting
> that choice.
Dao - we're changing the behavior or allowing and blocking notifications. The new design will not have a 'dismiss' action so a user has to decide to allow or block temporarily or permanently for the requested permission.
I agree we should use 'site' - that is what we have in our latest design. We will have a second copy pass at all this work so what we decide now is placeholder.
https://www.dropbox.com/s/fevthj7yelzre27/Screenshot%202015-09-09%2010.20.19.png?dl=0
Reporter | ||
Comment 9•9 years ago
|
||
Comment on attachment 8658715 [details] [diff] [review]
0001-Bug-1193004-Always-show-permissions-section-in-the-C.patch, v2
Review of attachment 8658715 [details] [diff] [review]:
-----------------------------------------------------------------
r=me, but please wait to land this until after Bug 1203280, since otherwise there will be some complicated rebasing needed. I will attach a version of this patch rebased on top of 1203280 for convenience
::: browser/base/content/test/general/browser_permissions.js
@@ +40,5 @@
>
> gIdentityHandler.setPermission("install", SitePermissions.getDefault("install"));
>
> gIdentityHandler._identityBox.click();
> + ok(!is_hidden(emptyLabel), "The container is hidden");
"List of permissions is empty"
Attachment #8658715 -
Flags: review?(bgrinstead) → review+
Reporter | ||
Comment 10•9 years ago
|
||
Rebased version of this patch on top of patches in bug 1203280. Also updated the assertion message as I noted in the review
Reporter | ||
Comment 11•9 years ago
|
||
Comment on attachment 8658715 [details] [diff] [review]
0001-Bug-1193004-Always-show-permissions-section-in-the-C.patch, v2
Review of attachment 8658715 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/locales/en-US/chrome/browser/browser.dtd
@@ +729,5 @@
>
> <!ENTITY identity.moreInfoLinkText2 "More Information">
>
> <!ENTITY identity.permissions "Permissions">
> +<!ENTITY identity.permissionsEmpty "You have not granted this page any special permissions.">
I guess change this to 'site' as per Comment 8
Comment 13•9 years ago
|
||
sorry had to back this out for test failures like https://treeherder.mozilla.org/logviewer.html#?job_id=4664200&repo=fx-team
Flags: needinfo?(ttaubert)
Comment 14•9 years ago
|
||
Reporter | ||
Comment 15•9 years ago
|
||
Not positive, but you may need to use `gBrowser.ownerDocument` instead of `document` here: https://hg.mozilla.org/integration/fx-team/rev/98f6e793e383#l2.14
Assignee | ||
Comment 16•9 years ago
|
||
I can reproduce this locally when I run the test with --run-until-failure. It opens the control center and I can see the <description>, yet document.querySelector() isn't able to find it. Even assigning an ID and using getElementById() doesn't help.
Flags: needinfo?(ttaubert)
Assignee | ||
Comment 17•9 years ago
|
||
Found something that seems to work.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 43
Updated•9 years ago
|
QA Contact: paul.silaghi
Comment 20•9 years ago
|
||
I reproduced this bug on Firefox Nightly Version 42.0a1
It's fixed and verified on Latest Nightly
Build ID 20150917030229
User Agent Mozilla/5.0 (Windows NT 6.3; rv:43.0) Gecko/20100101 Firefox/43.0
Tested OS -- Windows8.1 32bit
QA Whiteboard: [bugday-20150916]
Comment 21•9 years ago
|
||
Successfully reproduce this bug in Nightly 42.0a1 (2015-08-10) on Linux x64
This Bug is now verified as fixed on Latest Nightly 43.0a1 (2015-09-17)
Build ID: 20150917030229
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0
As it is also verified on Windows (Comment 20), Marking it as verified!
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•