focus-android icon indicating copy to clipboard operation
focus-android copied to clipboard

[Klar] What is the string of User Agent?

Open quakenet2 opened this issue 9 years ago • 9 comments

I need to know Klar's User Agent string. I could do this myself but unfortunately Klar didn't provide proxy support yet, so I'm asking here.

Please consider writing a wiki like this: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox

So, what is Klar's UserAgent? (I don't care Focus)

  1. https://f-droid.org/packages/org.mozilla.klar/ <---- this one's v1.1
  2. Current Klar's UA

quakenet2 avatar Aug 21 '17 00:08 quakenet2

Also can anyone show the result of these? I need those return result.

!!window.opera !!window.chrome navigator.doNotTrack

expecting: 1 --- never happen 2 --- happen or not?? 3 --- should happen

(again, I would do this myself if Klar support proxy)

quakenet2 avatar Aug 21 '17 01:08 quakenet2

Here is a sample user agent (note that it may vary between devices)

Mozilla/5.0 (Linux; Android 7.0) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Klar/1.2.1 Chrome/51.0.2704.90 Mobile Safari/537.36

window.opera and window.chrome is undefined, navigator.doNotTrack is null (for some reason)

sugar700 avatar Aug 23 '17 13:08 sugar700

For this bug, please create a page on our Wiki describing the User Agent and its meaning, like the link in the first comment. Please explain if there are any differences between Focus and Klar and include a "Last updated on , with " at the bottom of the page.

mcomella avatar Nov 06 '17 19:11 mcomella

navigator.doNotTrack is null (for some reason)

Do Not Track is officially sent as a header. According to MDN, navigator.doNotTrack is an experimental JS API for this info and has an unknown implementation status on Android mobile. Since we're using WebView, we're relying on its behavior.

mcomella avatar Nov 06 '17 19:11 mcomella

For this bug, please create a page on our Wiki describing the User Agent and its meaning, like the link in the first comment. Please explain if there are any differences between Focus and Klar and include a "Last updated on , with " at the bottom of the page.

I'm happy to work on this, probably just including a section to the Firefox UA string reference page.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox

miketaylr avatar Sep 10 '18 21:09 miketaylr

I've updated the docs: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox#Klar_for_Android

This can probably be closed now. cc @mcomella

miketaylr avatar Sep 14 '18 21:09 miketaylr

@ekager Can you see if this can be closed?

mcomella avatar Sep 17 '18 17:09 mcomella

This can be closed thanks @miketaylr ! Just a note that it's actually not until 7.0 that Klar has been GV if we want to get pedantic. :)

ekager avatar Oct 02 '18 13:10 ekager

On Tue, Oct 2, 2018 at 6:59 AM Emily Kager [email protected] wrote:

This can be closed thanks @miketaylr https://github.com/miketaylr ! Just a note that it's actually not until 7.0 that Klar has been GV if we want to get pedantic. :)

fwiw, I've been thinking we should move our docs in-tree so that they're versioned by release, which would solve this problem. This is an annoying problem for me, especially for telemetry! :P

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mozilla-mobile/focus-android/issues/1178#issuecomment-426284125, or mute the thread https://github.com/notifications/unsubscribe-auth/AAuWTBSBIAtR-H_raXhq0DpP-wNjEYl8ks5ug3E-gaJpZM4O8x8- .

mcomella avatar Oct 02 '18 16:10 mcomella