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

Issue 700543002: Script streaming: detect encoding later. (Closed)

Created:
6 years, 1 month ago by marja
Modified:
6 years, 1 month ago
Reviewers:
haraken
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Script streaming: detect encoding later. It's possible that Resource::encoding() changes once we receive data. This requires moving the creation of v8::ScriptCompiler::StreamedSource and SourceStream forward in time (we need to know the encoding to create them). Additional fix: m_cachedDataType was not initialized properly. BUG=428137 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184826

Patch Set 1 #

Patch Set 2 : . #

Total comments: 8

Patch Set 3 : Code review (haraken@) #

Total comments: 2

Patch Set 4 : Code review (haraken@) (more) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -48 lines) Patch
M Source/bindings/core/v8/ScriptStreamer.h View 1 2 5 chunks +7 lines, -6 lines 0 comments Download
M Source/bindings/core/v8/ScriptStreamer.cpp View 1 2 3 8 chunks +78 lines, -42 lines 0 comments Download
M Source/bindings/core/v8/ScriptStreamerTest.cpp View 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
marja
haraken, ptal
6 years, 1 month ago (2014-11-03 14:46:43 UTC) #2
haraken
https://codereview.chromium.org/700543002/diff/20001/Source/bindings/core/v8/ScriptStreamer.cpp File Source/bindings/core/v8/ScriptStreamer.cpp (right): https://codereview.chromium.org/700543002/diff/20001/Source/bindings/core/v8/ScriptStreamer.cpp#newcode310 Source/bindings/core/v8/ScriptStreamer.cpp:310: || strcmp(encodingName, "US-ASCII") == 0) { Can we share ...
6 years, 1 month ago (2014-11-04 03:07:34 UTC) #3
marja
thanks for comments! https://codereview.chromium.org/700543002/diff/20001/Source/bindings/core/v8/ScriptStreamer.cpp File Source/bindings/core/v8/ScriptStreamer.cpp (right): https://codereview.chromium.org/700543002/diff/20001/Source/bindings/core/v8/ScriptStreamer.cpp#newcode310 Source/bindings/core/v8/ScriptStreamer.cpp:310: || strcmp(encodingName, "US-ASCII") == 0) { ...
6 years, 1 month ago (2014-11-04 09:15:53 UTC) #4
haraken
LGTM https://codereview.chromium.org/700543002/diff/40001/Source/bindings/core/v8/ScriptStreamer.cpp File Source/bindings/core/v8/ScriptStreamer.cpp (right): https://codereview.chromium.org/700543002/diff/40001/Source/bindings/core/v8/ScriptStreamer.cpp#newcode339 Source/bindings/core/v8/ScriptStreamer.cpp:339: ScriptState::Scope scope(m_scriptState.get()); I guess you need to check: ...
6 years, 1 month ago (2014-11-04 10:36:38 UTC) #5
marja
thanks for review! https://codereview.chromium.org/700543002/diff/40001/Source/bindings/core/v8/ScriptStreamer.cpp File Source/bindings/core/v8/ScriptStreamer.cpp (right): https://codereview.chromium.org/700543002/diff/40001/Source/bindings/core/v8/ScriptStreamer.cpp#newcode339 Source/bindings/core/v8/ScriptStreamer.cpp:339: ScriptState::Scope scope(m_scriptState.get()); On 2014/11/04 10:36:38, haraken ...
6 years, 1 month ago (2014-11-04 10:41:39 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/700543002/60001
6 years, 1 month ago (2014-11-04 10:42:37 UTC) #8
commit-bot: I haz the power
6 years, 1 month ago (2014-11-04 12:35:13 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 184826

Powered by Google App Engine
This is Rietveld 408576698