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

Issue 1932343002: [DevTools] Don't run microtasks after call to InjectedScript (Closed)

Created:
4 years, 7 months ago by kozy
Modified:
4 years, 7 months ago
Reviewers:
dgozman, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, sergeyv+blink_chromium.org, kinuko+watch, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Don't run microtasks after call to InjectedScript - all calls to injected script doesn't produce microtask checkpoint, - Runtime.evaluate produces microtask checkpoint. R=dgozman@chromium.org BUG=595206, 608138 Committed: https://crrev.com/a03cc9b51b4a88cffab3ffcfb4fc591606463d39 Cr-Commit-Position: refs/heads/master@{#390863}

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : #

Messages

Total messages: 37 (19 generated)
kozy
Dmitry, please take a look.
4 years, 7 months ago (2016-04-29 19:21:05 UTC) #3
dgozman
Does this also fix the "step into goes to injected script code" problem due to ...
4 years, 7 months ago (2016-04-30 00:07:01 UTC) #4
dgozman
https://codereview.chromium.org/1932343002/diff/20001/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp File third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp (right): https://codereview.chromium.org/1932343002/diff/20001/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp#newcode165 third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp:165: v8::MaybeLocal<v8::Value> maybeFunctionValue = m_debugger->compileAndRunInternalScript(scope.context(), toV8String(m_debugger->isolate(), "(" + expression + ...
4 years, 7 months ago (2016-04-30 00:08:33 UTC) #5
dgozman
Let's try to do the test in render_view_browsertest.cc to avoid others triggering promises.
4 years, 7 months ago (2016-04-30 00:19:51 UTC) #6
kozy
Added tests. Dmitry, please take a look.
4 years, 7 months ago (2016-04-30 02:10:17 UTC) #7
dgozman
Nice tests! Thanks! lgtm https://codereview.chromium.org/1932343002/diff/40001/content/renderer/render_view_browsertest.cc File content/renderer/render_view_browsertest.cc (right): https://codereview.chromium.org/1932343002/diff/40001/content/renderer/render_view_browsertest.cc#newcode2445 content/renderer/render_view_browsertest.cc:2445: EXPECT_TRUE(static_cast<const base::DictionaryValue*>(root.get()) No need to ...
4 years, 7 months ago (2016-04-30 02:26:07 UTC) #8
kozy
Pavel, I need owner lgtm, ptal!
4 years, 7 months ago (2016-04-30 02:31:26 UTC) #10
pfeldman
lgtm
4 years, 7 months ago (2016-04-30 02:32:28 UTC) #11
kozy
All done except one more test. I'll add a test in follow up. https://codereview.chromium.org/1932343002/diff/40001/content/renderer/render_view_browsertest.cc File ...
4 years, 7 months ago (2016-04-30 03:08:30 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1932343002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1932343002/60001
4 years, 7 months ago (2016-04-30 03:11:25 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/214416)
4 years, 7 months ago (2016-04-30 03:58:26 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1932343002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1932343002/80001
4 years, 7 months ago (2016-04-30 04:51:15 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/221751)
4 years, 7 months ago (2016-04-30 06:02:51 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1932343002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1932343002/100001
4 years, 7 months ago (2016-04-30 16:13:25 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/163379)
4 years, 7 months ago (2016-04-30 16:53:16 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1932343002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1932343002/120001
4 years, 7 months ago (2016-04-30 19:53:39 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 7 months ago (2016-04-30 21:44:11 UTC) #35
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 21:45:55 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a03cc9b51b4a88cffab3ffcfb4fc591606463d39
Cr-Commit-Position: refs/heads/master@{#390863}

Powered by Google App Engine
This is Rietveld 408576698