| Summary: | http/tests/w3c/dom/nodes/Element-matches.html is flaky | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||||
| Component: | DOM | Assignee: | Chris Dumez <cdumez> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | ap, bdakin, beidson, benjamin, commit-queue, japhet, kling, koivisto, rniwa, simon.fraser, thorton, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| See Also: |
https://bugs.webkit.org/show_bug.cgi?id=148638 https://bugs.webkit.org/show_bug.cgi?id=148690 |
||||||||||
| Bug Depends on: | 148670 | ||||||||||
| Bug Blocks: | 148546 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Chris Dumez
2015-08-29 23:46:27 PDT
I haven't marked the test as flaky yet. For now, I have merely rebaselined it in <https://trac.webkit.org/r189158>. (In reply to comment #1) > I haven't marked the test as flaky yet. For now, I have merely rebaselined > it in <https://trac.webkit.org/r189158>. Actually, I will have to mark it as flaky because it seems bots give different results: https://build.webkit.org/results/Apple%20Mavericks%20Debug%20WK2%20(Tests)/r189158%20(14158)/http/tests/w3c/dom/nodes/Element-matches-diff.txt (In reply to comment #2) > (In reply to comment #1) > > I haven't marked the test as flaky yet. For now, I have merely rebaselined > > it in <https://trac.webkit.org/r189158>. > > Actually, I will have to mark it as flaky because it seems bots give > different results: > https://build.webkit.org/results/Apple%20Mavericks%20Debug%20WK2%20(Tests)/ > r189158%20(14158)/http/tests/w3c/dom/nodes/Element-matches-diff.txt Marked as flaky in <http://trac.webkit.org/changeset/189159>. FrameView::scrollToAnchor() also has logic to delay the scroll until the stylesheets are loaded. Which delays the cssTarget() update on the Document as well:
bool FrameView::scrollToAnchor(const String& name)
{
ASSERT(frame().document());
auto& document = *frame().document();
if (!document.haveStylesheetsLoaded()) {
document.setGotoAnchorNeededAfterStylesheetsLoad(true);
return false;
}
document.setGotoAnchorNeededAfterStylesheetsLoad(false);
Element* anchorElement = document.findAnchor(name);
// Setting to null will clear the current target.
document.setCSSTarget(anchorElement);
*** Bug 148638 has been marked as a duplicate of this bug. *** Created attachment 260316 [details]
Patch
Comment on attachment 260316 [details]
Patch
Nice catch!
Comment on attachment 260316 [details] Patch Clearing flags on attachment: 260316 Committed r189198: <http://trac.webkit.org/changeset/189198> All reviewed patches have been landed. Closing bug. This broke http/tests/navigation/anchor-frames-same-origin.html on WebKit1: -PASS document.body.scrollTop > 0 is true +FAIL document.body.scrollTop > 0 should be true. Was false. PASS document.body.scrollLeft == 0 is true PASS successfullyParsed is true (In reply to comment #10) > This broke http/tests/navigation/anchor-frames-same-origin.html on WebKit1: > > -PASS document.body.scrollTop > 0 is true > +FAIL document.body.scrollTop > 0 should be true. Was false. > PASS document.body.scrollLeft == 0 is true > PASS successfullyParsed is true Hmm, Interesting that the EWS did not see this. I am looking now. Re-opened since this is blocked by bug 148670 Created attachment 260407 [details]
Patch
Created attachment 260409 [details]
Patch
Comment on attachment 260409 [details] Patch Clearing flags on attachment: 260409 Committed r189252: <http://trac.webkit.org/changeset/189252> All reviewed patches have been landed. Closing bug. |