Closed Bug 1217712 Opened 4 years ago Closed 4 years ago

[Presentation WebAPI] gecko handling for presentation-receiver-permission-denied event

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla44
Tracking Status
firefox44 --- fixed

People

(Reporter: schien, Assigned: schien)

References

(Blocks 1 open bug)

Details

(Whiteboard: [ft:conndevices][partner-blocker])

Attachments

(2 files, 2 obsolete files)

This bug is for gecko part of bug 1202542. Gecko need to handle presentation-receiver-permission-denied event and reject the remote presentation request.
Gaia will send mozPresentationContentEvent(type:presentation-receiver-permission-denied) to reject launching packaged app without 'presentation' permission.
Attachment #8677892 - Flags: review?(selin)
Comment on attachment 8677892 [details] [diff] [review]
[part 1] bug1202542-reject-app-no-permission.patch

patch generation issue. will provide a correct patch in next upload.
Attachment #8677892 - Attachment is obsolete: true
Attachment #8677892 - Flags: review?(selin)
Gaia will send mozPresentationContentEvent(type:presentation-receiver-permission-denied) to reject launching packaged app without 'presentation' permission.
Attachment #8677900 - Flags: review?(selin)
Found this bug during integration test. Control channel might be closed without error message. This fix can improve our error handling.
Attachment #8677902 - Flags: review?(selin)
Comment on attachment 8677900 [details] [diff] [review]
[part 1] bug1202542-reject-app-no-permission.patch

Review of attachment 8677900 [details] [diff] [review]:
-----------------------------------------------------------------

::: b2g/components/test/mochitest/presentation_ui_glue_handler_chrome.js
@@ +21,5 @@
>  addMessageListener('trigger-ui-glue', function(aData) {
>    var promise = glue.sendRequest(aData.url, aData.sessionId);
>    promise.then(function(aFrame){
>      sendAsyncMessage('iframe-resolved', aFrame);
> +  }).catch(function(){

nit: add one space before "{".
Attachment #8677900 - Flags: review?(selin) → review+
Comment on attachment 8677902 [details] [diff] [review]
[part 2] handle-close-no-reason.patch

Review of attachment 8677902 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good to me.
Attachment #8677902 - Flags: review?(selin) → review+
update according to review comment, carry r+.
Attachment #8677900 - Attachment is obsolete: true
Attachment #8678180 - Flags: review+
Status: NEW → ASSIGNED
Whiteboard: [ft:conndevices][partner-blocker]
https://hg.mozilla.org/mozilla-central/rev/7c109c8df8eb
https://hg.mozilla.org/mozilla-central/rev/11b00fe66b65
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.