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

Issue 1802313003: Don't leave a discarded SharedBuffer on Resource (Closed)

Created:
4 years, 9 months ago by Nate Chapin
Modified:
4 years, 9 months ago
Reviewers:
Mike West
CC:
blink-reviews, chromium-reviews, gavinp+loader_chromium.org, Nate Chapin, loading-reviews+fetch_chromium.org, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't leave a discarded SharedBuffer on Resource If a SharedBuffer was unlocked and the OS then purged the backing DiscardableMemory, we will evict the Resource from MemoryCache. However, before doing so, we will give inspector a chance to copy the data. In the case where the buffer was purged, InspectorPageAgent may improperly handle the buffer given its state. In that case, clear the buffer so there is no opportunity for the inspector to misuse it. BUG=594117 TEST=ResourceTest.LockFailureNoCrash Committed: https://crrev.com/3c5a24bba6d4b39c5e725af9661ac0cadb1085cf Cr-Commit-Position: refs/heads/master@{#381732}

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -0 lines) Patch
M third_party/WebKit/Source/core/fetch/Resource.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceTest.cpp View 1 3 chunks +41 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1802313003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1802313003/20001
4 years, 9 months ago (2016-03-16 21:42:58 UTC) #3
Nate Chapin
This is fallout from https://codereview.chromium.org/1667843003 Unfortunately, I can't seem to reproduce the crash exactly in ...
4 years, 9 months ago (2016-03-16 21:46:43 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-16 23:13:35 UTC) #7
Mike West
LGTM.
4 years, 9 months ago (2016-03-17 16:21:48 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1802313003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1802313003/20001
4 years, 9 months ago (2016-03-17 16:34:36 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-17 16:44:13 UTC) #12
commit-bot: I haz the power
4 years, 9 months ago (2016-03-17 16:45:52 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3c5a24bba6d4b39c5e725af9661ac0cadb1085cf
Cr-Commit-Position: refs/heads/master@{#381732}

Powered by Google App Engine
This is Rietveld 408576698