Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(660)

Issue 2459843002: Copy m_namespaceRules when copying StyleSheetContents to avoid crashing. (Closed)

Created:
4 years, 1 month ago by meade_UTC10
Modified:
4 years, 1 month ago
Reviewers:
Timothy Loh, rune
CC:
chromium-reviews, blink-reviews-style_chromium.org, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Copy m_namespaceRules when copying StyleSheetContents to avoid crashing. BUG=657457 Committed: https://crrev.com/ca04090e0b051b730f9dc8823f0bba151ebb5bcb Cr-Commit-Position: refs/heads/master@{#428946}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove unnecessary test code, use testharness #

Patch Set 3 : Tidy layout test code #

Patch Set 4 : Rebase #

Patch Set 5 : Make the test more detailed #

Total comments: 2

Patch Set 6 : Rename test, move comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/fast/css/access-namespace-rule-after-delete-rule.html View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/StyleRule.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/StyleRuleNamespace.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/StyleSheetContents.cpp View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (17 generated)
meade_UTC10
4 years, 1 month ago (2016-10-28 04:31:51 UTC) #2
rune
lgtm if you remove the stray test code and fix the test issues. https://codereview.chromium.org/2459843002/diff/1/third_party/WebKit/LayoutTests/fast/css/access-namespace-rule-after-delete-rule-crash.html File ...
4 years, 1 month ago (2016-10-28 07:41:16 UTC) #4
Timothy Loh
We should be able to test this more thoroughly than seeing that it doesn't crash ...
4 years, 1 month ago (2016-10-31 01:05:00 UTC) #5
meade_UTC10
On 2016/10/31 01:05:00, Timothy Loh wrote: > We should be able to test this more ...
4 years, 1 month ago (2016-10-31 01:21:42 UTC) #6
meade_UTC10
https://codereview.chromium.org/2459843002/diff/1/third_party/WebKit/LayoutTests/fast/css/access-namespace-rule-after-delete-rule-crash.html File third_party/WebKit/LayoutTests/fast/css/access-namespace-rule-after-delete-rule-crash.html (right): https://codereview.chromium.org/2459843002/diff/1/third_party/WebKit/LayoutTests/fast/css/access-namespace-rule-after-delete-rule-crash.html#newcode1 third_party/WebKit/LayoutTests/fast/css/access-namespace-rule-after-delete-rule-crash.html:1: <style>@namespace a "a"; div { }</style> On 2016/10/28 07:41:16, ...
4 years, 1 month ago (2016-10-31 01:32:53 UTC) #7
meade_UTC10
@Tim: PTAL
4 years, 1 month ago (2016-11-01 03:23:51 UTC) #16
Timothy Loh
lgtm, maybe -crash not needed in the test name any more? https://codereview.chromium.org/2459843002/diff/80001/third_party/WebKit/Source/core/css/StyleSheetContents.cpp File third_party/WebKit/Source/core/css/StyleSheetContents.cpp (right): ...
4 years, 1 month ago (2016-11-01 03:30:35 UTC) #19
meade_UTC10
Done. https://codereview.chromium.org/2459843002/diff/80001/third_party/WebKit/Source/core/css/StyleSheetContents.cpp File third_party/WebKit/Source/core/css/StyleSheetContents.cpp (right): https://codereview.chromium.org/2459843002/diff/80001/third_party/WebKit/Source/core/css/StyleSheetContents.cpp#newcode95 third_party/WebKit/Source/core/css/StyleSheetContents.cpp:95: // LazyParseCSS: Copying child rules is a strict ...
4 years, 1 month ago (2016-11-01 04:54:12 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2459843002/100001
4 years, 1 month ago (2016-11-01 04:54:57 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-01 06:18:39 UTC) #26
commit-bot: I haz the power
4 years, 1 month ago (2016-11-01 06:22:58 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ca04090e0b051b730f9dc8823f0bba151ebb5bcb
Cr-Commit-Position: refs/heads/master@{#428946}

Powered by Google App Engine
This is Rietveld 408576698