| Index: third_party/WebKit/LayoutTests/external/wpt_automation/fullscreen/auto-click.js
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt_automation/fullscreen/auto-click.js b/third_party/WebKit/LayoutTests/external/wpt_automation/fullscreen/auto-click.js
|
| index 334b23af3012e93e0c28458a3d8d2b65f6cb732e..651f2260e858505a9c6a4b02ac0850bd8c3ed50d 100644
|
| --- a/third_party/WebKit/LayoutTests/external/wpt_automation/fullscreen/auto-click.js
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt_automation/fullscreen/auto-click.js
|
| @@ -44,10 +44,17 @@ for (const button of document.getElementsByTagName('button')) {
|
| click(button);
|
| }
|
| for (const iframe of document.getElementsByTagName('iframe')) {
|
| - observe(iframe.contentDocument);
|
| - iframe.addEventListener('load', () => {
|
| + try {
|
| observe(iframe.contentDocument);
|
| - });
|
| + iframe.addEventListener('load', () => {
|
| + observe(iframe.contentDocument);
|
| + });
|
| + } catch (e) {
|
| + // Skip cross-origin iframes, but report other errors
|
| + if (e.name != "SecurityError") {
|
| + throw e;
|
| + }
|
| + }
|
| }
|
|
|
| // Observe future changes.
|
|
|