Closed Bug 1270038 Opened 8 years ago Closed 7 years ago

Add permission 'persistent-storage' for StorageManager

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: shawnjohnjr, Assigned: shawnjohnjr)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete, Whiteboard: btpp-active,[storage-v1])

Attachments

(1 file, 2 obsolete files)

Add permission 'persistent-storage'
I'm guessing you're planning on working on this soon, Shawn, so I'm marking as 'fixlater'. Feel free to correct that.
Whiteboard: btpp-fixlater
Assignee: nobody → shuang
Based on https://w3c.github.io/permissions/#persistent-storage.
"persistent-storage" permission allows an origin to make its site storage unit contain a persistent box. "persistent-storage" is a boolean feature.
Whiteboard: btpp-fixlater → btpp-active
Whiteboard: btpp-active → btpp-active,storage-v1
Comment on attachment 8815157 [details] [diff] [review]
Bug 1270038 - Add permission 'persistent-storage' for StorageManager

Hi baku,
This patch adds permission-registry PermissionName 'persistent-storage' to support querying permission 'persistent-storage'.


[1] https://w3c.github.io/permissions/#permission-registry
[2] https://storage.spec.whatwg.org/#dom-permissionname-persistent-storage
Attachment #8815157 - Flags: review?(amarchesini)
Attachment #8815157 - Attachment is obsolete: true
Attachment #8815157 - Flags: review?(amarchesini)
Oh. I just found test_permissions_api.html also copied to browser/components/originattributes/test/mochitest/test_permissions_api.html. I should also modify this test case.
Comment on attachment 8815169 [details] [diff] [review]
Bug 1270038 - Add permission 'persistent-storage' for StorageManager

Hi baku,
This patch adds permission-registry PermissionName 'persistent-storage' to support querying permission 'persistent-storage'.


[1] https://w3c.github.io/permissions/#permission-registry
[2] https://storage.spec.whatwg.org/#dom-permissionname-persistent-storage

I also tested this patch with patches on bug 1286717. It looks good.
Attachment #8815169 - Flags: review?(amarchesini)
Attachment #8815169 - Flags: review?(amarchesini) → review+
Pushed by shuang@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/3e4c27ba3875
Add permission 'persistent-storage' for StorageManager, r=baku
https://hg.mozilla.org/mozilla-central/rev/3e4c27ba3875
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Blocks: 1309123
Whiteboard: btpp-active,storage-v1 → btpp-active,[storage-v1]
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: