youtube.com doesn't recognize B2G UA as mobile
Categories
(Web Compatibility :: Mobile, defect)
Tracking
(Not tracked)
People
(Reporter: lmandel, Unassigned)
References
()
Details
(Whiteboard: [uaoverride] [country-all] [serversniff])
Reporter | ||
Updated•12 years ago
|
Comment 1•12 years ago
|
||
Comment 2•12 years ago
|
||
Reporter | ||
Comment 3•12 years ago
|
||
Comment 4•12 years ago
|
||
Reporter | ||
Comment 5•12 years ago
|
||
Updated•12 years ago
|
Updated•11 years ago
|
Reporter | ||
Comment 7•11 years ago
|
||
Reporter | ||
Updated•11 years ago
|
Comment 8•11 years ago
|
||
Reporter | ||
Comment 9•11 years ago
|
||
Updated•11 years ago
|
Updated•10 years ago
|
Assignee | ||
Updated•6 years ago
|
Comment 10•4 years ago
|
||
Where to modif the userAgent from source code? Could someone mention the path to the file in source code? I want to add "Android" string along with userAgent. Someone please help
Comment 11•4 years ago
|
||
(In reply to hari.vinu.4 from comment #10)
Where to modif the userAgent from source code? Could someone mention the path to the file in source code? I want to add "Android" string along with userAgent. Someone please help
I have nothing to do with this bug. However to change UA I suggest you the addon user-agent switcher. See ya!
Comment 12•4 years ago
|
||
(In reply to Rik from comment #11)
(In reply to hari.vinu.4 from comment #10)
Where to modif the userAgent from source code? Could someone mention the path to the file in source code? I want to add "Android" string along with userAgent. Someone please help
I have nothing to do with this bug. However to change UA I suggest you the addon user-agent switcher. See ya!
Hi Rik, Thanks for your reply. But currently Im running the browser on an emulator. Addon addition is difficult there. I thought someone could guide me where to change this in source code(some file where I can modify userAgent string). I just tagged people who have replied to this post before:)
Comment 13•4 years ago
|
||
https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsHttpHandler.cpp#966 is where that happens.
You can also just set general.useragent.override
if you don't want to have to re-build Gecko https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsHttpHandler.cpp#884
I forget where the mobile prefs file is in B2G, but if you want to take that approach you can do something like pref("general.useragent.override", "cool-new-UA-string");
https://bugzilla.mozilla.org/show_bug.cgi?id=820699#c2 might be useful for that approach, but I haven't tried it.
Description
•