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

Issue 2919153002: Avoid crash in DocumentProperties (Closed)

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

Description

Avoid crash in DocumentProperties Some printers crash in DocumentProperties, particularly Dell Win7 drivers running on Win10. These printers have invalid settings as well and report no page sizes or DPIs, so use the lack of page sizes to detect them and report an error before calling DocumentProperties. BUG=724595 Review-Url: https://codereview.chromium.org/2919153002 Cr-Commit-Position: refs/heads/master@{#477102} Committed: https://chromium.googlesource.com/chromium/src/+/773f81b206a0e30c9742428389af3e1eeec90997

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -12 lines) Patch
M printing/backend/win_helper.cc View 1 3 chunks +21 lines, -12 lines 0 comments Download

Messages

Total messages: 25 (20 generated)
rbpotter
3 years, 6 months ago (2017-06-02 21:24:05 UTC) #5
Lei Zhang
lgtm https://codereview.chromium.org/2919153002/diff/1/printing/backend/win_helper.cc File printing/backend/win_helper.cc (right): https://codereview.chromium.org/2919153002/diff/1/printing/backend/win_helper.cc#newcode486 printing/backend/win_helper.cc:486: return DeviceCapabilities(name, port, DC_PAPERSIZE, NULL, NULL) > 0; ...
3 years, 6 months ago (2017-06-02 21:29:54 UTC) #6
rbpotter
https://codereview.chromium.org/2919153002/diff/1/printing/backend/win_helper.cc File printing/backend/win_helper.cc (right): https://codereview.chromium.org/2919153002/diff/1/printing/backend/win_helper.cc#newcode486 printing/backend/win_helper.cc:486: return DeviceCapabilities(name, port, DC_PAPERSIZE, NULL, NULL) > 0; On ...
3 years, 6 months ago (2017-06-03 01:23:24 UTC) #10
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/2919153002/20001
3 years, 6 months ago (2017-06-05 22:29:44 UTC) #20
commit-bot: I haz the power
3 years, 6 months ago (2017-06-05 22:36:04 UTC) #25
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/773f81b206a0e30c9742428389af...

Powered by Google App Engine
This is Rietveld 408576698