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

Issue 263583002: Reland: Do not initialize v8::Context on |ScriptController::updateDocument|. (Closed)

Created:
6 years, 7 months ago by kouhei (in TOK)
Modified:
6 years, 6 months ago
CC:
blink-reviews, Nils Barth (inactive), arv+blink, jsbell+bindings_chromium.org, sof, kouhei+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, Nate Chapin, Inactive
Visibility:
Public.

Description

Reland: Do not initialize |v8::Context| on |ScriptController::updateDocument|. > The reason for reverting is: broke interactive_ui_tests: > > Referrer > SearchReusesInstantTab > TypedSearchURLDoesntReuseInstantTab. I fixed these tests in https://src.chromium.org/viewvc/chrome?view=rev&revision=273996 . Original Description: Initializing |v8::Context| is a heavy operation, and should be avoided if necessary. This is meant to be delayed until first time |toV8Context| is called, but |ScriptController::updateDocument| was forcing creation. This patch fixes the if branch so that it would not create a |v8::Context| if it does not exist. BUG=368548, 368555 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173044 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175240

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix_crash #

Total comments: 4

Patch Set 3 : simplify #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M Source/bindings/v8/ScriptController.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/testing/v8/WebCoreTestSupport.cpp View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
kouhei (in TOK)
6 years, 7 months ago (2014-04-30 03:55:15 UTC) #1
kouhei (in TOK)
haraken: Would you take a look? This patch does seem to fix the svg case ...
6 years, 7 months ago (2014-04-30 04:30:11 UTC) #2
jochen (gone - plz use gerrit)
+dcarney https://codereview.chromium.org/263583002/diff/1/Source/bindings/v8/ScriptController.cpp File Source/bindings/v8/ScriptController.cpp (right): https://codereview.chromium.org/263583002/diff/1/Source/bindings/v8/ScriptController.cpp#newcode476 Source/bindings/v8/ScriptController.cpp:476: // For an uninitialized main window shell, do ...
6 years, 7 months ago (2014-04-30 04:37:17 UTC) #3
haraken
LGTM but Dan should take another look. > BUG=368458 This bug is not related.
6 years, 7 months ago (2014-04-30 04:46:09 UTC) #4
kouhei (in TOK)
On 2014/04/30 04:46:09, haraken wrote: > LGTM but Dan should take another look. > > ...
6 years, 7 months ago (2014-04-30 06:13:30 UTC) #5
dcarney
lgtm, but you should check if this can be simplified https://codereview.chromium.org/263583002/diff/20001/Source/bindings/v8/ScriptController.cpp File Source/bindings/v8/ScriptController.cpp (right): https://codereview.chromium.org/263583002/diff/20001/Source/bindings/v8/ScriptController.cpp#newcode477 ...
6 years, 7 months ago (2014-04-30 07:01:13 UTC) #6
kouhei (in TOK)
https://codereview.chromium.org/263583002/diff/20001/Source/bindings/v8/ScriptController.cpp File Source/bindings/v8/ScriptController.cpp (right): https://codereview.chromium.org/263583002/diff/20001/Source/bindings/v8/ScriptController.cpp#newcode477 Source/bindings/v8/ScriptController.cpp:477: if (!m_windowShell->isContextInitialized() || !m_windowShell->isGlobalInitialized() || m_frame->loader().stateMachine()->creatingInitialEmptyDocument()) On 2014/04/30 07:01:13, ...
6 years, 7 months ago (2014-04-30 07:04:52 UTC) #7
dcarney
https://codereview.chromium.org/263583002/diff/20001/Source/bindings/v8/ScriptController.cpp File Source/bindings/v8/ScriptController.cpp (right): https://codereview.chromium.org/263583002/diff/20001/Source/bindings/v8/ScriptController.cpp#newcode477 Source/bindings/v8/ScriptController.cpp:477: if (!m_windowShell->isContextInitialized() || !m_windowShell->isGlobalInitialized() || m_frame->loader().stateMachine()->creatingInitialEmptyDocument()) On 2014/04/30 07:04:53, ...
6 years, 7 months ago (2014-04-30 07:11:49 UTC) #8
kouhei (in TOK)
https://codereview.chromium.org/263583002/diff/20001/Source/bindings/v8/ScriptController.cpp File Source/bindings/v8/ScriptController.cpp (right): https://codereview.chromium.org/263583002/diff/20001/Source/bindings/v8/ScriptController.cpp#newcode477 Source/bindings/v8/ScriptController.cpp:477: if (!m_windowShell->isContextInitialized() || !m_windowShell->isGlobalInitialized() || m_frame->loader().stateMachine()->creatingInitialEmptyDocument()) On 2014/04/30 07:11:49, ...
6 years, 7 months ago (2014-04-30 07:25:43 UTC) #9
kouhei (in TOK)
On 2014/04/30 07:25:43, kouhei wrote: > https://codereview.chromium.org/263583002/diff/20001/Source/bindings/v8/ScriptController.cpp > File Source/bindings/v8/ScriptController.cpp (right): > > https://codereview.chromium.org/263583002/diff/20001/Source/bindings/v8/ScriptController.cpp#newcode477 > ...
6 years, 7 months ago (2014-05-01 00:10:26 UTC) #10
kouhei (in TOK)
The CQ bit was checked by kouhei@chromium.org
6 years, 7 months ago (2014-05-01 00:10:30 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/263583002/40001
6 years, 7 months ago (2014-05-01 00:10:57 UTC) #12
commit-bot: I haz the power
Change committed as 173044
6 years, 7 months ago (2014-05-01 00:39:38 UTC) #13
falken
On 2014/05/01 00:39:38, I haz the power (commit-bot) wrote: > Change committed as 173044 It ...
6 years, 7 months ago (2014-05-01 04:20:33 UTC) #14
kouhei (in TOK)
A revert of this CL has been created in https://codereview.chromium.org/268623003/ by kouhei@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-01 04:22:01 UTC) #15
kouhei (in TOK)
On 2014/05/01 04:22:01, kouhei wrote: > A revert of this CL has been created in ...
6 years, 6 months ago (2014-05-28 05:10:10 UTC) #16
kouhei (in TOK)
On 2014/05/28 05:10:10, kouhei wrote: > On 2014/05/01 04:22:01, kouhei wrote: > > A revert ...
6 years, 6 months ago (2014-06-02 00:24:51 UTC) #17
kouhei (in TOK)
The CQ bit was checked by kouhei@chromium.org
6 years, 6 months ago (2014-06-02 00:24:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/263583002/40001
6 years, 6 months ago (2014-06-02 00:25:07 UTC) #19
commit-bot: I haz the power
6 years, 6 months ago (2014-06-02 00:59:29 UTC) #20
Message was sent while issue was closed.
Change committed as 175240

Powered by Google App Engine
This is Rietveld 408576698