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)

ARM
Gonk (Firefox OS)
defect
Not set
normal

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)

== 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.
Depends on: 944584
Whiteboard: [good first bug][mentor=gasolin][mentor-lang=zh][lang=js]
I will take this one, ok? :) First patch..
Flags: needinfo?(nobody)
Assigning Bruno!
Assignee: nobody → bruno
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) :)
Attached patch patchForBug944632.html (obsolete) — Splinter Review
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)
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)
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.
@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)
Comment on attachment 8340624 [details] [diff] [review] patchForBug944632.html Looks good to me, thanks for fix it!
Attachment #8340624 - Flags: review?(gasolin) → review+
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
Fred, Thank you. Your slides were very useful. =)
Keywords: verifyme
QA Contact: jsmith
QA Contact: jsmith
Keywords: verifyme
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: