Closed Bug 362120 Opened 19 years ago Closed 7 years ago

[meta] Allow lithium to print preview pages automatically

Categories

(Core :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: ispiked, Unassigned)

Details

(Keywords: meta, sec-other, Whiteboard: [sg:nse meta])

Attachments

(3 files)

There've been a few bugs filed recently on assertions that occur only during print preview. Since these are painful to reduce, it would be nice if we could somehow automate the print preview process. I'm attaching my attempt at doing this so others can take a look if they please. Currently, the script print previews the page in the current browser window (no separate window), but fails to close it. (Filing as security sensitive since lithium's existence is not publicly known.)
Attached file WIP
Whiteboard: [sg:nse meta]
Attached file wipv2
Thanks for the script, Adam! This makes exitprintpreview work, but it's an ugly hack, though. A popup window is opened, to exit print preview on the opener page, you have to click on the "doe" button.
Attached file testcase
Ok, this is a self containing testcase that works, it uses an iframe. I think I can use this very conveniently for my ajax demolisher (bug 321107).
I don't think the code itself needs to be security sensitive, does it? Because I already see a bug in Mozilla with the testcase: Click on the "set printpreview on iframe" button and then on the "undo printpreview on iframe", after that I still see content of the iframe bleeding out of the iframe. This regressed with the landing of the frame display lists patch (bug 317375). Possibly related to bug 331809.
I filed bug 362356 for the issue mentioned in comment 4.
Not sure who should own getting this into lithium, guessing Jesse but could be Martijn based on activity in the bug.
Assignee: nobody → jruderman
I'm not working on this at the moment. I think it would make more sense to have a Firefox extension exposing this ability rather than trying to add it to Lithium.
Assignee: jruderman → nobody
Keywords: meta
Lithium is no longer private (https://github.com/MozillaSecurity/lithium/): unhiding bug.
Group: core-security
The meta keyword is there, the bug doesn't depend on other bugs and there is no activity for 12 months. :selenamarie, maybe it's time to close this bug?
Flags: needinfo?(sdeckelmann)
Summary: Allow lithium to print preview pages automatically → [meta] Allow lithium to print preview pages automatically
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(sdeckelmann)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: