Closed
Bug 944632
Opened 11 years ago
Closed 11 years ago
Add video capture permission to SYSTEM app to enable BOOKMARKED web pages acquires gUM
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gasolin, Assigned: bruno)
References
Details
(Whiteboard: [good first bug][mentor=gasolin][mentor-lang=zh][lang=js])
Attachments
(1 file, 1 obsolete file)
|
47 bytes,
patch
|
gasolin
:
review+
|
Details | Diff | Splinter Review |
== follow-up of bug 944584 ==
Bug 916524 adds the the 'video-capture' permission to the browser so that web pages can access the video part of getUserMedia. Bookmarked web pages pinned to the homescreen however open in a mozbrowser window that is a child of the system app, not the browser. The system app doesn't have the 'video-capture' permission, so this API always failed in a bookmarked page pinned to the homescreen.
Simple, low risk fix: just need to add:
"video-capture": {},
to the system app manifest.
| Reporter | ||
Updated•11 years ago
|
Blocks: b2g-getusermedia
Depends on: 944584
Whiteboard: [good first bug][mentor=gasolin][mentor-lang=zh][lang=js]
| Assignee | ||
Comment 1•11 years ago
|
||
I will take this one, ok? :)
First patch..
| Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(nobody)
| Assignee | ||
Comment 2•11 years ago
|
||
Flags: needinfo?(nobody)
| Reporter | ||
Comment 4•11 years ago
|
||
Hi bruno, nice try!
1. Good, you've assigned bug to yourself.
2. For patch review, please click 'Add an attachment' link above comments section,
3. paste your patch link there, and set review to module owner (alive@mozilla.com)
Please reference the slide of developing firefoxOS.
http://www.slideshare.net/gasolin/develop-firefox-os1-28348187
If there's anything unclear, please needinfo? me (gasolin@mozilla.com) :)
| Assignee | ||
Comment 5•11 years ago
|
||
Couldn't find "video-capture" permission in permission table (https://mxr.mozilla.org/mozilla-central/source/dom/apps/src/PermissionsTable.jsm#36), but I think (and hope) it is correct. :)
Attachment #8340605 -
Flags: review?(gasolin)
| Reporter | ||
Comment 6•11 years ago
|
||
Comment on attachment 8340605 [details] [diff] [review]
patchForBug944632.html
Current master branch has merged the 'audio-capture' permission
https://github.com/mozilla-b2g/gaia/blob/master/apps/system/manifest.webapp
Please rebase to current master, put 'video-capture' permission under 'audio-capture' permission, and set review flag again.
Attachment #8340605 -
Flags: review?(gasolin)
| Reporter | ||
Comment 7•11 years ago
|
||
BTW, the reason why "video-capture" permission not in permission table is
this feature is in development and target to land next week.
Though adding permission won't broken anything so we can do it promptly.
| Assignee | ||
Comment 8•11 years ago
|
||
@gasolin, I didn't "rebase", but updated my repo with upstream and commited a new change putting 'video-capture' below 'audio-capture'.
If something is wrong, please, explain me. Maybe I couldn't understand something.
Attachment #8340605 -
Attachment is obsolete: true
Attachment #8340624 -
Flags: review?(gasolin)
| Reporter | ||
Comment 9•11 years ago
|
||
Comment on attachment 8340624 [details] [diff] [review]
patchForBug944632.html
Looks good to me, thanks for fix it!
Attachment #8340624 -
Flags: review?(gasolin) → review+
| Reporter | ||
Comment 10•11 years ago
|
||
merged to gaia-master https://github.com/mozilla-b2g/gaia/commit/f23aebebcd28c4d19347def77c4836c8baebc2ce
Congrats Bruno, You are ready to go!
Try to pick another bug?
Friendly reminder: for next time, please pick reviewer from module owners https://wiki.mozilla.org/Modules/FirefoxOS
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 11•11 years ago
|
||
Fred,
Thank you. Your slides were very useful. =)
Updated•11 years ago
|
QA Contact: jsmith
You need to log in
before you can comment on or make changes to this bug.
Description
•