1743533-1.html (1721B)
1 <!DOCTYPE html><html class="reftest-paged"> 2 <style>html{font-size:12pt}</style> 3 <!-- http example.org uri makes this an oop if with fission --> 4 <iframe style="height: 1000vh" src="http://example.org/1743533-1-helper.html"></iframe> 5 </html> 6 7 <!-- 8 Some notes about this test. 9 To reproduce the problem we just need an oop iframe that spans multiple pages, 10 and some content in it that also spans multiple pages. I used text instead 11 of a background color because background colors don't show up by default in 12 print preview. We're using page mode here and not print preview, so that is 13 not technically required here. 14 15 We'd like to compare an oop iframe and an in process iframe with the same 16 content to make sure they are the same. But some idiosyncracies with scrollbars 17 in paged mode cause the rendering not to be exactly the same. Since paged mode 18 is just for testing, and printing doesn't have scrollbars, it doesn't seem 19 worth digging too much into it. 20 21 We compare an iframe with content in it, to a blank iframe, and then we use a 22 high minimum accepted number of pixels differing in the fuzz. This then makes 23 sure the two documents differ by enough pixels. 24 25 Note why we couldn't use other test types: 26 27 I tried to write this as a wpt print reftest, it did not reproduce the bug. 28 I'm not sure what wpt reftests use to simulate printing, but I suspect it 29 is not similar enough to our print preview to trigger the bug. 30 31 I tried to add this as a test to layout/base/tests/chrome/test_printpreview.xhtml 32 but that is not feasible because that test runs as part of the mochitest-chrome 33 suite, which I'm told doesn't even run in e10s mode, and definitely does not get 34 run with fission, which is required to reproduce the bug. 35 -->