Uncaught ReferenceError
Reported by
nemo...@gmail.com,
Nov 7
|
||||
Issue descriptionDevice name: From "Settings > About Chrome" Application version: 70.0.3538.80 Operating system: oreo URLs (if applicable): Steps to reproduce: (1) There is an Android app that provides Webview. And there is a javascript method that calls the Android native app on the web page. (2) There are web pages A and B. (3) Page A is shown at first loading. (4) Page B is shown as a new window when window.open is called when link is selected on page A. (add view from native to addview) (5) We added javascriptinterface when adding a new view. (8.0 Oreo Version) - If you call the JavaScript interface method on your A page without any version of Chrome, your app will work normally. - On page B, Chrome version 70.0.3538.80 will generate an error message when calling a JavaScript interface method from the app. I / chromium: [INFO: CONSOLE (327)] "Uncaught ReferenceError: KtNumberService is not defined" ....... However, in version 67.0.3396.87 of Chrome, it works fine when calling the JavaScript interface method from the page B to the app. (7.0 Nougat Version) - It works normally regardless of chrome version. I do not know what the reason is. I will ask for help. Thank you. Expected result: call javascript function Actual result: I / chromium: [INFO: CONSOLE (327)] "Uncaught ReferenceError: KtNumberService is not defined"
,
Nov 7
nemocjy@, could you please provide a sample app to demonstrate the bug, thanks! I suspect that addJavascriptInterface() with multi-process was not preserved for new window.open(). Could you please try to enable multi-process on Nougat (in developer's option) to see if they have the same bug.
,
Nov 8
,
Nov 9
//@ctzsm test apks/guide doc were uploaded at bug 903232 sent a separate email too
,
Nov 9
|
||||
►
Sign in to add a comment |
||||
Comment 1 by dtapu...@chromium.org
, Nov 7