Closed Bug 2033904 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 59383 - Handle too large safe printable insets gracefully.

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
152 Branch
Tracking Status
firefox152 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 59383 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/59383
Details from upstream follow.

Morten Stenshorne <mstensho@chromium.org> wrote:

Handle too large safe printable insets gracefully.

If the insets are so large there'd be no space left for the page area,
fall back to default page size, ignoring all CSS. There should be no
printers like this in the real world, unless there are broken drivers
etc.

Correct behavior is undefined, but crashing / freezing is obviously
wrong. Add an internal WPT test to verify that Chromium falls back to
default page size and margins.

Bug: 368070327
Change-Id: I3807b4d4da3d8b8066364540026a7170114d8330
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7782144
Commit-Queue: Morten Stenshorne \<mstensho@chromium.org>
Reviewed-by: Ian Kilpatrick \<ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1618193}

Component: web-platform-tests → Layout
Product: Testing → Core

CI Results

Ran 4 Firefox configurations based on mozilla-central, and Firefox, and Chrome on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
You need to log in before you can comment on or make changes to this bug.