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

Issue 2601543002: Fix crashes when FileWriter methods are called after context is destroyed. (Closed)

Created:
4 years ago by Marijn Kruisselbrink
Modified:
3 years, 12 months ago
Reviewers:
haraken, kinuko
CC:
blink-reviews, chromium-reviews, kinuko+fileapi, nhiroki, tzik
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crashes when FileWriter methods are called after context is destroyed. In r439956 FileWriter was changed to reset writer() when the context is destroyed, but that meant that now calling any of its methods after the context was destroyed would crash. This fixes that by making sure the context is still alive when any of its javascript methods are called. BUG=676407 BUG=656453 Committed: https://crrev.com/2726ac3437f9524bc027021f672bb69a343cc69a Cr-Commit-Position: refs/heads/master@{#440465}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M third_party/WebKit/Source/modules/filesystem/FileWriter.cpp View 4 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
Marijn Kruisselbrink
4 years ago (2016-12-22 17:57:34 UTC) #4
haraken
LGTM
4 years ago (2016-12-22 18:01:39 UTC) #5
haraken
Or you can check if(!m_writer). Either is fine.
4 years ago (2016-12-22 18:01:55 UTC) #6
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/2601543002/1
4 years ago (2016-12-22 18:57:37 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-22 19:17:46 UTC) #12
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/2726ac3437f9524bc027021f672bb69a343cc69a Cr-Commit-Position: refs/heads/master@{#440465}
4 years ago (2016-12-22 19:19:32 UTC) #14
kinuko
3 years, 12 months ago (2016-12-27 01:39:34 UTC) #15
Message was sent while issue was closed.
Thanks for fixing, belated lgtm

Powered by Google App Engine
This is Rietveld 408576698