Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requests from Chrome WebView no longer detected as Chrome #135

Closed
tednakamura opened this issue Sep 16, 2015 · 4 comments · Fixed by #142
Closed

Requests from Chrome WebView no longer detected as Chrome #135

tednakamura opened this issue Sep 16, 2015 · 4 comments · Fixed by #142
Assignees
Labels

Comments

@tednakamura
Copy link
Contributor

5c5fff7 changed the Chrome detection logic from:

else if (navigator.webkitGetUserMedia)

to:

else if (navigator.webkitGetUserMedia && !!window.chrome)

Unfortunately, window.chrome is not present for WebView. This is mentioned in this Chromium bug report, but I think it's view restricted, so here's the relevant text:

is it expected that !!window.chrome returns false for WebView?
Checked webview m39 and trunk. Nope, window.chrome is not there for webview.

I'm hoping that reverting just that part of 5c5fff7 is enough to make WebView requests be detected as Chrome again, but I'm not certain.

Instructions to build WebView, and in particular the WebView shell app, are available here.

@fippo
Copy link
Member

fippo commented Sep 30, 2015

#132 is about the same thing. I think there are some additional issues to consider like CEF and nw.
Not sure why we don't use the existence of window.RTCPeerConnection... will take a stab next week.

@KaptenJansson
Copy link
Collaborator

I believe #122 is also the same issue.

@alvestrand
Copy link
Contributor

WebView should be detected as WebView, not chrome, in my opinion. They build from the same base, but have some different properties. Should be quick to say "do like Chrome".

@fippo
Copy link
Member

fippo commented Oct 9, 2015

@alvestrand opera is detected as chrome. It behaves like chrome for peerconnection purposes but getusermedia is different (which influences how you display GUM hints).

But let's figure that out as a potential breaking change for 1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants