Closed
Bug 710548
Opened 13 years ago
Closed 13 years ago
Add the offline-app, webapp-manage permissions to pre-installed apps.
Categories
(Core :: General, defect)
Core
General
Tracking
()
RESOLVED
FIXED
People
(Reporter: vingtetun, Assigned: vingtetun)
References
Details
Attachments
(2 files, 1 obsolete file)
2.92 KB,
patch
|
cjones
:
review+
|
Details | Diff | Splinter Review |
4.38 KB,
patch
|
Details | Diff | Splinter Review |
No description provided.
Attachment #581540 -
Flags: review?(jones.chris.g)
Comment on attachment 581540 [details] [diff] [review] Add offline-app, webapp-manage permissions to pre-installed app >diff --git a/b2g/chrome/content/shell.js b/b2g/chrome/content/shell.js >+// XXX until we have a security model, add some rights to >+// the pre-installed web applications >+function addPermissions(urls) { >+ let permissions = ['indexedDB', 'webapps-manage', 'offline-app']; Giving all app "webapps-manage" really sucks, but I understand why you're doing it. Instead of an XXX here, let's find a bug to link here with a FIXME comment, or push on Jonas/WebAPI team to file one. >@@ -251,10 +258,18 @@ var shell = { > return; > > let documentURI = contentWindow.document.documentURIObject; >- let manifestURI = Services.io.newURI(manifest, null, documentURI); >+ if (!Services.perms.testPermission(documentURI, 'offline-app')) { >+ if (Services.prefs.getBoolPref('browser.offline-apps.notify')) { >+ // TODO Add code to handle the notification UI "FIXME/bug XXXXXX: [blah]" r=me with those fixes.
Attachment #581540 -
Flags: review?(jones.chris.g) → review+
Assignee | ||
Comment 2•13 years ago
|
||
Assignee | ||
Comment 3•13 years ago
|
||
Attachment #581654 -
Attachment is obsolete: true
Assignee | ||
Comment 4•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/fe5bd75f1553
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•