Summary: | Web Inspector: Occasional crash under WebCore::CSSStyleSheet::item called from Inspector | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> | ||||||
Component: | Web Inspector | Assignee: | Joseph Pecoraro <joepeck> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | commit-queue, hi, inspector-bugzilla-changes, joepeck, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Joseph Pecoraro
2019-02-14 14:00:13 PST
Created attachment 362059 [details]
[PATCH] Proposed Fix
Comment on attachment 362059 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=362059&action=review rs=me > Source/WebCore/ChangeLog:10 > + (WebCore::CSSStyleSheet::item): I think you could add more of the explanation from the bug comments in the ChangeLog. Right now, what you have here doesn't really explain "how" this "might" happen, and what you investigated to arrive at this point. > Source/WebCore/css/CSSStyleSheet.cpp:234 > + if (m_childRuleCSSOMWrappers.size() != ruleCount) NIT: I think it's "smarter" to only expand if we don't have enough room, not if we don't have exactly the right amount of room. if (m_childRuleCSSOMWrappers.size() < ruleCount) Comment on attachment 362059 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=362059&action=review >> Source/WebCore/css/CSSStyleSheet.cpp:234 >> + if (m_childRuleCSSOMWrappers.size() != ruleCount) > > NIT: I think it's "smarter" to only expand if we don't have enough room, not if we don't have exactly the right amount of room. > > if (m_childRuleCSSOMWrappers.size() < ruleCount) Fair enough. Created attachment 362066 [details]
[PATCH] For Landing
Comment on attachment 362066 [details] [PATCH] For Landing Clearing flags on attachment: 362066 Committed r241567: <https://trac.webkit.org/changeset/241567> |