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

Issue 304033005: Should check whether document.settings() is available or not when updating GenericFontFamilySetting… (Closed)

Created:
6 years, 6 months ago by tasak
Modified:
6 years, 6 months ago
Visibility:
Public.

Description

Should check whether document.settings() is available or not when updating GenericFontFamilySettings. Looking at crash reports - WebCore::StyleEngine::updateGenericFontFamilySettings, document().settings() is probably null. In the case, we should not update GenericFontSettings. BUG=376525 TEST=It is very hard to reproduce crashes reported in crbug.com/376525. Will check # of crash reports to see whether the bug is really fixed or not. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175783

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Added ASSERT(document().isActive()) #

Patch Set 3 : Added FIXME comment #

Total comments: 8

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M Source/core/css/CSSFontSelector.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/dom/StyleEngine.cpp View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
tasak
Would you review this CL? And would you advise me to add test (unit test, ...
6 years, 6 months ago (2014-05-29 10:28:15 UTC) #1
dglazkov
https://codereview.chromium.org/304033005/diff/30001/Source/core/dom/StyleEngine.cpp File Source/core/dom/StyleEngine.cpp (right): https://codereview.chromium.org/304033005/diff/30001/Source/core/dom/StyleEngine.cpp#newcode534 Source/core/dom/StyleEngine.cpp:534: if (!document().isActive() || !document().settings()) Just checking: is this a ...
6 years, 6 months ago (2014-05-29 22:24:28 UTC) #2
tasak
Thank you for reviewing. https://codereview.chromium.org/304033005/diff/30001/Source/core/dom/StyleEngine.cpp File Source/core/dom/StyleEngine.cpp (right): https://codereview.chromium.org/304033005/diff/30001/Source/core/dom/StyleEngine.cpp#newcode534 Source/core/dom/StyleEngine.cpp:534: if (!document().isActive() || !document().settings()) On ...
6 years, 6 months ago (2014-05-30 02:12:05 UTC) #3
eseidel
6 years, 6 months ago (2014-05-30 02:13:54 UTC) #4
eseidel
You will always have settings() while the document is active. Active means it's in a ...
6 years, 6 months ago (2014-05-30 02:14:44 UTC) #5
eseidel
Then again, that begs the question as to why a non-active document would ever have ...
6 years, 6 months ago (2014-05-30 02:15:14 UTC) #6
esprehn
On 2014/05/30 02:15:14, eseidel wrote: > Then again, that begs the question as to why ...
6 years, 6 months ago (2014-05-30 02:17:30 UTC) #7
eseidel
Why would an import need a style engine? I think we need to explicitly document ...
6 years, 6 months ago (2014-05-30 02:18:36 UTC) #8
tasak
On 2014/05/30 02:15:14, eseidel wrote: > Then again, that begs the question as to why ...
6 years, 6 months ago (2014-05-30 03:19:37 UTC) #9
dglazkov
LGTM. I just had a thought: since Document members' return values expectations change through its ...
6 years, 6 months ago (2014-05-30 15:08:06 UTC) #10
dglazkov
TEST=WIP?
6 years, 6 months ago (2014-05-30 15:08:23 UTC) #11
dglazkov
Wait... Does this change even make sense? The only way you could get to the ...
6 years, 6 months ago (2014-05-30 15:21:42 UTC) #12
tasak
On 2014/05/30 15:21:42, dglazkov wrote: > Wait... Does this change even make sense? > > ...
6 years, 6 months ago (2014-06-02 03:54:21 UTC) #13
esprehn
It's really suspect that the document could be in the frame tree but not active, ...
6 years, 6 months ago (2014-06-04 18:54:28 UTC) #14
tasak
Thank you for reviewing. I'm still trying to reproduce crashes and to create a test. ...
6 years, 6 months ago (2014-06-05 12:05:03 UTC) #15
tasak
Can I land this patch? I added FIXME comment to ASSERT(document.isActive()) and updated the TEST ...
6 years, 6 months ago (2014-06-06 06:30:23 UTC) #16
dglazkov
On 2014/06/06 06:30:23, tasak wrote: > Can I land this patch? > > I added ...
6 years, 6 months ago (2014-06-06 14:39:16 UTC) #17
abarth-chromium
https://codereview.chromium.org/304033005/diff/70001/Source/core/dom/StyleEngine.cpp File Source/core/dom/StyleEngine.cpp (right): https://codereview.chromium.org/304033005/diff/70001/Source/core/dom/StyleEngine.cpp#newcode528 Source/core/dom/StyleEngine.cpp:528: // FIXME: in-active documents should not be in any ...
6 years, 6 months ago (2014-06-06 17:02:02 UTC) #18
abarth-chromium
https://codereview.chromium.org/304033005/diff/70001/Source/core/dom/StyleEngine.cpp File Source/core/dom/StyleEngine.cpp (right): https://codereview.chromium.org/304033005/diff/70001/Source/core/dom/StyleEngine.cpp#newcode536 Source/core/dom/StyleEngine.cpp:536: return; Why are you checking the Settings object here? ...
6 years, 6 months ago (2014-06-06 17:05:29 UTC) #19
tasak
Thank you for reviewing. I updated the comment (and removed some comment). However, I'm still ...
6 years, 6 months ago (2014-06-09 04:41:26 UTC) #20
abarth-chromium
LGTM It's a shame not to have a test for this CL...
6 years, 6 months ago (2014-06-09 05:01:29 UTC) #21
tasak
Thank you for reviewing.
6 years, 6 months ago (2014-06-09 09:07:10 UTC) #22
tasak
The CQ bit was checked by tasak@google.com
6 years, 6 months ago (2014-06-09 09:07:13 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tasak@google.com/304033005/110001
6 years, 6 months ago (2014-06-09 09:08:06 UTC) #24
commit-bot: I haz the power
6 years, 6 months ago (2014-06-09 09:16:12 UTC) #25
Message was sent while issue was closed.
Change committed as 175783

Powered by Google App Engine
This is Rietveld 408576698