Closed
Bug 809944
Opened 12 years ago
Closed 12 years ago
Require access fields in manifests.
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: gwagner, Assigned: gwagner)
References
Details
(Whiteboard: [qa-])
Attachments
(2 files, 3 obsolete files)
3.40 KB,
patch
|
bent.mozilla
:
review+
|
Details | Diff | Splinter Review |
6.52 KB,
patch
|
ddahl
:
review+
|
Details | Diff | Splinter Review |
We don't want to grant base permissions for settings and contacts and use the access fields in the manifest files.
Assignee | ||
Updated•12 years ago
|
blocking-basecamp: --- → ?
Assignee | ||
Comment 1•12 years ago
|
||
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #679735 -
Attachment is obsolete: true
Attachment #679881 -
Flags: review?(bent.mozilla)
Comment on attachment 679881 [details] [diff] [review] patch Review of attachment 679881 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me!
Attachment #679881 -
Flags: review?(bent.mozilla) → review+
Updated•12 years ago
|
blocking-basecamp: ? → +
Assignee | ||
Comment 4•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Attachment #681790 -
Flags: review?(ddahl)
Assignee | ||
Comment 5•12 years ago
|
||
Comment on attachment 681790 [details] [diff] [review] fix Tests Hm it seems that we need access fields here. Will fix it tomorrow.
Attachment #681790 -
Flags: review?(ddahl)
Assignee | ||
Comment 6•12 years ago
|
||
Cu.reportError doesn't show up in logcat so I added dump as well.
Attachment #681790 -
Attachment is obsolete: true
Assignee | ||
Comment 7•12 years ago
|
||
Attachment #682127 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Attachment #682184 -
Flags: review?(ddahl)
Comment 8•12 years ago
|
||
Comment on attachment 682184 [details] [diff] [review] tests Review of attachment 682184 [details] [diff] [review]: ----------------------------------------------------------------- Looks good. ::: dom/apps/src/PermissionsInstaller.jsm @@ +287,5 @@ > aAccess && !tableEntry.access) { > Cu.reportError("PermissionsTable.jsm: expandPermissions: Invalid Manifest : " + > aPermName + " " + aAccess + "\n"); > + dump("PermissionsTable.jsm: expandPermissions: Invalid Manifest: " + > + aPermName + " " + aAccess + "\n"); I thought we wanted to throw here in case the manifest is invalid? Has that thinking changed? ::: dom/tests/browser/browser_webapps_permissions.js @@ +29,5 @@ > "alarms": "allow", > + "contacts-write": "prompt", > + "contacts-read": "prompt", > + "device-storage:apps-read": "prompt", > + "device-stroage:apps-write": "unknown" nit: spelling "device-storage:apps-write" @@ +69,5 @@ > var nav = XPCNativeWrapper.unwrap(browser.contentWindow.navigator); > ok(nav.mozApps, "we have a mozApps property"); > var navMozPerms = nav.mozPermissionSettings; > ok(navMozPerms, "mozPermissions is available"); > + Thanks! that was some flotsom and jetsom from me!
Attachment #682184 -
Flags: review?(ddahl) → review+
Assignee | ||
Comment 9•12 years ago
|
||
(In reply to David Dahl :ddahl from comment #8) > Comment on attachment 682184 [details] [diff] [review] > tests > > Review of attachment 682184 [details] [diff] [review]: > ----------------------------------------------------------------- > > Looks good. > > ::: dom/apps/src/PermissionsInstaller.jsm > @@ +287,5 @@ > > aAccess && !tableEntry.access) { > > Cu.reportError("PermissionsTable.jsm: expandPermissions: Invalid Manifest : " + > > aPermName + " " + aAccess + "\n"); > > + dump("PermissionsTable.jsm: expandPermissions: Invalid Manifest: " + > > + aPermName + " " + aAccess + "\n"); > > I thought we wanted to throw here in case the manifest is invalid? Has that > thinking changed? > The problem is following test: // test unknown permission { permission: UNKNOWN, access: READWRITE, expected: [] } We throw and never return an empty array.
Assignee | ||
Comment 10•12 years ago
|
||
Oh ignore my last comment. The real problem is the access field for storage: // test substitute { permission: "storage", access: READWRITE, expected: ["indexedDB-unlimited", "offline-app", "pin-app"] }, I will remove the access field and keep the throw.
Assignee | ||
Comment 11•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/80f4c2456dee https://hg.mozilla.org/integration/mozilla-inbound/rev/98ff02ab98cc
Comment 12•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/98ff02ab98cc https://hg.mozilla.org/mozilla-central/rev/80f4c2456dee
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Comment 13•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/ac67728fb89b https://hg.mozilla.org/releases/mozilla-aurora/rev/6c776a1f9392 https://hg.mozilla.org/releases/mozilla-beta/rev/29573b125247 https://hg.mozilla.org/releases/mozilla-beta/rev/c0d49ede1478
Updated•12 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•