Video suggestions from youtube are shown out of page during print preview
Categories
(Core :: Print Preview, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr78 | --- | unaffected |
firefox88 | --- | unaffected |
firefox89 | --- | unaffected |
firefox90 | --- | verified |
firefox91 | --- | verified |
People
(Reporter: bmaris, Assigned: emilio)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
256.78 KB,
image/png
|
Details | |
48 bytes,
text/x-phabricator-request
|
jcristau
:
approval-mozilla-beta+
|
Details | Review |
Affected versions
- Firefox 90.0b3
- Latest Nightly 91.0a1
Affected platforms
- Windows 10
- Ubuntu 18.04
- MacOS 11.3
Steps to reproduce
- Start Firefox with a new profile
- Visit youtube.com
- Print (ctrl+P or from hamburger etc)
- Have Save to PDF option in Destination (to make it easier to save, I don't have a printer set up to my PC).
- Save the pdf locally
Expected result
- The page shown in preview matches the actual printed page.
Actual result
- The video suggestions from youtube are out of bounds in print preview. The page is correctly printed though in some cases.
- After saving the file on disk, the message
Print preview error, An error occurred while printing
is displayed but only on Windows 10 and Ubuntu 18. (I also tested on another w10 machine and the error was not shown so I'm not sure why that is displayed) - This is the message from Browser console when the error hits:
[Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: resource://gre/modules/Prompter.jsm :: openPromptSync :: line 1116" data: no]
Regression range 1
- Out of bounds video suggestions range
- First bad: 029a5e8fa8f3179b63a7bf291ea689c4dd642492
- Last good: 099906bf5f7436a72cee78b61075574bf073c0e6
- Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=099906bf5f7436a72cee78b61075574bf073c0e6&tochange=029a5e8fa8f3179b63a7bf291ea689c4dd642492
- Potential regressor: Bug 1700379 - Hit testing on fission iframes in print preview is messed up. This is a duplicate of Bug 1710059 - [fission] Hit testing scaled remote iframes is broken.
Regression range 2
- Error message range
- First bad: 411d3031b1b4c0f8b9ff3009ceb21ba4cfdc601e
- Last good: d7a58cff3e920dfbfdfe29c76a2822f7b916c0d3
- Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=d7a58cff3e920dfbfdfe29c76a2822f7b916c0d3&tochange=411d3031b1b4c0f8b9ff3009ceb21ba4cfdc601e
- Potential regressor: Bug 1540737 Add layerless painting
Additional notes
- Image showing the issue is attached.
- When the error message is thrown the PDF is corrupt and can't be opened in any browser or 3rd party app I tried. (Adobe, Foxit)
Suggested severity
- Not sure how many websites this could affect but I would make it an S3 for now. Please fiddle with the severity if anyone thinks this could be more serious.
Reporter | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
The error message thing looks fairly unlikely. But yeah it seems I introduced a clipping regression with my refactoring, will address.
Assignee | ||
Comment 2•3 years ago
|
||
That way we guarantee to clip abspos boxes etc. This used to work
because this was further up the stack in nsPageFrame rather than
nsPageContentFrame:
https://hg.mozilla.org/integration/autoland/rev/029a5e8fa8f3179b63a7bf291ea689c4dd642492#l6.262
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 3•3 years ago
•
|
||
Comment on attachment 9225223 [details]
Bug 1714513 - Use ClipContentDescendants rather than ClipContainingBlockDescendants in nsPageContentFrame::BuildDisplayList. r=miko,mattwoodrow
Beta/Release Uplift Approval Request
- User impact if declined: comment 0
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: comment 0
- List of other uplifts needed: none
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): One-liner to clip a bit more agressively to the page content size.
- String changes made/needed: none
Assignee | ||
Updated•3 years ago
|
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/884543a0d0ae Use ClipContentDescendants rather than ClipContainingBlockDescendants in nsPageContentFrame::BuildDisplayList. r=mattwoodrow
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/29303 for changes under testing/web-platform/tests
Comment 6•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Upstream PR merged by moz-wptsync-bot
Reporter | ||
Comment 8•3 years ago
•
|
||
Verified that using the Nightly after the fix landed, the page looks good in print preview, but the error is still there when printing.
Based on the info from comment 0 (Regression range 2) this might have been something from bug 1540737, Matt do you want me to log a new bug for that?
Comment 9•3 years ago
|
||
Comment on attachment 9225223 [details]
Bug 1714513 - Use ClipContentDescendants rather than ClipContainingBlockDescendants in nsPageContentFrame::BuildDisplayList. r=miko,mattwoodrow
regression fix, approved for 90.0b6
Reporter | ||
Comment 10•3 years ago
|
||
(In reply to Bogdan Maris [:bogdan_maris], Release Desktop QA from comment #8)
Verified that using the Nightly after the fix landed, the page looks good in print preview, but the error is still there when printing.
Based on the info from comment 0 (Regression range 2) this might have been something from bug 1540737, Matt do you want me to log a new bug for that?
I logged a new bug for the error (bug 1715771), will leave this one only for the print preview display of the page.
Reporter | ||
Updated•3 years ago
|
Comment 11•3 years ago
|
||
bugherder uplift |
Reporter | ||
Comment 12•3 years ago
|
||
Also verified that the page looks good in print preview using Firefox 90.0b6 across platforms (Windows 10 64bit, macOS 11.3 and Ubuntu 18.04).
Updated•2 years ago
|
Description
•