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

Issue 708093002: Script streaming: remove byte order marks, detect encoding based on them. (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, dglazkov+blink, blink-reviews-html_chromium.org, arv+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Script streaming: remove byte order marks, detect encoding based on them. Byte order mark detection needs to be done on the Blink side, since it also affects encoding detection. This also enables the preparse data for streamed scripts again, because the corrupt data was caused by byte order marks not being detected properly. BUG=430890 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185117

Patch Set 1 #

Total comments: 6

Patch Set 2 : code review (haraken@) #

Patch Set 3 : rebased #

Patch Set 4 : fix: don't persist cached data produced by streaming #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -24 lines) Patch
M Source/bindings/core/v8/ScriptStreamer.cpp View 1 9 chunks +35 lines, -17 lines 0 comments Download
M Source/bindings/core/v8/ScriptStreamerTest.cpp View 2 chunks +31 lines, -3 lines 0 comments Download
M Source/bindings/core/v8/V8ScriptRunner.cpp View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M Source/core/html/parser/TextResourceDecoder.h View 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (4 generated)
marja
haraken, ptal https://codereview.chromium.org/708093002/diff/1/Source/bindings/core/v8/ScriptStreamer.cpp File Source/bindings/core/v8/ScriptStreamer.cpp (left): https://codereview.chromium.org/708093002/diff/1/Source/bindings/core/v8/ScriptStreamer.cpp#oldcode173 Source/bindings/core/v8/ScriptStreamer.cpp:173: return; This was unnecessary since we've already ...
6 years, 1 month ago (2014-11-07 13:32:36 UTC) #2
haraken
https://codereview.chromium.org/708093002/diff/1/Source/bindings/core/v8/ScriptStreamer.cpp File Source/bindings/core/v8/ScriptStreamer.cpp (right): https://codereview.chromium.org/708093002/diff/1/Source/bindings/core/v8/ScriptStreamer.cpp#newcode315 Source/bindings/core/v8/ScriptStreamer.cpp:315: lengthOfBOM = decoder->checkForBOM(data, length); At this point, we're not ...
6 years, 1 month ago (2014-11-07 17:39:53 UTC) #3
marja
https://codereview.chromium.org/708093002/diff/1/Source/bindings/core/v8/ScriptStreamer.cpp File Source/bindings/core/v8/ScriptStreamer.cpp (right): https://codereview.chromium.org/708093002/diff/1/Source/bindings/core/v8/ScriptStreamer.cpp#newcode315 Source/bindings/core/v8/ScriptStreamer.cpp:315: lengthOfBOM = decoder->checkForBOM(data, length); On 2014/11/07 17:39:52, haraken wrote: ...
6 years, 1 month ago (2014-11-10 10:31:27 UTC) #4
haraken
On 2014/11/10 10:31:27, marja wrote: > https://codereview.chromium.org/708093002/diff/1/Source/bindings/core/v8/ScriptStreamer.cpp > File Source/bindings/core/v8/ScriptStreamer.cpp (right): > > https://codereview.chromium.org/708093002/diff/1/Source/bindings/core/v8/ScriptStreamer.cpp#newcode315 > ...
6 years, 1 month ago (2014-11-10 11:09:13 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/708093002/60001
6 years, 1 month ago (2014-11-10 12:11:44 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/35588)
6 years, 1 month ago (2014-11-10 14:19:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/708093002/60001
6 years, 1 month ago (2014-11-11 10:04:56 UTC) #11
commit-bot: I haz the power
6 years, 1 month ago (2014-11-11 10:51:20 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 185117

Powered by Google App Engine
This is Rietveld 408576698