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

Issue 1297173002: html_viewer: Make sure window.internals is set-up correctly in layout-tests. (Closed)

Created:
5 years, 4 months ago by sadrul
Modified:
5 years, 4 months ago
Reviewers:
sky, pfeldman
CC:
chromium-reviews, darin-cc_chromium.org, mkwst+moarreviews-shell_chromium.org, jam, jochen+watch_chromium.org, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

html_viewer: Make sure window.internals is set-up correctly in layout-tests. Inject window.internals from WebFrameClient::didClearWindowObject() override instead of right after creation, since that's how //content sets it up as well. Also, fix a couple of crashes during start-up and tear-down. BUG=none Committed: https://crrev.com/b3ad146d98e8e67187e4f072676afbe210e73042 Cr-Commit-Position: refs/heads/master@{#344833}

Patch Set 1 #

Total comments: 5

Patch Set 2 : . #

Total comments: 1

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -4 lines) Patch
M components/html_viewer/layout_test_content_handler_impl.cc View 1 2 3 chunks +22 lines, -3 lines 0 comments Download
M components/html_viewer/web_test_delegate_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/html_viewer/web_test_delegate_impl.cc View 2 chunks +9 lines, -1 line 0 comments Download
M components/test_runner/web_test_delegate.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/test_runner/web_test_proxy.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
sadrul
https://codereview.chromium.org/1297173002/diff/1/components/html_viewer/layout_test_content_handler_impl.cc File components/html_viewer/layout_test_content_handler_impl.cc (right): https://codereview.chromium.org/1297173002/diff/1/components/html_viewer/layout_test_content_handler_impl.cc#newcode71 components/html_viewer/layout_test_content_handler_impl.cc:71: web_view = params->manager->GetWebView(); This does avoid a crash on ...
5 years, 4 months ago (2015-08-18 08:00:13 UTC) #2
sky
https://codereview.chromium.org/1297173002/diff/1/components/html_viewer/layout_test_content_handler_impl.cc File components/html_viewer/layout_test_content_handler_impl.cc (right): https://codereview.chromium.org/1297173002/diff/1/components/html_viewer/layout_test_content_handler_impl.cc#newcode26 components/html_viewer/layout_test_content_handler_impl.cc:26: blink::WebTestingSupport::injectInternalsObject(frame); Should you call through to the base class? ...
5 years, 4 months ago (2015-08-18 18:13:57 UTC) #3
sadrul
https://codereview.chromium.org/1297173002/diff/1/components/html_viewer/layout_test_content_handler_impl.cc File components/html_viewer/layout_test_content_handler_impl.cc (right): https://codereview.chromium.org/1297173002/diff/1/components/html_viewer/layout_test_content_handler_impl.cc#newcode26 components/html_viewer/layout_test_content_handler_impl.cc:26: blink::WebTestingSupport::injectInternalsObject(frame); On 2015/08/18 18:13:57, sky wrote: > Should you ...
5 years, 4 months ago (2015-08-18 20:06:34 UTC) #4
sky
LGTM https://codereview.chromium.org/1297173002/diff/20001/components/html_viewer/layout_test_content_handler_impl.cc File components/html_viewer/layout_test_content_handler_impl.cc (right): https://codereview.chromium.org/1297173002/diff/20001/components/html_viewer/layout_test_content_handler_impl.cc#newcode66 components/html_viewer/layout_test_content_handler_impl.cc:66: if (params->parent) Yes, this is what I had ...
5 years, 4 months ago (2015-08-18 20:51:44 UTC) #5
sadrul
+pfeldman@chromium.org for components/test_runner and content/shell owner review.
5 years, 4 months ago (2015-08-21 03:28:14 UTC) #7
pfeldman
lgtm
5 years, 4 months ago (2015-08-21 17:41:45 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1297173002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1297173002/40001
5 years, 4 months ago (2015-08-21 19:12:02 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 4 months ago (2015-08-21 19:17:43 UTC) #12
commit-bot: I haz the power
5 years, 4 months ago (2015-08-21 19:18:48 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b3ad146d98e8e67187e4f072676afbe210e73042
Cr-Commit-Position: refs/heads/master@{#344833}

Powered by Google App Engine
This is Rietveld 408576698