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

Issue 1067373005: OOPIF: Allow OOP frames to print console messages in layout tests. (Closed)

Created:
5 years, 8 months ago by alexmos
Modified:
4 years, 9 months ago
Reviewers:
Charlie Reis, dcheng
CC:
chromium-reviews, darin-cc_chromium.org, jam, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

OOPIF: Allow OOP frames to print console messages in layout tests. When running layout tests with --site-per-process, console messages from OOP frames were not showing up in test output, breaking expectations for a lot of tests. This CL fixes this by allowing ShellViewHostMsg_PrintMessage to be sent from a swapped-out RenderView. BUG=475312, 417518 TEST=http/test/security/postMessage/invalid-origin-throws-exception.html passes with --site-per-process Committed: https://crrev.com/b57804d8bb5373211a5280f5495c05721f484cfb Cr-Commit-Position: refs/heads/master@{#324555}

Patch Set 1 #

Patch Set 2 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M content/common/swapped_out_messages.cc View 1 2 chunks +3 lines, -0 lines 3 comments Download

Messages

Total messages: 20 (5 generated)
alexmos
Hey Charlie, this is another workaround to get layout tests further along with --site-per-process. Do ...
5 years, 8 months ago (2015-04-09 00:56:04 UTC) #2
dcheng
https://codereview.chromium.org/1067373005/diff/20001/content/common/swapped_out_messages.cc File content/common/swapped_out_messages.cc (right): https://codereview.chromium.org/1067373005/diff/20001/content/common/swapped_out_messages.cc#newcode52 content/common/swapped_out_messages.cc:52: case ShellViewHostMsg_PrintMessage::ID: Would it make sense to tie this ...
5 years, 8 months ago (2015-04-09 01:08:56 UTC) #4
dcheng
On 2015/04/09 at 01:08:56, dcheng wrote: > https://codereview.chromium.org/1067373005/diff/20001/content/common/swapped_out_messages.cc > File content/common/swapped_out_messages.cc (right): > > https://codereview.chromium.org/1067373005/diff/20001/content/common/swapped_out_messages.cc#newcode52 ...
5 years, 8 months ago (2015-04-09 01:09:05 UTC) #5
Charlie Reis
LGTM https://codereview.chromium.org/1067373005/diff/20001/content/common/swapped_out_messages.cc File content/common/swapped_out_messages.cc (right): https://codereview.chromium.org/1067373005/diff/20001/content/common/swapped_out_messages.cc#newcode52 content/common/swapped_out_messages.cc:52: case ShellViewHostMsg_PrintMessage::ID: On 2015/04/09 01:08:55, dcheng wrote: > ...
5 years, 8 months ago (2015-04-09 17:32:26 UTC) #6
dcheng
https://codereview.chromium.org/1067373005/diff/20001/content/common/swapped_out_messages.cc File content/common/swapped_out_messages.cc (right): https://codereview.chromium.org/1067373005/diff/20001/content/common/swapped_out_messages.cc#newcode52 content/common/swapped_out_messages.cc:52: case ShellViewHostMsg_PrintMessage::ID: On 2015/04/09 17:32:25, Charlie Reis (slow until ...
5 years, 8 months ago (2015-04-09 17:37:31 UTC) #7
alexmos
On 2015/04/09 17:37:31, dcheng wrote: > https://codereview.chromium.org/1067373005/diff/20001/content/common/swapped_out_messages.cc > File content/common/swapped_out_messages.cc (right): > > https://codereview.chromium.org/1067373005/diff/20001/content/common/swapped_out_messages.cc#newcode52 > ...
5 years, 8 months ago (2015-04-09 19:28:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1067373005/20001
5 years, 8 months ago (2015-04-09 19:29:14 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/55227)
5 years, 8 months ago (2015-04-09 19:38:56 UTC) #12
Charlie Reis
Hmm, I should be an owner for that file. I guess it's treated like an ...
5 years, 8 months ago (2015-04-09 19:46:36 UTC) #13
alexmos
Yeah, looks like it's treated like an IPC file. Daniel, do you mind approving this?
5 years, 8 months ago (2015-04-09 19:51:09 UTC) #14
dcheng
On 2015/04/09 at 19:51:09, alexmos wrote: > Yeah, looks like it's treated like an IPC ...
5 years, 8 months ago (2015-04-09 20:32:20 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1067373005/20001
5 years, 8 months ago (2015-04-10 00:54:14 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-10 01:10:41 UTC) #18
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/b57804d8bb5373211a5280f5495c05721f484cfb Cr-Commit-Position: refs/heads/master@{#324555}
5 years, 8 months ago (2015-04-10 01:11:40 UTC) #19
brettw
4 years, 9 months ago (2016-03-22 00:04:50 UTC) #20
Message was sent while issue was closed.
From https://bugs.chromium.org/p/chromium/issues/detail?id=596736 I just filed:

https://codereview.chromium.org/1715573002
https://codereview.chromium.org/1067373005

Introduced includes from content/common to content/shell for
swapped_out_messages.cc

I am trying to make GN's header checker pass on content so we don't introduce
layering violations, and that's blocked on this laying violation.

content/shell is a test harness browser while content/common is linked into
every process in the browser. Including content_shell_messages here also brings
in other parts of content shell like shell_test_configuration.h and
leak_detection_result.h into content/common. We need to find a way to do this
that's not a layering violation.

Perhaps content_shell needs it's own superclass of the swapped out messages
filter.

Powered by Google App Engine
This is Rietveld 408576698