New issue
Advanced search Search tips

Issue 840014 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 789769
Owner: ----
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Service Worker inside webview does not respect custom Webview UserAgent

Reported by aditya.p...@gmail.com, May 4 2018

Issue description

Steps to reproduce the problem:
1. Create an app with custom webview url(webSettings.setUserAgentString(customUserAgent);

2. Open a web app that registers service worker

3. Chrome://inspect webview Service Worker

4. Observer  navigator.userAgent to be different from the custom webview useragent set while configuring in Android.

What is the expected behavior?
navigator.userAgent inside Service Worker should be same as custom webview useragent. 

What went wrong?
Service Worker has default Chrome User Agent.

Did this work before? No 

Chrome version: 66.0.3359.139  Channel: stable
OS Version: 8.1.0
Flash Version:
 

Comment 1 by mattm@chromium.org, May 4 2018

Components: Blink>ServiceWorker Mobile>WebView
Labels: Needs-triage-Mobile
Cc: boliu@chromium.org pnangunoori@chromium.org
Labels: WV-Triaged Needs-Feedback
aditya.punjani@  -- Thanks for reporting this issue. Could you please share the sample application to reproduce this issue to know the actual and expected behavior. Also, request you to provide the screen cast of the issue and share your device details. This would help us in reproducing and triaging the issue further.

boliu@ -- Could you also take a look into this issue. Can the issue be considered as feature request.

Thanks!
Mergedinto: 789769
Status: Duplicate (was: Unconfirmed)
This is the same as issue 789769

Sign in to add a comment