Closed
Bug 919927
Opened 11 years ago
Closed 11 years ago
[Permission] use permissions instead of permission/option/options
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Tracking
(blocking-b2g:-)
RESOLVED
FIXED
blocking-b2g | - |
People
(Reporter: gasolin, Assigned: gasolin)
References
Details
(Whiteboard: [qa-])
Attachments
(2 files)
Due to recent refactor, Gecko can returns permissions/options attribute to support multiple permissions. the old permission/option attribute will be deprecated.
We should progressively remove current use of permission/option attribute and use permissions/options instead.
Assignee | ||
Comment 1•11 years ago
|
||
In 1.3, permission/option/options are obsolete, use permissions instead
The format will be
{
"video-capture": ['back', 'front'],
"audio-capture": [""]
}
or
{
"geolocation":[]
}
the return value will be
{
"video-capture": 'back',
"audio-capture": ""
}
Summary: [Permission] use permissions/options instead of permission/option → [Permission] use permissions instead of permission/option/options
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → gasolin
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #825713 -
Flags: review?(alive)
Updated•11 years ago
|
Attachment #825713 -
Flags: review?(alive) → review+
Assignee | ||
Updated•11 years ago
|
blocking-b2g: --- → 1.3?
Comment 3•11 years ago
|
||
(In reply to Fred Lin [:gasolin] from comment #1)
> In 1.3, permission/option/options are obsolete, use permissions instead
>
> The format will be
>
> {
> "video-capture": ['back', 'front'],
> "audio-capture": [""]
> }
>
> or
>
> {
> "geolocation":[]
> }
>
>
> the return value will be
>
> {
> "video-capture": 'back',
> "audio-capture": ""
> }
That format is going to completely break compatibility with the existing apps permissions model if that's the case. The typical format is:
{
"permissions": {
"contacts": {
"description": "",
"access": "readcreate"
}
}
}
Which uses a JSON dictionary, not a list. This is because permissions can have multiple attributes - description, access, etc.
Comment 4•11 years ago
|
||
@jsmith, I think there is a misunderstanding that we are not going to change the permission declaration format in manifest.webapp. This bug is for modifying the parameters in mozChromeEvent/mozContentEvent for the permission prompt. It does not have compatibility issue for existing webapps.
Comment 5•11 years ago
|
||
(In reply to Shih-Chiang Chien [:schien] from comment #4)
> @jsmith, I think there is a misunderstanding that we are not going to change
> the permission declaration format in manifest.webapp. This bug is for
> modifying the parameters in mozChromeEvent/mozContentEvent for the
> permission prompt. It does not have compatibility issue for existing webapps.
Ah okay - makes sense.
Comment 6•11 years ago
|
||
Hi Fred,
The gecko patch is at https://bugzilla.mozilla.org/show_bug.cgi?id=853356. Both patches probably need to be checkin together to avoid break.
Thanks.
Assignee | ||
Comment 7•11 years ago
|
||
merged to gaia-master https://github.com/mozilla-b2g/gaia/commit/5289b66509338239e338851a0258fc4e16a028d2
thanks!
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 8•11 years ago
|
||
John - Can you back this out? The associated patch this bug is dependent on was backed out, so right now this implementation ends up causing bug 935557 without the dependency present. As a result, the geolocation prompt is broken right now with this patch present.
Flags: needinfo?(jhford)
Comment 9•11 years ago
|
||
Reverted:
[master 6a5cc5d] Revert "Merge pull request #13276 from gasolin/issue-919927"
Status: RESOLVED → REOPENED
Flags: needinfo?(jhford)
Resolution: FIXED → ---
Comment 10•11 years ago
|
||
Relanded because this revert is breaking travis.
[master 231840c] Revert "Revert "Merge pull request #13276 from gasolin/issue-919927""
Comment 11•11 years ago
|
||
Closing again based on comment 10, although we need to get this backed out cleanly.
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Comment 12•11 years ago
|
||
Backed out of master by request of jsmith here: https://github.com/mozilla-b2g/gaia/commit/f86f7f5c64eb6fd01ab17f721b542e17ed1c9b7e
An additional commit was required to remove the expected failure of the geolocation test: https://github.com/KevinGrandon/gaia/commit/ff6f5189fc2ed9b5419e4155f1dc6cb9ab32bb3b
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 13•11 years ago
|
||
cherry-pick bug 919927 with bug 935557 fix, make permission manager backward compatible.
feedback? Zac for functional test part
Attachment #829966 -
Flags: review?(alive)
Attachment #829966 -
Flags: feedback?(zcampbell)
Comment 14•11 years ago
|
||
Comment on attachment 829966 [details]
pull request redirect to github 2
F+ for me and a pass on Travis!
Attachment #829966 -
Flags: feedback?(zcampbell) → feedback+
Updated•11 years ago
|
Attachment #829966 -
Flags: review?(alive) → review+
Assignee | ||
Comment 15•11 years ago
|
||
merged to gaia-master https://github.com/mozilla-b2g/gaia/commit/203307c19afa5894f7cd7f52c5f00812b5c24067
thanks!
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Comment 16•11 years ago
|
||
This is targeted feature for 1.3, not committed, so we don't need to block on this.
blocking-b2g: 1.3? → -
Updated•11 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•