[Webkit-unassigned] [Bug 144640] Handle meta viewport in HTMLPreloadScanner

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 11 01:59:00 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=144640

--- Comment #9 from Yoav Weiss <yoav at yoav.ws> ---
When asking around in the WebKit contributor meeting, it was suggested that unit testing is possible to do in such a way. Now that I'm aware of /Tools/TestWebKitAPI/Tests/WebCore it does seems significantly better. I'll move the unit test there.

I tried to write tests that do show the end-user effect using LayoutTests, but couldn't find a way to turn on <meta name=viewport> awareness in tests, since it is a no-op on desktop.

If there's a way to that in layout tests, I'll be happy to add them as well.

And finally, the patch's goal is to avoid the preloader loading the wrong resource when the HTML is of the form:
```
<html><head>
<script src="something.js">// This is a blocking script, so the preloader kicks in</script>
<meta name=viewport content="SOME VIEWPORT CHANGING VALUE">
<body>
<img srcset="400px.jpg 400w, 800px.jpg 800w">
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150511/56807a61/attachment.html>


More information about the webkit-unassigned mailing list