Have static clones clone the current selection ranges
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox77 | --- | fixed |
People
(Reporter: jwatt, Assigned: nordzilla)
References
Details
(Whiteboard: [print2020_v77][layout:backlog:77])
Attachments
(1 file, 2 obsolete files)
To print a document we create a "static clone" so that we can print independently of and without freezing the original document (since that can cause various problems). Unfortunately, we aren't actually completely independent of the original document right now.
The main issue in our current implementation of static cloning is that we don't try to copy the selections or the focused frame that were present in the original document. As a result, the code in nsPrintJob keeps a reference to the original document (mOriginalDoc) to get the selections. This is pretty broken since that selection in the original document could change at any time. mOriginalDoc should be killed off.
Note: one issue to keep in mind when fixing this is that we don't want the selection to appear visibly selected in the static clone.
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 1•5 years ago
|
||
So the original clone-doc-for-printing patch did clone selection, but I can't find anymore where that code might have moved (or was it removed for some reason?).
Comment 2•5 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1419739 changed the setup quite a bit.
Assignee | ||
Comment 3•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 4•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
- Add new member
nsPrintJob::mIsRangeSelection
- Cache
mIsRangeSelection
andmIsIframeSelected
on first call to print
Depends on D71110
Comment 7•5 years ago
|
||
bugherder |
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Updated•4 years ago
|
Updated•2 years ago
|
Description
•