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

Issue 98233009: Fix crash in MediaCaptureDevicesDispatcher::ProcessScreenCaptureAccessRequest. (Closed)

Created:
7 years ago by hshi1
Modified:
7 years ago
CC:
chromium-reviews, fischman+watch_chromium.org, feature-media-reviews_chromium.org, wjia+watch_chromium.org, mcasas+watch_chromium.org
Visibility:
Public.

Description

Fix crash in MediaCaptureDevicesDispatcher::ProcessScreenCaptureAccessRequest. The web contents may be destroyed while awaiting user approval from the modal message box. BUG=326690 TEST=trybot, verify crash does not happen on device. R=fischman@chromium.org, sergeyu@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239900

Patch Set 1 #

Patch Set 2 : Split and refactor code so it is clear we do not use web_contents after approval. #

Total comments: 2

Patch Set 3 : Invalid the |web_contents| pointer just to be safe. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -32 lines) Patch
M chrome/browser/media/media_capture_devices_dispatcher.cc View 1 2 5 chunks +57 lines, -32 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
hshi1
PTAL - this prevents a crash due to the web contents being destroyed while we ...
7 years ago (2013-12-10 01:37:12 UTC) #1
hshi1
+fischman@ for advice as well I still don't feel comfortable with this situation even after ...
7 years ago (2013-12-10 17:58:25 UTC) #2
hshi1
On 2013/12/10 17:58:25, hshi1 wrote: > +fischman@ for advice as well > > I still ...
7 years ago (2013-12-10 18:24:25 UTC) #3
Ami GONE FROM CHROMIUM
On 2013/12/10 17:58:25, hshi1 wrote: > +fischman@ for advice as well > > I still ...
7 years ago (2013-12-10 18:45:51 UTC) #4
Ami GONE FROM CHROMIUM
On Tue, Dec 10, 2013 at 10:24 AM, <hshi@chromium.org> wrote: > I believe this fix ...
7 years ago (2013-12-10 18:54:10 UTC) #5
hshi1
On 2013/12/10 18:45:51, Ami Fischman wrote: > On 2013/12/10 17:58:25, hshi1 wrote: > > +fischman@ ...
7 years ago (2013-12-10 19:00:43 UTC) #6
Ami GONE FROM CHROMIUM
Yeah, our emails crossed in the tubes. See my second email. On Tue, Dec 10, ...
7 years ago (2013-12-10 19:12:47 UTC) #7
hshi1
> If your analysis is correct then your fix looks brittle to me, b/c there's ...
7 years ago (2013-12-10 19:56:53 UTC) #8
Ami GONE FROM CHROMIUM
LGTM but IDK what I'm talking about here; you should wait for Sergey's say-so (or ...
7 years ago (2013-12-10 20:18:28 UTC) #9
hshi1
Note to sergeyu@ - your comments are appreciated. In particular please confirm that this would ...
7 years ago (2013-12-10 20:22:36 UTC) #10
Sergey Ulanov
lgtm
7 years ago (2013-12-10 22:36:08 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/98233009/70001
7 years ago (2013-12-10 22:39:29 UTC) #12
hshi1
7 years ago (2013-12-10 23:01:15 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 manually as r239900 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698