From 084292f3ab4c06630700c604a38aa3b8bf6ba09d Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Sat, 25 Nov 2017 20:18:01 +0530 Subject: [PATCH] fix: focus the webview as a temp workaround --- spec/webview-spec.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/webview-spec.js b/spec/webview-spec.js index 0ce043069f24..2a9ef8642e8d 100644 --- a/spec/webview-spec.js +++ b/spec/webview-spec.js @@ -956,6 +956,11 @@ describe(' tag', function () { webview.addEventListener('did-finish-load', listener2) webview.src = `file://${fixtures}/pages/content.html` document.body.appendChild(webview) + // TODO(deepak1556): With https://codereview.chromium.org/2836973002 + // focus of the webContents is required when triggering the api. + // Remove this workaround after determining the cause for + // incorrect focus. + webview.focus() }) })