|
|
Created:
4 years, 3 months ago by Kunihiko Sakamoto Modified:
4 years, 3 months ago Reviewers:
haraken CC:
chromium-reviews, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionAdd a missing null check for FontFaceSet::document()
FontFaceSet::document() gets Document from getExecutionContext(),
so the returned value should be checked after r419951.
BUG=610176, 649272
NOTRY=true
Committed: https://crrev.com/13205fef7fb4691d21338b4752c79f4e1c7001f3
Cr-Commit-Position: refs/heads/master@{#420591}
Patch Set 1 #
Messages
Total messages: 24 (12 generated)
Description was changed from ========== Add a missing null check for FontFaceSet::document() FontFaceSet::document() call getExecutionContext() inside it, so the returned value should be checked after r419951. BUG=610176,649272 ========== to ========== Add a missing null check for FontFaceSet::document() FontFaceSet::document() gets Document from getExecutionContext(), so the returned value should be checked after r419951. BUG=610176,649272 ==========
ksakamoto@chromium.org changed reviewers: + haraken@chromium.org
The r419951 was reverted (because of this crash). Do you think that adding the null check is a right fix? It seems that this is not the only place FontFaceSet is accessing getExecutionContext() without having the null check. Maybe do you want to add a Member<Document> to FontFaceSet to add a strong reference from FontFaceSet and Document?
On 2016/09/23 04:34:01, haraken wrote: > The r419951 was reverted (because of this crash). > > Do you think that adding the null check is a right fix? It seems that this is > not the only place FontFaceSet is accessing getExecutionContext() without having > the null check. > > Maybe do you want to add a Member<Document> to FontFaceSet to add a strong > reference from FontFaceSet and Document? Chatted offline. In other places where getExecutionContext() is used, it's already guaranteed that getExecutionContext() never returns null. So fireDoneEventIfPossible() is the only place that needs the null check. LGTM.
The CQ bit was checked by ksakamoto@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by ksakamoto@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by haraken@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
Description was changed from ========== Add a missing null check for FontFaceSet::document() FontFaceSet::document() gets Document from getExecutionContext(), so the returned value should be checked after r419951. BUG=610176,649272 ========== to ========== Add a missing null check for FontFaceSet::document() FontFaceSet::document() gets Document from getExecutionContext(), so the returned value should be checked after r419951. BUG=610176,649272 NOTRY=true ==========
The CQ bit was checked by haraken@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Add a missing null check for FontFaceSet::document() FontFaceSet::document() gets Document from getExecutionContext(), so the returned value should be checked after r419951. BUG=610176,649272 NOTRY=true ========== to ========== Add a missing null check for FontFaceSet::document() FontFaceSet::document() gets Document from getExecutionContext(), so the returned value should be checked after r419951. BUG=610176,649272 NOTRY=true ==========
Message was sent while issue was closed.
Committed patchset #1 (id:1)
Message was sent while issue was closed.
Description was changed from ========== Add a missing null check for FontFaceSet::document() FontFaceSet::document() gets Document from getExecutionContext(), so the returned value should be checked after r419951. BUG=610176,649272 NOTRY=true ========== to ========== Add a missing null check for FontFaceSet::document() FontFaceSet::document() gets Document from getExecutionContext(), so the returned value should be checked after r419951. BUG=610176,649272 NOTRY=true Committed: https://crrev.com/13205fef7fb4691d21338b4752c79f4e1c7001f3 Cr-Commit-Position: refs/heads/master@{#420591} ==========
Message was sent while issue was closed.
Patchset 1 (id:??) landed as https://crrev.com/13205fef7fb4691d21338b4752c79f4e1c7001f3 Cr-Commit-Position: refs/heads/master@{#420591} |