commit | 9f1465fc2d48f0b57fcd3bddc9da45946c97fe5d | [log] [tgz] |
---|---|---|
author | rbpotter <rbpotter@chromium.org> | Tue Mar 19 16:17:35 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Mar 19 16:17:35 2019 |
tree | a4e8befb3c8d8394623981f43eaf5f0bc9cf7f42 | |
parent | 285c0a320262d72c4861686c0e670e2db0c90a26 [diff] |
Custom Margins: Default to 0 for missing values Tolerate non-existent custom margins values in C++, by setting the margin field to 0 if it does not exist. This will prevent the crashes in the linked bug, and is safer than merging larger changes to the Print Preview JS that will prevent this from happening. This is a short term workaround; we will change this back to a stricter check after landing larger changes in Print Preview JS to prevent bad custom margin values from being sent. Bug: 942211 Change-Id: I978fdf65519efc0d6a0d6379c2266e330908fc0d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1529314 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/master@{#642002}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .