OOPIF: Don't crash when running layout tests that have an OOP iframe.
commit297eab63774e6b75d2fccef92c1991707be16246
authoralexmos <alexmos@chromium.org>
Wed, 8 Apr 2015 23:58:19 +0000 (8 16:58 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 8 Apr 2015 23:58:47 +0000 (8 23:58 +0000)
treeff8b26eee13f60f73c2ef52c23e1006917a84a0a
parent27e19fba6e60c54d3e1af2254abe9d7ab448d874
OOPIF: Don't crash when running layout tests that have an OOP iframe.

This CLs fixes a few places in layout test code that were assuming
that the top-level frame is local, which was causing renderer crashes
when running a layout test containing a cross-site frame with
--site-per-process.  For example, most tests under
http/tests/security/postMessage/ ran into this.

BUG=474792
TEST=http/tests/security/postMessage/* tests don't crash with --site-per-process

Review URL: https://codereview.chromium.org/1073533002

Cr-Commit-Position: refs/heads/master@{#324311}
content/shell/renderer/layout_test/webkit_test_runner.cc
content/shell/renderer/test_runner/accessibility_controller.cc