New issue
Advanced search Search tips

Issue 902622 link

Starred by 1 user

Issue metadata

Status: Duplicate
Owner: ----
Closed: Nov 9
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: ----



Sign in to add a comment

Uncaught ReferenceError

Reported by nemo...@gmail.com, Nov 7

Issue description

Device 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" 

 
Components: Mobile>WebView
Cc: ctzsm@chromium.org
Labels: Needs-Feedback
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.
Labels: Needs-triage-Mobile
//@ctzsm
test apks/guide doc were uploaded at bug 903232
sent a separate email too

Mergedinto: 903232
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment