RESOLVED DUPLICATE of bug 143262 143266
Avoid applying invalid media attribute
https://bugs.webkit.org/show_bug.cgi?id=143266
Summary Avoid applying invalid media attribute
Yoav Weiss
Reported 2015-03-31 09:30:36 PDT
Avoid applying invalid media attribute
Attachments
Patch (3.84 KB, patch)
2015-03-31 09:37 PDT, Yoav Weiss
no flags
Yoav Weiss
Comment 1 2015-03-31 09:37:31 PDT
Yoav Weiss
Comment 2 2015-03-31 09:39:09 PDT
When <link rel=stylesheet> with an invalid media attribute was part of the HTML, I saw that it resulted in a non-empty MediaQuerySet, containing a single query with no expressions. (which didn't have its m_ignored flag on) Therefore I added an extra check that makes sure that the queries handled by MediaQueryEvaluator::eval have expressions, and if not, they are treated as ignored.
Yoav Weiss
Comment 3 2015-03-31 09:51:31 PDT
I accidentally filed that as a separate issue, when I should have added a patch on the original bug. *** This bug has been marked as a duplicate of bug 143262 ***
Note You need to log in before you can comment on or make changes to this bug.