Repository navigation
EventSource: do not allow lastEventId creation when the id contains U+0000 - #6584
Conversation
Build PASSEDStarted: 2017-08-16 08:13:34 View more information about this build on: |
Sauce (safari)Testing web-platform-tests at revision 4ca6708 All results3 tests ran/eventsource/format-field-id-2.htm
/eventsource/format-field-id-null.htm
/eventsource/format-field-id.htm
|
Chrome (unstable)Testing web-platform-tests at revision 4ca6708 All results3 tests ran/eventsource/format-field-id-2.htm
/eventsource/format-field-id-null.htm
/eventsource/format-field-id.htm
|
Sauce (MicrosoftEdge)Testing web-platform-tests at revision 4ca6708 All results3 tests ran/eventsource/format-field-id-2.htm
/eventsource/format-field-id-null.htm
/eventsource/format-field-id.htm
|
384ea58 to
2a453c0
Compare
| test.step(function() { | ||
| if(e.data == "hello" && !seenhello) { | ||
| seenhello = true | ||
| assert_equals(e.lastEventId, "\0\0") |
There was a problem hiding this comment.
I am trying to get this test to pass in WebKit via https://bugs.webkit.org/show_bug.cgi?id=175178. However, I get the empty string here instead of "\0\0". Would you mind clarifying why we expect lastEventId to contain NUL here (I thought this is what we were trying to avoid).
Disclaimer: I am very unfamiliar with EventSource so this may well be a silly question :)
There was a problem hiding this comment.
No it's bogus, I must have accidentally pushed my work-in-progress and assumed I was done.
https://bugs.webkit.org/show_bug.cgi?id=175178 Reviewed by Darin Adler. LayoutTests/imported/w3c: Import WPT test coverage from: - web-platform-tests/wpt#6584 * web-platform-tests/eventsource/format-field-id-null-expected.txt: Added. * web-platform-tests/eventsource/format-field-id-null.htm: Added. * web-platform-tests/eventsource/resources/last-event-id.py: (main): * web-platform-tests/eventsource/w3c-import.log: Source/WebCore: EventSource: ignore IDs with U+0000 as per: whatwg/html#2849 Test: imported/w3c/web-platform-tests/eventsource/format-field-id-null.htm * page/EventSource.cpp: (WebCore::EventSource::parseEventStreamLine): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@220799 268f45cc-cd09-0410-ab3c-d52691b4dbfc
…+0000 (web-platform-tests#6584) * EventSource: do not allow lastEventId creation when the id contains U+0000 See whatwg/html#689.
See whatwg/html#689.