Bug 133493 - Fix some corner cases of :hover and :active in quirks mode
Summary: Fix some corner cases of :hover and :active in quirks mode
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Benjamin Poulain
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-03 16:40 PDT by Benjamin Poulain
Modified: 2014-06-04 00:26 PDT (History)
5 users (show)

See Also:


Attachments
Patch (24.16 KB, patch)
2014-06-03 16:50 PDT, Benjamin Poulain
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2 (500.43 KB, application/zip)
2014-06-03 17:55 PDT, Build Bot
no flags Details
Patch for landing (23.30 KB, patch)
2014-06-03 23:09 PDT, Benjamin Poulain
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Poulain 2014-06-03 16:40:14 PDT
Fix some corner cases of :hover and :active in quirks mode
Comment 1 Benjamin Poulain 2014-06-03 16:50:45 PDT
Created attachment 232450 [details]
Patch
Comment 2 Build Bot 2014-06-03 17:55:06 PDT
Comment on attachment 232450 [details]
Patch

Attachment 232450 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/6196910264156160

New failing tests:
media/W3C/video/src/src_reflects_attribute_not_source_elements.html
Comment 3 Build Bot 2014-06-03 17:55:08 PDT
Created attachment 232454 [details]
Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-11  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 4 Andreas Kling 2014-06-03 18:44:19 PDT
Comment on attachment 232450 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=232450&action=review

r=me.

The test failure seems totally unrelated.

> Source/WebCore/ChangeLog:17
> +        This patch moves the detection quirks mode exception code from the code generator to the Fragment generator.

"detection quirks mode exception code" wut
Comment 5 Yusuke Suzuki 2014-06-03 19:26:10 PDT
Comment on attachment 232450 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=232450&action=review

The patch looks great to me!

> Source/WebCore/cssjit/SelectorCompiler.cpp:536
> +            fragment.onlyMatchesLinksInQuirksMode = false;

Is it unnecessary to check `tagName == anyQname()`?
Comment 6 Benjamin Poulain 2014-06-03 22:58:16 PDT
(In reply to comment #5)
> (From update of attachment 232450 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=232450&action=review
> 
> The patch looks great to me!
> 
> > Source/WebCore/cssjit/SelectorCompiler.cpp:536
> > +            fragment.onlyMatchesLinksInQuirksMode = false;
> 
> Is it unnecessary to check `tagName == anyQname()`?

You are right, I'll add this check when landing.
Comment 7 Benjamin Poulain 2014-06-03 23:09:43 PDT
Created attachment 232466 [details]
Patch for landing
Comment 8 Benjamin Poulain 2014-06-04 00:26:13 PDT
Committed r169585: <http://trac.webkit.org/changeset/169585>