[webkit-dev] Code cleaning: LEGACY_VIEWPORT_ADAPTION
hugo.lima at openbossa.org
Wed Oct 30 07:44:05 PDT 2013
On Tue, Oct 29, 2013 at 9:00 PM, Benjamin Poulain <benjamin at webkit.org> wrote:
> Hi WebKit,
> I plan to remove the code guarded by LEGACY_VIEWPORT_ADAPTION and the flag
I was reading the original bug report to find a list of websites
targeting mobile devices that don't render well if this feature is
disabled, the original list includes:
All this if you do not use some apple-like user agent, I did test them
again today to check the current status and just m.google.com is still
using those legacy DTD causing WebKit to render the page into a 980px
canvas where it was designed to be rendered into a 320px canvas. There
may be other (old) sites not rendering well but at least at the time
of the bug report this small list with very popular websites was
enough to add this feature to a product (N9 phone) then to WebCore.
I also found that besides Blackberry, Chromium turned on this flag
last year, but I didn't check if it still enabled on blink.
Support legacy stuff is a pain and just inject undesirable code in the
codebase, but I would like to know if there are other options rather
than just removing the feature and let few, but some important,
website not working?
> The reason is: this code is mostly incorrect and leads to valid viewport
> configurations only with the most trival cases.
> It seems to be only enabled by Nix and Blackberry but I can't tell if it is
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
More information about the webkit-dev