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

Issue 23591059: Use null Strings for default values of MessageEvent properties (Closed)

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

Description

Use null Strings for default values of MessageEvent properties Use null Strings for default values of MessageEvent properties instead of empty ones. Null strings are cheaper to construct and there is no web-exposed behavior change since a null String is exposed as an empty one on JS side. This change is based on WebKit r155959. R=haraken TEST=fast/events/constructors/message-event-constructor.html BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158113

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix nit #

Patch Set 3 : Revert nit #

Patch Set 4 : Revert nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -12 lines) Patch
Source/core/dom/MessageEvent.h View 1 chunk +5 lines, -5 lines 0 comments Download
Source/core/dom/MessageEvent.cpp View 3 chunks +0 lines, -3 lines 0 comments Download
Source/core/page/DOMWindow.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
Source/core/workers/SharedWorkerGlobalScope.cpp View 2 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
do-not-use
7 years, 3 months ago (2013-09-18 13:41:47 UTC) #1
haraken
> since a null String is exposed as an empty one on JS side. This ...
7 years, 3 months ago (2013-09-19 00:41:01 UTC) #2
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/23591059/2001
7 years, 3 months ago (2013-09-20 09:53:59 UTC) #3
commit-bot: I haz the power
Retried try job too often on mac_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_blink_rel&number=5101
7 years, 3 months ago (2013-09-20 11:22:43 UTC) #4
do-not-use
https://codereview.chromium.org/23591059/diff/1/Source/core/workers/SharedWorkerGlobalScope.cpp File Source/core/workers/SharedWorkerGlobalScope.cpp (right): https://codereview.chromium.org/23591059/diff/1/Source/core/workers/SharedWorkerGlobalScope.cpp#newcode49 Source/core/workers/SharedWorkerGlobalScope.cpp:49: RefPtr<MessageEvent> event = MessageEvent::create(adoptPtr(new MessagePortArray(1, port)), String(), String(), port); ...
7 years, 3 months ago (2013-09-20 12:43:34 UTC) #5
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/23591059/23001
7 years, 3 months ago (2013-09-20 12:44:17 UTC) #6
commit-bot: I haz the power
7 years, 3 months ago (2013-09-20 13:38:05 UTC) #7
Message was sent while issue was closed.
Change committed as 158113

Powered by Google App Engine
This is Rietveld 408576698