IMPORTANT DEBUGGING NOTE: each test is run inside its own process. For debugging a test inside a debugger, use the --gtest_filter= flag along with either --single-process-tests (to run the test in one launcher/browser process) or --single-process (to do the above, and also run Chrome in single-process mode). Using sharding settings from environment. This is shard 0/1 Using 1 parallel jobs. Note: Google Test filter = CastOpenURLLaunderingTest.SecFetchSiteSpoof [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from CastOpenURLLaunderingTest, where TypeParam = [ RUN ] CastOpenURLLaunderingTest.SecFetchSiteSpoof [51659:51666:0414/053545.960488:ERROR:dbus/bus.cc:405] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory [51659:51671:0414/053545.962439:INFO:chromecast/external_mojo/public/cpp/external_mojo_broker.cc:439] Initializing external mojo broker at: /tmp/cast_mojo_broker [51659:51659:0414/053545.979505:INFO:chromecast/graphics/cast_window_manager_aura.cc:190] Starting window manager, bounds: 0,0 1280x720 [51659:51671:0414/053545.982226:INFO:chromecast/external_mojo/public/cpp/external_mojo_broker.cc:247] Register service cast_browser [51659:51659:0414/053545.982568:INFO:chromecast/metrics/cast_metrics_service_client.cc:102] Metrics client ID set: dd612474-565a-445a-9175-a5a3939e7b7a [51659:51659:0414/053545.983384:INFO:chromecast/metrics/cast_metrics_service_client.cc:102] Metrics client ID set: dd612474-565a-445a-9175-a5a3939e7b7a [51659:51659:0414/053545.992488:INFO:chromecast/cast_core/runtime/browser/runtime_service_impl.cc:151] Runtime service started: runtime_id=2f0ce4dc-7cf8-4898-9bd9-46c42388ec7d [51659:51659:0414/053545.992589:INFO:chromecast/cast_core/runtime/browser/runtime_service_impl.cc:537] Skipping runtime authentication as not requested [51659:51659:0414/053546.016258:INFO:chromecast/browser/cast_browser_main_parts.cc:753] Adding 0 supported codec profiles/levels [51659:51671:0414/053546.016613:INFO:chromecast/external_mojo/public/cpp/external_mojo_broker.cc:281] Request for chromecast:chromecast.mojom.GeneralAudienceBrowsingAPIKeySubject [51659:51671:0414/053546.021743:INFO:chromecast/external_mojo/public/cpp/external_mojo_broker.cc:352] chromecast not found [51659:51659:0414/053546.029260:INFO:chromecast/browser/cast_web_contents_impl.cc:169] Enabling dev console for CastWebContentsImpl [51659:51659:0414/053546.029666:INFO:chromecast/browser/devtools/remote_debugging_server.cc:209] Devtools started [51659:51659:0414/053546.030073:INFO:chromecast/browser/cast_web_contents_impl.cc:263] Load url: http://attacker.test:43261/attacker.html [51659:51667:0414/053546.030163:ERROR:chromecast/net/connectivity_checker_impl.cc:309] Connectivity check failed: net_error=-102 [51659:51659:0414/053546.030492:ERROR:chromecast/browser/cast_permission_manager.cc:119] GetPermissionStatusInternal: No permission data in frame! [51659:51659:0414/053546.030821:INFO:chromecast/browser/cast_permission_manager.cc:86] GetPermissionStatusInternal: grants permission 9 out of frame context. [51659:51659:0414/053546.030915:ERROR:chromecast/browser/cast_permission_manager.cc:119] GetPermissionStatusInternal: No permission data in frame! [51659:51659:0414/053546.031134:INFO:chromecast/browser/cast_permission_manager.cc:86] GetPermissionStatusInternal: grants permission 8 out of frame context. [51659:51659:0414/053546.031216:ERROR:chromecast/browser/cast_permission_manager.cc:119] GetPermissionStatusInternal: No permission data in frame! DevTools listening on ws://[::]:9222/devtools/browser/fa382e9b-8767-43fb-b42c-ecad363418b5 [51659:51659:0414/053546.031420:INFO:chromecast/browser/cast_permission_manager.cc:86] GetPermissionStatusInternal: grants permission 42 out of frame context. [51659:51659:0414/053546.031483:ERROR:chromecast/browser/cast_permission_manager.cc:119] GetPermissionStatusInternal: No permission data in frame! [51659:51659:0414/053546.031688:INFO:chromecast/browser/cast_permission_manager.cc:86] GetPermissionStatusInternal: grants permission 4 out of frame context. [51659:51659:0414/053546.048739:INFO:chromecast/browser/cast_web_contents_impl.cc:638] Navigation started: http://attacker.test:43261/attacker.html [51683:51683:0414/053546.088263:WARNING:sandbox/policy/linux/sandbox_linux.cc:404] InitializeSandbox() called with multiple threads in process gpu-process. [51734:51734:0414/053546.254436:INFO:components/media_control/renderer/media_playback_options.cc:81] Render frame actions are unblocked. [51734:51734:0414/053546.257586:INFO:chromecast/common/cast_content_client.cc:130] Active URL: http://attacker.test:43261/attacker.html for origin 'null' [51659:51659:0414/053546.263726:INFO:chromecast/common/cast_content_client.cc:130] Active URL: http://attacker.test:43261/attacker.html for origin 'null [internally: (8DEA4A0A01539E8A15116FEF5F5AC844) anonymous]' [51734:51734:0414/053546.280689:INFO:components/media_control/renderer/media_playback_options.cc:81] Render frame actions are unblocked. [51659:51659:0414/053546.308323:INFO:chromecast/browser/cast_web_contents_impl.cc:789] Finished loading page after 259 ms, url=http://attacker.test:43261/attacker.html [51659:51659:0414/053546.309011:ERROR:chromecast/browser/test/cast_openurl_laundering_browsertest.cc:166] [POC] attacker origin: http://attacker.test:43261 [51734:51734:0414/053546.309587:INFO:chromecast/renderer/feature_manager.cc:126] Enabling bindings: [51734:51734:0414/053546.312601:ERROR:content/renderer/render_frame_impl.cc:5498] [POC] Compromised-renderer simulation: sending LocalFrameHost::OpenURL(http://127.0.0.1:43261/victim?poc-openurl, disposition=CURRENT_TAB) [51659:51659:0414/053546.313567:INFO:chromecast/browser/cast_web_view_default.cc:171] Change url: http://127.0.0.1:43261/victim?poc-openurl [51659:51659:0414/053546.313795:ERROR:chromecast/browser/cast_permission_manager.cc:119] GetPermissionStatusInternal: No permission data in frame! [51659:51659:0414/053546.314050:INFO:chromecast/browser/cast_permission_manager.cc:86] GetPermissionStatusInternal: grants permission 9 out of frame context. [51659:51659:0414/053546.314113:ERROR:chromecast/browser/cast_permission_manager.cc:119] GetPermissionStatusInternal: No permission data in frame! [51659:51659:0414/053546.314260:INFO:chromecast/browser/cast_permission_manager.cc:86] GetPermissionStatusInternal: grants permission 8 out of frame context. [51659:51659:0414/053546.314319:ERROR:chromecast/browser/cast_permission_manager.cc:119] GetPermissionStatusInternal: No permission data in frame! [51659:51659:0414/053546.314453:INFO:chromecast/browser/cast_permission_manager.cc:86] GetPermissionStatusInternal: grants permission 42 out of frame context. [51659:51659:0414/053546.314509:ERROR:chromecast/browser/cast_permission_manager.cc:119] GetPermissionStatusInternal: No permission data in frame! [51659:51659:0414/053546.314617:INFO:chromecast/browser/cast_permission_manager.cc:86] GetPermissionStatusInternal: grants permission 4 out of frame context. [51659:51659:0414/053546.324055:INFO:chromecast/browser/cast_web_contents_impl.cc:638] Navigation started: http://127.0.0.1:43261/victim?poc-openurl [51734:51734:0414/053546.330118:INFO:components/media_control/renderer/media_playback_options.cc:81] Render frame actions are unblocked. [51734:51734:0414/053546.351715:INFO:chromecast/common/cast_content_client.cc:130] Active URL: http://127.0.0.1:43261/victim?poc-openurl for origin 'null' [51659:51659:0414/053546.360358:INFO:chromecast/common/cast_content_client.cc:130] Active URL: http://127.0.0.1:43261/victim?poc-openurl for origin 'http://attacker.test:43261' [51734:51734:0414/053546.366834:INFO:chromecast/renderer/feature_manager.cc:126] Enabling bindings: [51734:51734:0414/053546.367247:INFO:chromecast/renderer/feature_manager.cc:126] Enabling bindings: [51659:51659:0414/053546.372801:INFO:chromecast/browser/cast_web_contents_impl.cc:789] Finished loading page after 48 ms, url=http://127.0.0.1:43261/victim?poc-openurl [51659:51659:0414/053546.373114:ERROR:chromecast/browser/test/cast_openurl_laundering_browsertest.cc:188] [POC] NavigationHandle::IsRendererInitiated() = false [51659:51659:0414/053546.373156:ERROR:chromecast/browser/test/cast_openurl_laundering_browsertest.cc:190] [POC] NavigationHandle::GetInitiatorOrigin() = [51659:51659:0414/053546.373182:ERROR:chromecast/browser/test/cast_openurl_laundering_browsertest.cc:205] [POC] Server received Sec-Fetch-Site: none [51659:51659:0414/053546.373210:ERROR:chromecast/browser/test/cast_openurl_laundering_browsertest.cc:207] [POC] Server received Origin: [51659:51659:0414/053546.373454:INFO:chromecast/browser/cast_web_service.cc:155] Immediately deleting CastWebView for http://127.0.0.1:43261/victim?poc-openurl [51659:51659:0414/053546.373505:INFO:chromecast/browser/cast_web_service.cc:168] Deleting CastWebView. [51659:51659:0414/053546.373552:INFO:chromecast/browser/cast_web_contents_impl.cc:1061] Disabling dev console for CastWebContentsImpl [51659:51659:0414/053546.373605:INFO:chromecast/browser/devtools/remote_debugging_server.cc:220] Stopping Devtools server. [51659:51659:0414/053546.381783:INFO:chromecast/cast_core/runtime/browser/runtime_service_impl.cc:176] Pending apps and Core services terminated [51659:51659:0414/053546.387504:INFO:chromecast/cast_core/grpc/grpc_server.cc:37] Shutting down gRPC server [51659:51659:0414/053546.388384:INFO:chromecast/cast_core/grpc/grpc_server.cc:55] gRPC server is shut down [51659:51659:0414/053546.388511:INFO:chromecast/cast_core/runtime/browser/runtime_service_impl.cc:194] Runtime service stopped [51659:51659:0414/053546.388708:INFO:chromecast/cast_core/runtime/browser/runtime_service_impl.cc:176] Pending apps and Core services terminated [51659:51659:0414/053546.388756:INFO:chromecast/cast_core/runtime/browser/runtime_service_impl.cc:194] Runtime service stopped [51659:51671:0414/053546.435155:INFO:chromecast/external_mojo/public/cpp/external_mojo_broker.cc:359] cast_browser disconnected [51659:51659:0414/053546.440243:WARNING:base/test/task_environment.cc:959] ParallelExecutionFence is ineffective when ThreadPoolInstance is not managed by a TaskEnvironment. Test fixtures should use a TaskEnvironment member or statically invoke TaskEnvironment::CreateThreadPool() + ThreadPoolInstance::Get()->StartWithDefaultParams() when the former is not possible. [ OK ] CastOpenURLLaunderingTest.SecFetchSiteSpoof (729 ms) [----------] 1 test from CastOpenURLLaunderingTest (741 ms total) [----------] Global test environment tear-down [==========] 1 test from 1 test suite ran. (742 ms total) [ PASSED ] 1 test. [1/2] CastOpenURLLaunderingTest.SecFetchSiteSpoof (1050 ms) Note: Google Test filter = CastOpenURLLaunderingTest.TopLevelDataUrlBypass [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from CastOpenURLLaunderingTest, where TypeParam = [ RUN ] CastOpenURLLaunderingTest.TopLevelDataUrlBypass [51745:51752:0414/053547.009104:ERROR:dbus/bus.cc:405] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory [51745:51757:0414/053547.018994:INFO:chromecast/external_mojo/public/cpp/external_mojo_broker.cc:439] Initializing external mojo broker at: /tmp/cast_mojo_broker [51745:51745:0414/053547.036683:INFO:chromecast/graphics/cast_window_manager_aura.cc:190] Starting window manager, bounds: 0,0 1280x720 [51745:51745:0414/053547.039022:INFO:chromecast/metrics/cast_metrics_service_client.cc:102] Metrics client ID set: dd612474-565a-445a-9175-a5a3939e7b7a [51745:51757:0414/053547.039005:INFO:chromecast/external_mojo/public/cpp/external_mojo_broker.cc:247] Register service cast_browser [51745:51745:0414/053547.039802:INFO:chromecast/metrics/cast_metrics_service_client.cc:102] Metrics client ID set: dd612474-565a-445a-9175-a5a3939e7b7a [51745:51745:0414/053547.051194:INFO:chromecast/cast_core/runtime/browser/runtime_service_impl.cc:151] Runtime service started: runtime_id=de2bc660-6b2f-4858-b941-e0e579510236 [51745:51745:0414/053547.051313:INFO:chromecast/cast_core/runtime/browser/runtime_service_impl.cc:537] Skipping runtime authentication as not requested [51745:51745:0414/053547.073141:INFO:chromecast/browser/cast_browser_main_parts.cc:753] Adding 0 supported codec profiles/levels [51745:51757:0414/053547.073538:INFO:chromecast/external_mojo/public/cpp/external_mojo_broker.cc:281] Request for chromecast:chromecast.mojom.GeneralAudienceBrowsingAPIKeySubject [51745:51757:0414/053547.079178:INFO:chromecast/external_mojo/public/cpp/external_mojo_broker.cc:352] chromecast not found [51745:51753:0414/053547.086017:ERROR:chromecast/net/connectivity_checker_impl.cc:309] Connectivity check failed: net_error=-102 [51745:51745:0414/053547.088585:INFO:chromecast/browser/cast_web_contents_impl.cc:169] Enabling dev console for CastWebContentsImpl [51745:51745:0414/053547.089070:INFO:chromecast/browser/devtools/remote_debugging_server.cc:209] Devtools started [51745:51745:0414/053547.089408:INFO:chromecast/browser/cast_web_contents_impl.cc:263] Load url: http://attacker.test:35797/attacker.html [51745:51745:0414/053547.089713:ERROR:chromecast/browser/cast_permission_manager.cc:119] GetPermissionStatusInternal: No permission data in frame! DevTools listening on ws://[::]:9222/devtools/browser/510af3e5-7a13-4ee1-8d96-93b9a1459d88 [51745:51745:0414/053547.090019:INFO:chromecast/browser/cast_permission_manager.cc:86] GetPermissionStatusInternal: grants permission 9 out of frame context. [51745:51745:0414/053547.090099:ERROR:chromecast/browser/cast_permission_manager.cc:119] GetPermissionStatusInternal: No permission data in frame! [51745:51745:0414/053547.090289:INFO:chromecast/browser/cast_permission_manager.cc:86] GetPermissionStatusInternal: grants permission 8 out of frame context. [51745:51745:0414/053547.090366:ERROR:chromecast/browser/cast_permission_manager.cc:119] GetPermissionStatusInternal: No permission data in frame! [51745:51745:0414/053547.090547:INFO:chromecast/browser/cast_permission_manager.cc:86] GetPermissionStatusInternal: grants permission 42 out of frame context. [51745:51745:0414/053547.090604:ERROR:chromecast/browser/cast_permission_manager.cc:119] GetPermissionStatusInternal: No permission data in frame! [51745:51745:0414/053547.090826:INFO:chromecast/browser/cast_permission_manager.cc:86] GetPermissionStatusInternal: grants permission 4 out of frame context. [51745:51745:0414/053547.110412:INFO:chromecast/browser/cast_web_contents_impl.cc:638] Navigation started: http://attacker.test:35797/attacker.html [51769:51769:0414/053547.137192:WARNING:sandbox/policy/linux/sandbox_linux.cc:404] InitializeSandbox() called with multiple threads in process gpu-process. [51814:51814:0414/053547.255703:INFO:components/media_control/renderer/media_playback_options.cc:81] Render frame actions are unblocked. [51814:51814:0414/053547.258569:INFO:chromecast/common/cast_content_client.cc:130] Active URL: http://attacker.test:35797/attacker.html for origin 'null' [51745:51745:0414/053547.264011:INFO:chromecast/common/cast_content_client.cc:130] Active URL: http://attacker.test:35797/attacker.html for origin 'null [internally: (1FF075C412A49E104D88DF7E819C6D0C) anonymous]' [51814:51814:0414/053547.276272:INFO:components/media_control/renderer/media_playback_options.cc:81] Render frame actions are unblocked. [51745:51745:0414/053547.298255:INFO:chromecast/browser/cast_web_contents_impl.cc:789] Finished loading page after 187 ms, url=http://attacker.test:35797/attacker.html [51814:51814:0414/053547.299256:INFO:chromecast/renderer/feature_manager.cc:126] Enabling bindings: [51814:51814:0414/053547.302570:ERROR:content/renderer/render_frame_impl.cc:5498] [POC] Compromised-renderer simulation: sending LocalFrameHost::OpenURL(data:text/html,poc-openurl-datadata: committed in top frame, disposition=CURRENT_TAB) [51745:51745:0414/053547.303319:INFO:chromecast/browser/cast_web_view_default.cc:171] Change url: data:text/html,poc-openurl-datadata: committed in top frame [51745:51745:0414/053547.303477:ERROR:chromecast/browser/cast_permission_manager.cc:119] GetPermissionStatusInternal: No permission data in frame! [51745:51745:0414/053547.303675:INFO:chromecast/browser/cast_permission_manager.cc:86] GetPermissionStatusInternal: grants permission 9 out of frame context. [51745:51745:0414/053547.303728:ERROR:chromecast/browser/cast_permission_manager.cc:119] GetPermissionStatusInternal: No permission data in frame! [51745:51745:0414/053547.303838:INFO:chromecast/browser/cast_permission_manager.cc:86] GetPermissionStatusInternal: grants permission 8 out of frame context. [51745:51745:0414/053547.303889:ERROR:chromecast/browser/cast_permission_manager.cc:119] GetPermissionStatusInternal: No permission data in frame! [51745:51745:0414/053547.304024:INFO:chromecast/browser/cast_permission_manager.cc:86] GetPermissionStatusInternal: grants permission 42 out of frame context. [51745:51745:0414/053547.304079:ERROR:chromecast/browser/cast_permission_manager.cc:119] GetPermissionStatusInternal: No permission data in frame! [51745:51745:0414/053547.304176:INFO:chromecast/browser/cast_permission_manager.cc:86] GetPermissionStatusInternal: grants permission 4 out of frame context. [51745:51745:0414/053547.310559:INFO:chromecast/browser/cast_web_contents_impl.cc:638] Navigation started: data:text/html,poc-openurl-datadata: committed in top frame [51814:51814:0414/053547.319788:INFO:components/media_control/renderer/media_playback_options.cc:81] Render frame actions are unblocked. [51814:51814:0414/053547.324684:INFO:chromecast/common/cast_content_client.cc:130] Active URL: data:text/html,poc-openurl-datadata: committed in top frame for origin 'null' [51745:51745:0414/053547.333425:INFO:chromecast/common/cast_content_client.cc:130] Active URL: data:text/html,poc-openurl-datadata: committed in top frame for origin 'http://attacker.test:35797' [51814:51814:0414/053547.337420:INFO:chromecast/renderer/feature_manager.cc:126] Enabling bindings: [51814:51814:0414/053547.337876:INFO:chromecast/renderer/feature_manager.cc:126] Enabling bindings: [51745:51745:0414/053547.345520:INFO:chromecast/browser/cast_web_contents_impl.cc:789] Finished loading page after 34 ms, url=data:text/html,poc-openurl-datadata: committed in top frame [51745:51745:0414/053547.346057:ERROR:chromecast/browser/test/cast_openurl_laundering_browsertest.cc:238] [POC] data: nav IsRendererInitiated() = false [51745:51745:0414/053547.346110:ERROR:chromecast/browser/test/cast_openurl_laundering_browsertest.cc:240] [POC] data: nav last committed URL = data:text/html,poc-openurl-datadata: committed in top frame [51745:51745:0414/053547.346402:INFO:chromecast/browser/cast_web_service.cc:155] Immediately deleting CastWebView for data:text/html,poc-openurl-datadata: committed in top frame [51745:51745:0414/053547.346461:INFO:chromecast/browser/cast_web_service.cc:168] Deleting CastWebView. [51745:51745:0414/053547.346527:INFO:chromecast/browser/cast_web_contents_impl.cc:1061] Disabling dev console for CastWebContentsImpl [51745:51745:0414/053547.346593:INFO:chromecast/browser/devtools/remote_debugging_server.cc:220] Stopping Devtools server. [51745:51745:0414/053547.356323:INFO:chromecast/cast_core/runtime/browser/runtime_service_impl.cc:176] Pending apps and Core services terminated [51745:51745:0414/053547.362510:INFO:chromecast/cast_core/grpc/grpc_server.cc:37] Shutting down gRPC server [51745:51745:0414/053547.363446:INFO:chromecast/cast_core/grpc/grpc_server.cc:55] gRPC server is shut down [51745:51745:0414/053547.363579:INFO:chromecast/cast_core/runtime/browser/runtime_service_impl.cc:194] Runtime service stopped [51745:51745:0414/053547.363840:INFO:chromecast/cast_core/runtime/browser/runtime_service_impl.cc:176] Pending apps and Core services terminated [51745:51745:0414/053547.363907:INFO:chromecast/cast_core/runtime/browser/runtime_service_impl.cc:194] Runtime service stopped [51745:51757:0414/053547.414389:INFO:chromecast/external_mojo/public/cpp/external_mojo_broker.cc:359] cast_browser disconnected [51745:51745:0414/053547.419493:WARNING:base/test/task_environment.cc:959] ParallelExecutionFence is ineffective when ThreadPoolInstance is not managed by a TaskEnvironment. Test fixtures should use a TaskEnvironment member or statically invoke TaskEnvironment::CreateThreadPool() + ThreadPoolInstance::Get()->StartWithDefaultParams() when the former is not possible. [ OK ] CastOpenURLLaunderingTest.TopLevelDataUrlBypass (644 ms) [----------] 1 test from CastOpenURLLaunderingTest (657 ms total) [----------] Global test environment tear-down [==========] 1 test from 1 test suite ran. (657 ms total) [ PASSED ] 1 test. [2/2] CastOpenURLLaunderingTest.TopLevelDataUrlBypass (1051 ms) SUCCESS: all tests passed. Tests took 2 seconds.