Closed
Bug 1116713
Opened 10 years ago
Closed 7 years ago
Add [AvailableIn="CertifiedApps"] and [CheckPermissions="mobileconnection"] to MobileConnection API
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: hsinyi, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
48.20 KB,
patch
|
smaug
:
review-
|
Details | Diff | Splinter Review |
We need to do this for MozMobileCellInfo.webidl, MozMobileConnectionArray.webidl, MozMobileConnectionInfo.webidl, MozMobileConnection.webidl, MozMobileNetworkInfo.webidl
Reporter | ||
Updated•10 years ago
|
Assignee: nobody → htsai
Reporter | ||
Comment 1•10 years ago
|
||
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #0)
> We need to do this for MozMobileCellInfo.webidl,
> MozMobileConnectionArray.webidl, MozMobileConnectionInfo.webidl,
> MozMobileConnection.webidl, MozMobileNetworkInfo.webidl
Also,
MozClirModeEvent.webidl
MozEmergencyCbModeEvent.webidl
MozOtaStatusEvent.webidl
Reporter | ||
Comment 2•10 years ago
|
||
mobileConnection.lastKnownNetwork and mobileConnection.lastKnownHomeNetwork are available to privileged apps, which need special care.
Reporter | ||
Comment 3•10 years ago
|
||
MobileConnectionArray and MobileConnection API should be exposed to privileged apps because mobileconnection.lastKnownNetwork and mobileconnection.lastKnownHomeNetwork are for 3rd party apps with mobilenetwork persmission.
The revision does:
1) correct the permission hook in WIP
2) modify related mochitests, mainly by adding a pref |dom.ignore_webidl_scope_checks| to ignore webidl scope checks
Attachment #8553024 -
Attachment is obsolete: true
Reporter | ||
Comment 4•10 years ago
|
||
Comment on attachment 8558965 [details] [diff] [review]
WIP (v2)
Review of attachment 8558965 [details] [diff] [review]:
-----------------------------------------------------------------
Hi Olli,
Most MobileConnection interfaces are for certified apps only, except mobileConnection.lastKnownNetwork and mobileConnection.lastKonowHomeNetwork, which are exposed to privileged apps with mobilenetwork permission.
This patch is to make the webapi more descriptive.
Could you help review? Thank you.
Attachment #8558965 -
Flags: review?(bugs)
Comment 5•10 years ago
|
||
Comment on attachment 8558965 [details] [diff] [review]
WIP (v2)
Don't we need to make permission checks in the code dispatching the
events stricter too?
I mean cases like http://mxr.mozilla.org/mozilla-central/source/dom/mobileconnection/MobileConnection.cpp?rev=8f1c3e86aa20#1072
MozMobileConnection is exposed to Privileged apps, and it is
EventTarget, so even if we remove those onfoo properties from Privileged apps,
addEventListener would still work.
Please re-ask review if I missed something which already prevents us
dispatching events to privileged apps.
Attachment #8558965 -
Flags: review?(bugs) → review-
Reporter | ||
Comment 6•10 years ago
|
||
(In reply to Olli Pettay [:smaug] (review overload. No more review requests before Feb 8, please) from comment #5)
> Comment on attachment 8558965 [details] [diff] [review]
> WIP (v2)
>
> Don't we need to make permission checks in the code dispatching the
> events stricter too?
> I mean cases like
> http://mxr.mozilla.org/mozilla-central/source/dom/mobileconnection/
> MobileConnection.cpp?rev=8f1c3e86aa20#1072
>
> MozMobileConnection is exposed to Privileged apps, and it is
> EventTarget, so even if we remove those onfoo properties from Privileged
> apps,
> addEventListener would still work.
>
>
> Please re-ask review if I missed something which already prevents us
> dispatching events to privileged apps.
Your concern is valid and I agree we should do that. I will address your comments in a revision, thank you Olli!
Comment 8•7 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•