Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Issue 2706453002: [Presentation API] return valid WebPresentationConnection object in PresentationReceiver (Closed)

Created:
3 years, 10 months ago by zhaobin
Modified:
3 years, 10 months ago
Reviewers:
mark a. foltz, imcheng
CC:
blink-reviews, chromium-reviews, haraken
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Presentation API] return valid WebPresentationConnection object in PresentationReceiver PresentationReceiver::onReceiverConnectionAvailable() returns nullptr if receiver.connectionList property is not accessed, causing PresentationConnectionProxy holding invalid source_connection_ and may crash render process. BUG=692629 Review-Url: https://codereview.chromium.org/2706453002 Cr-Commit-Position: refs/heads/master@{#452213} Committed: https://chromium.googlesource.com/chromium/src/+/00db1bcf1a71b903e3a03ce5e277c4d5d1b49a88

Patch Set 1 #

Patch Set 2 : add layout test for receiver.connectionList #

Total comments: 8

Patch Set 3 : resolve code review comments from Mark #

Total comments: 1

Patch Set 4 : resolve code review comments from Derek #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -10 lines) Patch
A third_party/WebKit/LayoutTests/presentation/presentation-onreceiverconnection.html View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/presentation/resources/presentation-service-mock.js View 1 2 4 chunks +28 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp View 1 chunk +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationReceiverTest.cpp View 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (19 generated)
zhaobin
3 years, 10 months ago (2017-02-17 00:32:00 UTC) #2
mark a. foltz
Thanks for the quick fix. Can a layout test be written for providing a receiver ...
3 years, 10 months ago (2017-02-17 00:48:18 UTC) #5
zhaobin
On 2017/02/17 00:48:18, mark a. foltz wrote: > Thanks for the quick fix. Can a ...
3 years, 10 months ago (2017-02-17 18:52:17 UTC) #8
mark a. foltz
Thanks for adding a test case :) Slowly improving coverage! LGTM with comments on layout ...
3 years, 10 months ago (2017-02-21 17:47:38 UTC) #9
zhaobin
https://codereview.chromium.org/2706453002/diff/20001/third_party/WebKit/LayoutTests/presentation/presentation-onreceiverconnection.html File third_party/WebKit/LayoutTests/presentation/presentation-onreceiverconnection.html (right): https://codereview.chromium.org/2706453002/diff/20001/third_party/WebKit/LayoutTests/presentation/presentation-onreceiverconnection.html#newcode16 third_party/WebKit/LayoutTests/presentation/presentation-onreceiverconnection.html:16: var receiver = navigator.presentation.receiver; On 2017/02/21 17:47:38, mark a. ...
3 years, 10 months ago (2017-02-21 19:11:38 UTC) #10
imcheng
lgtm https://codereview.chromium.org/2706453002/diff/40001/third_party/WebKit/LayoutTests/presentation/presentation-onreceiverconnection.html File third_party/WebKit/LayoutTests/presentation/presentation-onreceiverconnection.html (right): https://codereview.chromium.org/2706453002/diff/40001/third_party/WebKit/LayoutTests/presentation/presentation-onreceiverconnection.html#newcode32 third_party/WebKit/LayoutTests/presentation/presentation-onreceiverconnection.html:32: }, "Test presetnation.receiver.connectionList resolves with incoming connection."); s/presetnation/presentation
3 years, 10 months ago (2017-02-21 23:53:16 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2706453002/60001
3 years, 10 months ago (2017-02-22 21:14:57 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 21:36:47 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/00db1bcf1a71b903e3a03ce5e277...

Powered by Google App Engine
This is Rietveld 408576698