New issue
Advanced search Search tips

Issue 861536 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jul 31
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Website doesn't work on WebView but works on Chrome

Reported by car...@instantbits.com, Jul 7

Issue description

THIS TEMPLATE IS FOR FILING BUGS ON THE ANDROID SYSTEM WEBVIEW. GENERAL WEB BUGS SHOULD BE FILED USING A DIFFERENT TEMPLATE!

Device name: Any
Android version: 5+
WebView version (from system settings -> Apps -> Android System WebView): Several
Application: Any webview browser
Application version: any

URLs (if applicable): This is just a sample, I've seen it on other sites  https://www.pelispedia.tv/pelicula/burlesque-heart-of-the-glitter-tribe/ 

Steps to reproduce:

Open that on Chrome for Android and you'll see a list to select a video server. On any WebView browser you won't see the list. 

I noticed that on Chrome you don't get this error on the console but you do on the WebView:


modernizr-2.8.3-respond-1.1.0.min.js?ver=1.2.0:81 Uncaught SyntaxError: Invalid or unexpected token

This is the line with the error:

                return f = ["­", '"].join(""), l.id = h, (m ? l : n).innerHTML += f, n.appendChild(l), m || (n.style.background = "", n.style.overflow = "hidden", k = g.style.overflow, g.style.overflow = "hidden", g.appendChild(n)), i = c(l, a), m ? l.parentNode.removeChild(l) : (n.parentNode.removeChild(n), g.style.overflow = k), !!i

Expected result:

I expect this to work the same on Chrome and WebView. 


I'm attaching pictures of what I see on Chrome vs a random WebView browser. 

 
Screenshot_20180707-100708.png
190 KB View Download
Screenshot_20180707-100853.png
131 KB View Download
I am seeing a number of syntax errors when navigating the page on both chrome (on desktop) and webview-based browser. Below is the output I get from the webview-based browser. The main difference between chrome vs webview seems to be that in the latter case there is also a cross-site document that is blocked from loading.


-- inspector output --

Navigated to https://www.pelispedia.tv/pelicula/burlesque-heart-of-the-glitter-tribe/
(index):161 Blocked current origin from receiving cross-site document at https://1.bp.blogspot.com/-UExP4dOax1M/W0Bs_klYrWI/AAAAAAABJ9Y/F1jaJYxflnERF1R7Y92Eug46c1Z7dku5QCLcBGAs/s320/21.jpg with MIME type text/html.
modernizr-2.8.3-respond-1.1.0.min.js?ver=1.2.0:81 Uncaught SyntaxError: Invalid or unexpected token
(index):161 GET https://1.bp.blogspot.com/-UExP4dOax1M/W0Bs_klYrWI/AAAAAAABJ9Y/F1jaJYxflnERF1R7Y92Eug46c1Z7dku5QCLcBGAs/s320/21.jpg 403 ()
(index):489 Uncaught TypeError: Cannot set property '_renderItem' of undefined
    at HTMLDocument.<anonymous> ((index):489)
    at j (jquery-1.11.0.min.js?ver=1.1.8:2)
    at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js?ver=1.1.8:2)
    at Function.ready (jquery-1.11.0.min.js?ver=1.1.8:2)
    at HTMLDocument.K (jquery-1.11.0.min.js?ver=1.1.8:2)
(anonymous) @ (index):489
j @ jquery-1.11.0.min.js?ver=1.1.8:2
fireWith @ jquery-1.11.0.min.js?ver=1.1.8:2
ready @ jquery-1.11.0.min.js?ver=1.1.8:2
K @ jquery-1.11.0.min.js?ver=1.1.8:2
VM526 it.html:5 The key "target-densitydpi" is not supported.

I think I saw those errors on Chrome and WebView except for the modernizr-2.8.3-respond-1.1.0.min.js error. That one error was only on the WebView. I don't own that site so I can't correct the error, I'm just curious why it works on Chrome but not the WebView, particularly on 7+ where Chrome is the WebView. This isn't the only video site I've seen where videos don't work on the WebView but work on Chrome. 

Also I don't know if the modernizr-2.8.3-respond-1.1.0.min.js error is the cause of the issue, it is just the only difference I saw on the console. 
I was able to repro this issue on webview shell browser and Du browser which uses webview. Looks like this is broken for long time, I see this issue on M58/58.0.3029.83 webview as well
Cc: ntfschr@chromium.org
Labels: Needs-Feedback
> particularly on 7+ where Chrome is the WebView

In general, this doesn't affect things much. SystemWebView (L-M) has nearly identical behavior to Monochrome (N+) (only differs for very unusual bugs).

> Open that on Chrome for Android and you'll see a list to select a video server. On any WebView browser you won't see the list.

I have no problems on WebView. Attaching screenshots using WebView test shell with WebView 67.0.3396.87 and 68.0.3440.33.

I see the console logs too, but I don't think they're indications WebView has broken the site (although they probably are legitimate mistakes in the site).

Carlos, do you still see the issues on your browser? If so, which browser? Can you try the attached APK?
SystemWebViewShell.apk
706 KB Download
Seems like that website is working fine again. I'll update this ticket in the future if I find new examples of this issue. 
Project Member

Comment 6 by sheriffbot@chromium.org, Jul 31

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: WontFix (was: Unconfirmed)
Ok, thanks! I'll close this as "working as intended" until we have another repro case (I'm CC'ed, so just update the ticket and I'll reopen it).

Sign in to add a comment