Closed Bug 1640768 Opened 4 years ago Closed 4 years ago

Make AutoPrintEventDispatcher work in fission

Categories

(Core :: Printing: Setup, defect, P3)

defect

Tracking

()

RESOLVED FIXED
Fission Milestone M6c

People

(Reporter: hiro, Unassigned)

References

Details

Attachments

(1 file)

AutoPrintEventDispatcher uses EnumerateSubDocuments, it doesn't enumerate any OOP iframes.

The HTML Standard spec clearly says;

  1. The user agent must fire an event named beforeprint at the relevant global object of the Document that is being printed, as well as any child browsing contexts in it.

I am less sure that any child browsing contexts contain cross origin iframe's contexts though. But I suppose it does.

Yes it does, though worth looking at other browser's behavior here.

Thank you Emilio. Chrome does fire beforeprint/afterprint events in OOP iframes (at least in print preview).

Blocks: 1592895
See Also: → 1597434
Fission Milestone: --- → M6c

This should probably also get fixed in Shirley.

Flags: needinfo?(jwatt)

I actually don't think we need this as a separate bug. This should automatically just work once we do static clones for oop-iframes.

Hiro, are you okay to close this?

(Also, FWIW AutoPrintEventDispatcher no longer exists - the events are dispatched from nsPrintJob::DoCommonPrint.)

Flags: needinfo?(jwatt) → needinfo?(hikezoe.birchill)

Sure.

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(hikezoe.birchill)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: