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

Issue 2643473002: [Presentation API] Allow PresentationConnection state change to "Connecting" (Closed)

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

Description

[Presentation API] Allow PresentationConnection state change to "Connecting" As per the Presentation API spec [1], when we reconnect to a closed PresentationConnection, its status changes from Closed to Connecting. This CL removes a NOTREACHED() called at state change to Connecting. This CL also replaces the use of the var keyword with const/let in third_party/WebKit/LayoutTests/presentation/. [1] https://w3c.github.io/presentation-api/#reconnecting-to-a-presentation BUG=677540 Review-Url: https://codereview.chromium.org/2643473002 Cr-Commit-Position: refs/heads/master@{#446458} Committed: https://chromium.googlesource.com/chromium/src/+/a8f908ca6ab0abe86af75c688099d8c9dee1685c

Patch Set 1 #

Patch Set 2 : Add a layout test #

Total comments: 2

Patch Set 3 : Add an assertion for state change to closed #

Total comments: 6

Patch Set 4 : Address Mark's comments #

Total comments: 6

Patch Set 5 : Address Mark and Bin's comments #

Messages

Total messages: 45 (30 generated)
takumif
mfoltz@: please take a look. zhaobin@: FYI, as this is related to a bug (677540) ...
3 years, 11 months ago (2017-01-17 20:51:29 UTC) #7
mark a. foltz
On 2017/01/17 at 20:51:29, takumif wrote: > mfoltz@: please take a look. > zhaobin@: FYI, ...
3 years, 11 months ago (2017-01-17 21:06:13 UTC) #8
takumif
On 2017/01/17 21:06:13, mark a. foltz wrote: > On 2017/01/17 at 20:51:29, takumif wrote: > ...
3 years, 11 months ago (2017-01-18 19:29:08 UTC) #9
zhaobin
Could you please update existing presentation-reconnect.html instead of creating a new file presentation-close-reconnect.html or just ...
3 years, 11 months ago (2017-01-18 19:46:52 UTC) #11
takumif
https://codereview.chromium.org/2643473002/diff/80001/third_party/WebKit/LayoutTests/presentation/presentation-close-reconnect.html File third_party/WebKit/LayoutTests/presentation/presentation-close-reconnect.html (right): https://codereview.chromium.org/2643473002/diff/80001/third_party/WebKit/LayoutTests/presentation/presentation-close-reconnect.html#newcode47 third_party/WebKit/LayoutTests/presentation/presentation-close-reconnect.html:47: connection.close(); On 2017/01/18 19:46:52, zhaobin wrote: > assert_true(connection.state === ...
3 years, 11 months ago (2017-01-18 19:57:27 UTC) #13
mark a. foltz
https://codereview.chromium.org/2643473002/diff/120001/third_party/WebKit/LayoutTests/presentation/presentation-close-reconnect.html File third_party/WebKit/LayoutTests/presentation/presentation-close-reconnect.html (right): https://codereview.chromium.org/2643473002/diff/120001/third_party/WebKit/LayoutTests/presentation/presentation-close-reconnect.html#newcode43 third_party/WebKit/LayoutTests/presentation/presentation-close-reconnect.html:43: assert_true(connection.state === 'connecting' || Shouldn't state always be 'connecting' ...
3 years, 11 months ago (2017-01-18 20:30:17 UTC) #14
takumif
https://codereview.chromium.org/2643473002/diff/120001/third_party/WebKit/LayoutTests/presentation/presentation-close-reconnect.html File third_party/WebKit/LayoutTests/presentation/presentation-close-reconnect.html (right): https://codereview.chromium.org/2643473002/diff/120001/third_party/WebKit/LayoutTests/presentation/presentation-close-reconnect.html#newcode43 third_party/WebKit/LayoutTests/presentation/presentation-close-reconnect.html:43: assert_true(connection.state === 'connecting' || On 2017/01/18 20:30:17, mark a. ...
3 years, 11 months ago (2017-01-18 20:53:22 UTC) #15
mark a. foltz
LGTM with comments addressed. Will the browser test be updated in your other patch? https://codereview.chromium.org/2643473002/diff/140001/third_party/WebKit/LayoutTests/presentation/presentation-close-reconnect.html ...
3 years, 11 months ago (2017-01-20 18:48:23 UTC) #16
zhaobin
lgtm, please cc avayvod@ if you are going to change browser test. https://codereview.chromium.org/2643473002/diff/120001/third_party/WebKit/LayoutTests/presentation/presentation-close-reconnect.html File third_party/WebKit/LayoutTests/presentation/presentation-close-reconnect.html ...
3 years, 11 months ago (2017-01-20 19:27:50 UTC) #17
takumif
Thanks for reviewing. Regarding the browser test that currently accepts both 'connecting' and 'connected' states ...
3 years, 11 months ago (2017-01-23 19:58:13 UTC) #20
takumif
I touched many files replacing var with const/let, so it'd be great if you could ...
3 years, 10 months ago (2017-01-26 18:27:23 UTC) #35
mark a. foltz
lgtm
3 years, 10 months ago (2017-01-26 19:20:49 UTC) #36
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/2643473002/180001
3 years, 10 months ago (2017-01-26 21:35:04 UTC) #41
commit-bot: I haz the power
Committed patchset #5 (id:180001) as https://chromium.googlesource.com/chromium/src/+/a8f908ca6ab0abe86af75c688099d8c9dee1685c
3 years, 10 months ago (2017-01-26 21:48:30 UTC) #44
suzyh_UTC10 (ex-contributor)
3 years, 10 months ago (2017-01-27 03:39:59 UTC) #45
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:180001) has been created in
https://codereview.chromium.org/2655073007/ by suzyh@chromium.org.

The reason for reverting is: presentation/presentation-close-reconnect.html is
timing out consistently on e.g. WebKit Linux Trusty
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Trusty....

Powered by Google App Engine
This is Rietveld 408576698