Closed
Bug 779353
Opened 14 years ago
Closed 14 years ago
B2G Telephony: Hook up to permissions manager
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: gwagner, Assigned: hsinyi)
References
Details
Attachments
(2 files, 3 obsolete files)
|
13.15 KB,
patch
|
philikon
:
review+
|
Details | Diff | Splinter Review |
|
2.50 KB,
patch
|
Details | Diff | Splinter Review |
The whitelist approach will go away pretty soon. We should update to the permissionManager approach.
https://mxr.mozilla.org/mozilla-central/source/content/base/src/nsContentUtils.cpp#6834
Comment 1•14 years ago
|
||
We should separate this into two bugs, one for telephony, and one for bluetooth..
Updated•14 years ago
|
blocking-basecamp: --- → ?
Comment 2•14 years ago
|
||
Dividing telephony and bluetooth into 2 seperate bugs. Bluetooth now Bug 779384
Summary: Hook up telephony and bluetooth to permission API → B2G Telephony: Hook up to permissions manager
| Assignee | ||
Updated•14 years ago
|
Assignee: nobody → htsai
| Assignee | ||
Comment 3•14 years ago
|
||
| Assignee | ||
Comment 4•14 years ago
|
||
| Assignee | ||
Comment 5•14 years ago
|
||
Attachment #649209 -
Attachment is obsolete: true
| Assignee | ||
Updated•14 years ago
|
Attachment #649208 -
Attachment description: Patch: use nsIPermissionManager → Patch part1: use nsIPermissionManager
Attachment #649208 -
Flags: review?(mounir)
Comment 6•14 years ago
|
||
Comment on attachment 649208 [details] [diff] [review]
Patch part1: use nsIPermissionManager
Review of attachment 649208 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/telephony/Telephony.cpp
@@ +562,4 @@
> NS_ENSURE_SUCCESS(rv, rv);
> +
> + if (permission == nsIPermissionManager::UNKNOWN_ACTION ||
> + permission == nsIPermissionManager::DENY_ACTION) {
if (permission != nsIPermissionManager::ALLOW_ACTON) {
@@ +566,5 @@
> *aTelephony = nullptr;
> return NS_OK;
> }
> + NS_ENSURE_SUCCESS(permission == nsIPermissionManager::ALLOW_ACTION,
> + NS_ERROR_FAILURE);
Remove that check.
Attachment #649208 -
Flags: review?(mounir) → review+
| Assignee | ||
Comment 7•14 years ago
|
||
Comment on attachment 649212 [details] [diff] [review]
Patch part2: testcase
Hi Philipp,
Patch part1 passed mounir's review. Could you help review the modifications in telephony testcases? Thanks!
Attachment #649212 -
Flags: review?(philipp)
Comment 8•14 years ago
|
||
Comment on attachment 649212 [details] [diff] [review]
Patch part2: testcase
Please don't get rid of the clean up. It serves the important purpose of giving each test a clean slate, at least permission-wise. Please use SpecialPowers.removePermission("telephony", document);
Attachment #649212 -
Flags: review?(philipp) → review-
Updated•14 years ago
|
Attachment #649528 -
Flags: review+
Updated•14 years ago
|
Attachment #649212 -
Attachment is obsolete: true
| Assignee | ||
Comment 10•14 years ago
|
||
| Assignee | ||
Comment 11•14 years ago
|
||
Use nsIPermissionManager. Addressed Comment 6.
Attachment #649208 -
Attachment is obsolete: true
Comment 12•14 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2898f99f375c
https://hg.mozilla.org/mozilla-central/rev/707a4a6340f0
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Updated•14 years ago
|
blocking-basecamp: ? → +
You need to log in
before you can comment on or make changes to this bug.
Description
•