| Summary: | REGRESSION (r251110): Crash on https://developer.apple.com/tutorials/swiftui/creating-and-combining-views | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> | ||||
| Component: | Forms | Assignee: | Ryosuke Niwa <rniwa> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | cdumez, dbates, esprehn+autocc, ews-watchlist, ggaren, kangil.han, koivisto, wenson_hsieh, zalan | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=209585 | ||||||
| Attachments: |
|
||||||
|
Description
Ryosuke Niwa
2020-01-15 21:56:55 PST
Created attachment 387895 [details]
Fixes the bug
Comment on attachment 387895 [details]
Fixes the bug
r=me
Comment on attachment 387895 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=387895&action=review > LayoutTests/fast/forms/match-pseudo-on-radio-before-finalizing-tree-insertion-crash.html:18 > +script.textContent = 'document.getElementById("result").textContent = getComputedStyle(input).color ? "PASS" : "PASS"'; Nit - this could just be document.getElementById("result").textContent = "PASS"; Comment on attachment 387895 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=387895&action=review >> LayoutTests/fast/forms/match-pseudo-on-radio-before-finalizing-tree-insertion-crash.html:18 >> +script.textContent = 'document.getElementById("result").textContent = getComputedStyle(input).color ? "PASS" : "PASS"'; > > Nit - this could just be document.getElementById("result").textContent = "PASS"; Ah, no, no, getComputedStyle(input).color is what triggers the crash. Without it, the test won't do anything useful. Perhaps I should split into a separate line to make it clear. Comment on attachment 387895 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=387895&action=review >>> LayoutTests/fast/forms/match-pseudo-on-radio-before-finalizing-tree-insertion-crash.html:18 >>> +script.textContent = 'document.getElementById("result").textContent = getComputedStyle(input).color ? "PASS" : "PASS"'; >> >> Nit - this could just be document.getElementById("result").textContent = "PASS"; > > Ah, no, no, getComputedStyle(input).color is what triggers the crash. > Without it, the test won't do anything useful. > Perhaps I should split into a separate line to make it clear. Oh, I see! Yep, I think that splitting it out clarifies things. Comment on attachment 387895 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=387895&action=review > LayoutTests/fast/forms/match-pseudo-on-radio-before-finalizing-tree-insertion-crash.html:26 > + Oh weird, this doesn't have the second input which makes this test hang in the trunk. Will fix that before landing it. Committed r254722: <https://trac.webkit.org/changeset/254722> |