| Summary: | Reproducible ASSERT_NOT_REACHED in SelectorChecker::checkOne on my.yahoo.com | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Tim Horton <thorton> | ||||
| Component: | CSS | Assignee: | Alex Christensen <achristensen> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | achristensen, benjamin, commit-queue, simon.fraser, thorton | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Tim Horton
2014-07-21 23:16:22 PDT
(lldb) p selector->pseudoClassType() (WebCore::CSSSelector::PseudoClassType) $0 = PseudoClassWindowInactive Which does indeed seem to be missing from that switch. I'll look into this. It is quite upsetting that this was not caught with a test :( Created attachment 235327 [details]
Patch
Comment on attachment 235327 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=235327&action=review > Source/WebCore/css/SelectorChecker.cpp:-792 > - default: A++ Comment on attachment 235327 [details] Patch Clearing flags on attachment: 235327 Committed r171378: <http://trac.webkit.org/changeset/171378> All reviewed patches have been landed. Closing bug. Comment on attachment 235327 [details]
Patch
I am only catching up with my mails now. This is amazing. The lack of tests for something this simple baffles me.
Can you please add PseudoClassWindowInactive as an unoptimizedPseudoClass to the CSS JIT?
In SelectorChecker, you should remove the branch "if (context.hasSelectionPseudo) -> check for :window-inactive".
Can you please also add a test for style resolution? It is common to find bugs that only appear in one of style-resolution/querySelector.
(In reply to comment #7) > (From update of attachment 235327 [details]) > I am only catching up with my mails now. This is amazing. The lack of tests for something this simple baffles me. > > Can you please add PseudoClassWindowInactive as an unoptimizedPseudoClass to the CSS JIT? https://bugs.webkit.org/show_bug.cgi?id=135200 > > In SelectorChecker, you should remove the branch "if (context.hasSelectionPseudo) -> check for :window-inactive". > > Can you please also add a test for style resolution? It is common to find bugs that only appear in one of style-resolution/querySelector. There already was a test for style resolution, but not for querySelector, which is why this bug existed. |