Closed Bug 812034 Opened 12 years ago Closed 12 years ago

Permissions: Connect access field for permission checks

Categories

(Core :: DOM: Device Interfaces, defect)

x86
macOS
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla20
blocking-basecamp +
Tracking Status
firefox18 --- fixed
firefox19 --- fixed
firefox20 --- fixed

People

(Reporter: gwagner, Assigned: gwagner)

References

Details

Attachments

(1 file)

Currently we are still checking the base permission name for device-storage. With this patch we check for the access field as well.
Attached patch patchSplinter Review
Attachment #681801 - Flags: review?(ddahl)
Depends on: 809944
blocking-basecamp: --- → ?
blocking-basecamp: ? → +
Comment on attachment 681801 [details] [diff] [review]
patch

Review of attachment 681801 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good

::: b2g/components/ContentPermissionPrompt.js
@@ -91,5 @@
>  
>        if (evt.detail.type == "permission-allow") {
>          if (evt.detail.remember) {
>            rememberPermission(request.type, request.principal);
> -          Services.perms.addFromPrincipal(request.principal, request.type,

hmm. was this just duplicating "rememberPermission"? I think I did that. not good.
Attachment #681801 - Flags: review?(ddahl) → review+
https://hg.mozilla.org/mozilla-central/rev/0c3ec1f82732
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Keywords: verifyme
QA Contact: jsmith
Verified during the work week by doing such tests such as:

Test that I can read all of my pictures, music, sdcard, and videos in the device storage API with read access granted to the privileged app

Test that I can read all of my contacts in the contacts API with read access granted to the privileged app

Test that I can fail to read all of my  pictures, music, sdcard, and videos in the device storage API with create access granted to the privileged app

Test that I can fail to read all of my contacts in the contacts API with create only access to the privileged app
Status: RESOLVED → VERIFIED
Keywords: verifyme
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: