Closed Bug 1493223 Opened 7 years ago Closed 5 years ago

Allow fuzzers to fuzz print preview.

Categories

(Core :: Layout, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
82 Branch
Tracking Status
firefox82 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This is the only print preview test we have. https://searchfox.org/mozilla-central/rev/0b8ed772d24605d7cb44c1af6d59e4ca023bd5f5/layout/base/tests/chrome/printpreview_helper.xul#26 I'm sure fuzzing is going to reveal fun stuff in this code.
Flags: needinfo?(emilio)
Priority: -- → P3
Tyson, do you know if Fuzzers have access to Cc / Ci? (The XPCOM interfaces and such?) If so, this is trivial, though the API is somewhat awkward to use: https://searchfox.org/mozilla-central/rev/1a4a7745fd4a14402a0de0e9abc040724d4fcf8f/layout/base/tests/chrome/printpreview_helper.xul#26 Otherwise, I can add some sort of fuzzing-only WebIDL API or so, or whatever you think is best really.
Flags: needinfo?(twsmith)
I believe this is what you you are looking for :) https://searchfox.org/mozilla-central/source/dom/webidl/FuzzingFunctions.webidl Adding print preview would be great, assuming it does not popup a blocking dialog or anything like that.
Flags: needinfo?(twsmith)
Assignee: nobody → emilio
Flags: needinfo?(emilio)

It'll open a window / tab that they can then close. This allows fuzzers
to catch crashes in our printing codepaths. Can't wait for the fun to
start.

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cceee3976ed5 Allow fuzzers to call window.printPreview. r=smaug
Flags: needinfo?(jkratzer)
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
Flags: needinfo?(jkratzer)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: