Comment on attachment 358858[details]
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=358858&action=review
r=me, earlier patch comments applying.
> Source/WebCore/inspector/InspectorAuditAccessibilityUtilities.cpp:109
> + if (controlledElement)
Nit: Is this if check necessary, would elementsFromAttribute return a null element?
> Source/WebCore/inspector/InspectorAuditAccessibilityUtilities.cpp:131
> + if (flowedElement)
Nit: Is this if check necessary, would elementsFromAttribute return a null element?
> Source/WebCore/inspector/InspectorAuditAccessibilityUtilities.cpp:148
> + }
> + return nullptr;
Style: Sometimes you don't have a newline before the final return and sometimes you do. Would be nice to be consistent. I'd vote for always having a newline after a closing brace before a final return.
> Source/WebCore/inspector/InspectorAuditAccessibilityUtilities.cpp:164
> + if (ownedElement)
Nit: Is this if check necessary, would elementsFromAttribute return a null element?
Comment on attachment 358858[details]
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=358858&action=review>> Source/WebCore/inspector/InspectorAuditAccessibilityUtilities.cpp:109
>> + if (controlledElement)
>
> Nit: Is this if check necessary, would elementsFromAttribute return a null element?
It doesn't look like it, as `elementsFromAttribute` does its own check, but I think this isn't a bad thing to have.
(In reply to Devin Rousso from comment #7)
> Comment on attachment 358858[details]
> Patch
>
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=358858&action=review
>
> >> Source/WebCore/inspector/InspectorAuditAccessibilityUtilities.cpp:109
> >> + if (controlledElement)
> >
> > Nit: Is this if check necessary, would elementsFromAttribute return a null element?
>
> It doesn't look like it, as `elementsFromAttribute` does its own check, but
> I think this isn't a bad thing to have.
We should never have to write code like:
if (auto* x : list) {
if (x)
...;
}
Lets drop them. The originating code in DOMAgent doesn't have these checks.
Created attachment 359182[details]
Archive of layout-test-results from ews100 for mac-highsierra
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100 Port: mac-highsierra Platform: Mac OS X 10.13.6
Created attachment 359183[details]
Archive of layout-test-results from ews105 for mac-highsierra-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105 Port: mac-highsierra-wk2 Platform: Mac OS X 10.13.6
Created attachment 359188[details]
Archive of layout-test-results from ews112 for mac-highsierra
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews112 Port: mac-highsierra Platform: Mac OS X 10.13.6
Created attachment 359237[details]
Archive of layout-test-results from ews100 for mac-highsierra
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100 Port: mac-highsierra Platform: Mac OS X 10.13.6
Created attachment 359240[details]
Archive of layout-test-results from ews107 for mac-highsierra-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107 Port: mac-highsierra-wk2 Platform: Mac OS X 10.13.6
Created attachment 359244[details]
Archive of layout-test-results from ews114 for mac-highsierra
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews114 Port: mac-highsierra Platform: Mac OS X 10.13.6
Created attachment 359567[details]
Archive of layout-test-results from ews103 for mac-highsierra
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103 Port: mac-highsierra Platform: Mac OS X 10.13.6
Created attachment 359572[details]
Archive of layout-test-results from ews114 for mac-highsierra
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews114 Port: mac-highsierra Platform: Mac OS X 10.13.6
Created attachment 359581[details]
Archive of layout-test-results from ews107 for mac-highsierra-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107 Port: mac-highsierra-wk2 Platform: Mac OS X 10.13.6
Created attachment 359601[details]
Archive of layout-test-results from ews103 for mac-highsierra
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103 Port: mac-highsierra Platform: Mac OS X 10.13.6
Created attachment 359602[details]
Archive of layout-test-results from ews105 for mac-highsierra-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105 Port: mac-highsierra-wk2 Platform: Mac OS X 10.13.6
Created attachment 359604[details]
Archive of layout-test-results from ews117 for mac-highsierra
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews117 Port: mac-highsierra Platform: Mac OS X 10.13.6
2019-01-07 19:09 PST, Devin Rousso
2019-01-07 19:54 PST, Devin Rousso
2019-01-10 16:25 PST, Devin Rousso
2019-01-10 18:55 PST, Devin Rousso
2019-01-15 10:16 PST, Devin Rousso
2019-01-15 10:19 PST, Devin Rousso
2019-01-15 11:21 PST, EWS Watchlist
2019-01-15 11:33 PST, EWS Watchlist
2019-01-15 11:57 PST, EWS Watchlist
2019-01-15 17:18 PST, Devin Rousso
2019-01-15 18:12 PST, EWS Watchlist
2019-01-15 18:45 PST, EWS Watchlist
2019-01-15 19:09 PST, EWS Watchlist
2019-01-18 17:19 PST, Devin Rousso
2019-01-18 18:02 PST, EWS Watchlist
2019-01-18 18:44 PST, EWS Watchlist
2019-01-18 19:41 PST, EWS Watchlist
2019-01-19 00:49 PST, Devin Rousso
2019-01-19 01:52 PST, EWS Watchlist
2019-01-19 02:05 PST, EWS Watchlist
2019-01-19 05:36 PST, EWS Watchlist
2019-01-22 10:37 PST, Devin Rousso