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

Issue 23319002: Set MessageEvent.source to the newly created port for shared workers' connect events (Closed)

Created:
7 years, 4 months ago by do-not-use
Modified:
7 years, 4 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org
Visibility:
Public.

Description

Set MessageEvent.source to the newly created port for shared workers' connect events Set MessageEvent.source to the newly created port for shared workers' connect events instead of previously null, as per the latest specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#dom-messageevent-source http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#dom-sharedworker BUG=275289 R=abarth@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156385

Patch Set 1 #

Total comments: 7

Patch Set 2 : Add test and assertions #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -20 lines) Patch
M LayoutTests/fast/events/constructors/message-event-constructor.html View 1 2 chunks +5 lines, -1 line 2 comments Download
M LayoutTests/fast/events/constructors/message-event-constructor-expected.txt View 1 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/workers/resources/messageevent-source.js View 1 chunk +11 lines, -0 lines 0 comments Download
A + LayoutTests/fast/workers/shared-worker-messageevent-source.html View 1 chunk +4 lines, -5 lines 0 comments Download
A LayoutTests/fast/workers/shared-worker-messageevent-source-expected.txt View 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/dom/EventTarget.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/EventTarget.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/dom/MessageEvent.h View 1 6 chunks +7 lines, -8 lines 0 comments Download
M Source/core/dom/MessageEvent.cpp View 1 4 chunks +10 lines, -2 lines 0 comments Download
M Source/core/dom/MessageEvent.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/MessagePort.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/workers/SharedWorkerGlobalScope.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M Source/web/FrameLoaderClientImpl.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
do-not-use
7 years, 4 months ago (2013-08-19 08:40:50 UTC) #1
abarth-chromium
You've added a bunch of comments, but I don't think they're accurate. The MessageEvent constructor ...
7 years, 4 months ago (2013-08-19 19:24:57 UTC) #2
do-not-use
Note that I haven't added a test that tries constructing a MessageEvent in JavaScript by ...
7 years, 4 months ago (2013-08-19 19:45:57 UTC) #3
abarth-chromium
https://codereview.chromium.org/23319002/diff/1/Source/core/dom/MessageEvent.h File Source/core/dom/MessageEvent.h (right): https://codereview.chromium.org/23319002/diff/1/Source/core/dom/MessageEvent.h#newcode80 Source/core/dom/MessageEvent.h:80: static PassRefPtr<MessageEvent> create(const AtomicString& type, const MessageEventInit& initializer) This ...
7 years, 4 months ago (2013-08-19 20:01:50 UTC) #4
do-not-use
On 2013/08/19 20:01:50, abarth wrote: > https://codereview.chromium.org/23319002/diff/1/Source/core/dom/MessageEvent.h > File Source/core/dom/MessageEvent.h (right): > > https://codereview.chromium.org/23319002/diff/1/Source/core/dom/MessageEvent.h#newcode80 > ...
7 years, 4 months ago (2013-08-19 20:22:49 UTC) #5
abarth-chromium
On 2013/08/19 20:22:49, Christophe Dumez wrote: > I kept source in MessageEventInit as a RefPtr<DOMWindow> ...
7 years, 4 months ago (2013-08-19 20:25:07 UTC) #6
do-not-use
On 2013/08/19 20:25:07, abarth wrote: > On 2013/08/19 20:22:49, Christophe Dumez wrote: > > I ...
7 years, 4 months ago (2013-08-19 20:26:47 UTC) #7
do-not-use
I added assertions and tests as suggested. https://codereview.chromium.org/23319002/diff/13001/LayoutTests/fast/events/constructors/message-event-constructor.html File LayoutTests/fast/events/constructors/message-event-constructor.html (right): https://codereview.chromium.org/23319002/diff/13001/LayoutTests/fast/events/constructors/message-event-constructor.html#newcode76 LayoutTests/fast/events/constructors/message-event-constructor.html:76: shouldBe("new MessageEvent('eventType', ...
7 years, 4 months ago (2013-08-19 20:47:55 UTC) #8
abarth-chromium
LGTM Thanks!
7 years, 4 months ago (2013-08-19 21:35:52 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/23319002/13001
7 years, 4 months ago (2013-08-20 05:52:06 UTC) #10
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 4 months ago (2013-08-20 06:00:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/23319002/13001
7 years, 4 months ago (2013-08-20 09:21:10 UTC) #12
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 4 months ago (2013-08-20 09:25:20 UTC) #13
do-not-use
Committed patchset #2 manually as r156385 (presubmit successful).
7 years, 4 months ago (2013-08-20 11:10:54 UTC) #14
arv (Not doing code reviews)
7 years, 4 months ago (2013-08-20 13:52:29 UTC) #15
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698