Closed Bug 931172 Opened 13 years ago Closed 12 years ago

Hang when accessing Print Preview or Printing [xul!nsBlockFrame::Reflow+0x78e231]

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: andreasjunghw, Unassigned)

Details

(Keywords: hang, testcase)

Attachments

(3 files, 3 obsolete files)

Attached file Userscript to reproduce the bug (obsolete) —
User Agent: Mozilla/5.0 (Windows NT 6.0; rv:24.0) Gecko/20100101 Firefox/24.0 (Beta/Release) Build ID: 20130910160258 Steps to reproduce: 1) Install the attached user script (I used Greasemonkey 1.12) 2) Go to http://danbooru.donmai.us/posts/1485497 3) Try to open the print preview I reduced the userscript as far as possible, but didn't attempt to reduce the @imported style or the html itself because I have no idea where to even start... Actual results: Firefox hangs and uses about 100% of one CPU core. Expected results: It should be possible to print preview and print the page.
Attached file WinDbg output —
Severity: normal → critical
Component: General → Layout
Priority: -- → P4
Attached file Testcase (obsolete) —
Two things have been done in this testcase: First and most importantly, the HTML length and complexity has been reduced. Secondly, the CSS rules that previously where added by the userscript are now included in the testcase, therefore the userscript is not neccessary anymore. Note that this still relies on the external image file and CSS being loaded. (I'm still not sure if there is a practical way of reducing a CSS file whithout reading every selector by hand) The STR remain basically the same: 1) Open the testcase 2) Open the print preview or try to print the document
Attachment #822506 - Attachment is obsolete: true
I tried with FF27 on Win 7, print preview or print output (with PDFcreator printer) didn't hang the browser. Could you test with a clean profile, please. https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles In addition, could you test with Nightly. http://nightly.mozilla.org/
Severity: critical → normal
Component: Layout → Printing: Output
Flags: needinfo?(andreasjunghw)
Priority: P4 → --
Oops, I probably didn't say it clear enough in comment 2, the external stylesheet must be loaded; This means (because bugzilla is using https, but the stylesheet does not) you have to click on the shield icon in the location bar and allow insecure content. Alternatively you can download the html file to your computer and run it locally (in this case there is no http / https mismatch and the external css file is loaded as well). @Loic: See above. Could you try it again taking the above into account? BTW, I tried it already with my standard profile and a basically clear profile and could reproduce it in both.
Flags: needinfo?(andreasjunghw)
Attached file Standalone testcase (obsolete) —
Attachment #822927 - Attachment is obsolete: true
Severity: normal → critical
Component: Printing: Output → Layout
OS: Windows Vista → All
Hardware: x86 → All
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached file Standalone testcase —
Attachment #828948 - Attachment is obsolete: true
Why are we not placing the <h2> on the second page? It looks we're pushing the entire 2nd <section> to the next page, ad infinitum.
The hang also occurs in Firefox 4, so it's not a recent regression.
Priority: -- → P3
Version: 24 Branch → unspecified
Neither the original problem in comment #0 nor the standalone testcase hangs Firefox 26.0 or newer (didn't test with 25.0). Therefore setting to RESOLVED WORKSFORME.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: