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

Issue 836823002: Encode the Last-Event-ID header in EventSource as UTF-8. (Closed)

Created:
5 years, 11 months ago by davidben
Modified:
5 years, 3 months ago
Reviewers:
Nate Chapin
CC:
blink-reviews, blink-reviews-events_chromium.org, dglazkov+blink, eae+blinkwatch
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Encode the Last-Event-ID header in EventSource as UTF-8. HTTP headers are byte strings, so anything outside of ASCII needs to be explicitly encoded one way or another. BUG=429569 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201248

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -11 lines) Patch
M LayoutTests/http/tests/eventsource/eventsource-reconnect-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/http/tests/eventsource/resources/reconnect.php View 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/http/tests/eventsource/script-tests/eventsource-reconnect.js View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/eventsource/workers/eventsource-reconnect-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/page/EventSource.cpp View 1 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 31 (12 generated)
davidben
There's been no response on https://codereview.chromium.org/731773002/, so I'm going to go ahead and do it. ...
5 years, 11 months ago (2015-01-06 18:10:57 UTC) #2
Nate Chapin
https://codereview.chromium.org/836823002/diff/1/Source/core/page/EventSource.cpp File Source/core/page/EventSource.cpp (right): https://codereview.chromium.org/836823002/diff/1/Source/core/page/EventSource.cpp#newcode133 Source/core/page/EventSource.cpp:133: request.setHTTPHeaderField("Last-Event-ID", AtomicString(reinterpret_cast<const LChar*>(lastEventIdUtf8.data()), lastEventIdUtf8.length())); My WTFString-fu is not very ...
5 years, 11 months ago (2015-01-06 18:23:34 UTC) #3
davidben
https://codereview.chromium.org/836823002/diff/1/Source/core/page/EventSource.cpp File Source/core/page/EventSource.cpp (right): https://codereview.chromium.org/836823002/diff/1/Source/core/page/EventSource.cpp#newcode133 Source/core/page/EventSource.cpp:133: request.setHTTPHeaderField("Last-Event-ID", AtomicString(reinterpret_cast<const LChar*>(lastEventIdUtf8.data()), lastEventIdUtf8.length())); On 2015/01/06 18:23:34, Nate Chapin ...
5 years, 11 months ago (2015-01-06 19:30:34 UTC) #4
Nate Chapin
Ok, LGTM. Though perhaps we should add a FIXME to find a general solution for ...
5 years, 11 months ago (2015-01-06 20:52:59 UTC) #5
davidben
Whoops, I totally forgot about this CL. Given the age, I should probably ask for ...
5 years, 4 months ago (2015-08-24 18:23:01 UTC) #6
Nate Chapin
lgtm again
5 years, 4 months ago (2015-08-24 18:24:53 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/836823002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/836823002/20001
5 years, 4 months ago (2015-08-24 18:25:50 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/59908)
5 years, 4 months ago (2015-08-24 19:11:17 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/836823002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/836823002/20001
5 years, 4 months ago (2015-08-24 19:13:24 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/103227)
5 years, 4 months ago (2015-08-24 20:18:33 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/836823002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/836823002/20001
5 years, 4 months ago (2015-08-24 20:22:51 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/103313)
5 years, 4 months ago (2015-08-24 21:34:30 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/836823002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/836823002/20001
5 years, 4 months ago (2015-08-25 15:51:22 UTC) #21
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 4 months ago (2015-08-25 15:51:25 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/836823002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/836823002/20001
5 years, 3 months ago (2015-08-26 17:56:45 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/104801)
5 years, 3 months ago (2015-08-26 18:17:57 UTC) #27
davidben
I'm really not having much luck with the CQ apparently... The errors this time all ...
5 years, 3 months ago (2015-08-26 19:34:06 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/836823002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/836823002/20001
5 years, 3 months ago (2015-08-26 19:34:30 UTC) #30
commit-bot: I haz the power
5 years, 3 months ago (2015-08-26 21:29:53 UTC) #31
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201248

Powered by Google App Engine
This is Rietveld 408576698