RESOLVED WONTFIX 162548
[GTK] Require implementation of cpuDescriptionForUAString
https://bugs.webkit.org/show_bug.cgi?id=162548
Summary [GTK] Require implementation of cpuDescriptionForUAString
Michael Catanzaro
Reported 2016-09-26 01:10:29 PDT
Require implementation of cpuDescriptionForUAString. Less-popular architectures would probably prefer to get a nice build error here than to wind up with a broken user agent.
Attachments
Patch (1.41 KB, patch)
2016-09-26 01:12 PDT, Michael Catanzaro
no flags
Michael Catanzaro
Comment 1 2016-09-26 01:12:18 PDT
Carlos Garcia Campos
Comment 2 2016-09-26 01:15:37 PDT
Is this ok for distros like debian that build on different platforms?
Carlos Alberto Lopez Perez
Comment 3 2016-09-26 04:45:48 PDT
(In reply to comment #0) > Require implementation of cpuDescriptionForUAString. Less-popular > architectures would probably prefer to get a nice build error here than to > wind up with a broken user agent. Why is having the CPU architecture relevant for a webpage to work or not? Why we don't just return "Intel" instead of "unknown" or causing an unneeded build failure?
Michael Catanzaro
Comment 4 2016-09-26 11:32:23 PDT
(In reply to comment #2) > Is this ok for distros like debian that build on different platforms? I suggest we simply accept patches to add more conditionals here from people working on alternative architectures. If we know how to test for them (I don't) then we could do that now instead of waiting for patches to roll in. (In reply to comment #3) > Why we don't just return "Intel" instead of "unknown" or causing an unneeded > build failure? I guess we could, but is it really so hard to implement one function when using WebKit on a brand new architecture? This seems quite easy relative to other arch-enablement that might be required.
Carlos Alberto Lopez Perez
Comment 5 2016-09-27 03:15:43 PDT
(In reply to comment #4) > (In reply to comment #2) > > Is this ok for distros like debian that build on different platforms? > > I suggest we simply accept patches to add more conditionals here from people > working on alternative architectures. If we know how to test for them (I > don't) then we could do that now instead of waiting for patches to roll in. > > (In reply to comment #3) > > Why we don't just return "Intel" instead of "unknown" or causing an unneeded > > build failure? > > I guess we could, but is it really so hard to implement one function when > using WebKit on a brand new architecture? This seems quite easy relative to > other arch-enablement that might be required. The thing is that returning "RISC-V" or "MIPS" is as bad as returning "Unknown". If the goal is to have sites working on this architectures as best as possible we should just return "Intel" always, because is what sites expect to find. I don't think a site can have architecture-specific html/css/javascript. So just return Intel instead of Unknown. UA parsing is broken, so we can't do much about this than returning the more common possible UA string.
Michael Catanzaro
Comment 6 2016-09-27 05:10:40 PDT
Yeah OK. I wonder if we should do this for ARM too. In Endless we've found that various sites send mobile versions if ARM is in the UA, which is terrible.
Carlos Alberto Lopez Perez
Comment 7 2016-09-27 07:08:55 PDT
(In reply to comment #6) > Yeah OK. > > I wonder if we should do this for ARM too. In Endless we've found that > various sites send mobile versions if ARM is in the UA, which is terrible. Yes, i think so. Returning "Intel" always without giving further details about the machine CPU architecture looks like a good idea to me.
Zan Dobersek
Comment 8 2016-09-28 03:36:29 PDT
(In reply to comment #7) > (In reply to comment #6) > > Yeah OK. > > > > I wonder if we should do this for ARM too. In Endless we've found that > > various sites send mobile versions if ARM is in the UA, which is terrible. > > Yes, i think so. Returning "Intel" always without giving further details > about the machine CPU architecture looks like a good idea to me. IMO this also helps with improving fingerprinting avoidance.
Note You need to log in before you can comment on or make changes to this bug.