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

Issue 2849483002: Defer deletion in PrintWebViewHelper while handling IPC messages. (Closed)

Created:
3 years, 8 months ago by Lei Zhang
Modified:
3 years, 7 months ago
Reviewers:
lfg
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Defer deletion in PrintWebViewHelper while handling IPC messages. Also calculate modifiability only once in PrintPreviewContext. This does less repeated work, and prevents accessing frames after their deletion. BUG=707549 Review-Url: https://codereview.chromium.org/2849483002 Cr-Commit-Position: refs/heads/master@{#467810} Committed: https://chromium.googlesource.com/chromium/src/+/9c0e322c8de168b121cd6ae8cba92cd3214e5b1f

Patch Set 1 #

Total comments: 2

Patch Set 2 : address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -16 lines) Patch
M components/printing/renderer/print_web_view_helper.h View 5 chunks +9 lines, -1 line 0 comments Download
M components/printing/renderer/print_web_view_helper.cc View 1 13 chunks +25 lines, -15 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
Lei Zhang
This replaces https://crrev.com/435323 - sometimes RenderFrame deletion can be triggered pretty deep in the stack, ...
3 years, 7 months ago (2017-04-27 18:32:57 UTC) #7
lfg
lgtm with nit. https://codereview.chromium.org/2849483002/diff/1/components/printing/renderer/print_web_view_helper.h File components/printing/renderer/print_web_view_helper.h (right): https://codereview.chromium.org/2849483002/diff/1/components/printing/renderer/print_web_view_helper.h#newcode512 components/printing/renderer/print_web_view_helper.h:512: bool is_modifiable_; This seems to be ...
3 years, 7 months ago (2017-04-27 19:44:14 UTC) #8
Lei Zhang
https://codereview.chromium.org/2849483002/diff/1/components/printing/renderer/print_web_view_helper.h File components/printing/renderer/print_web_view_helper.h (right): https://codereview.chromium.org/2849483002/diff/1/components/printing/renderer/print_web_view_helper.h#newcode512 components/printing/renderer/print_web_view_helper.h:512: bool is_modifiable_; On 2017/04/27 19:44:14, lfg wrote: > This ...
3 years, 7 months ago (2017-04-27 20:31:24 UTC) #9
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/2849483002/20001
3 years, 7 months ago (2017-04-27 20:32:39 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/440692)
3 years, 7 months ago (2017-04-27 20:55:55 UTC) #14
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/2849483002/20001
3 years, 7 months ago (2017-04-27 21:01:23 UTC) #16
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 01:45:29 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/9c0e322c8de168b121cd6ae8cba9...

Powered by Google App Engine
This is Rietveld 408576698