WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Yoav Weiss
Comment 1
2015-03-31 09:37:31 PDT
Created
attachment 249825
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug