I'm spinning off this bug as a way of resurrecting bug 1670068 (which is closed because a speculative patch landed, but wasn't really fully fixed per bug 1670068 comment 9). This is causing me some trouble in writing a test for bug 1670068; hence, I'm filing this bug. The basic symptom here is that test_printpreview.xhtml doesn't seem to reliably respect its subtests' unwriteable margin settings, specifically on Windows. I've partially tracked this down -- it looks like in our `printPreview()` call, we end up calling `nsPrintSettingsWin::CopyFromNative` on the passed-in printSettings argument, which overwrites its unwriteable margin data (among other things). My windows dev environment is a bit cobwebby (I can't get MSVC to attach & debug the relevant process for some reason), so I don't fully understand what's going on, but I'll post a bit more of what I've learned at this point.
Bug 1680838 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
I'm spinning off this bug as a way of resurrecting bug 1671036 (which is closed because a speculative patch landed, but wasn't really fully fixed per bug 1671036 comment 9). This is causing me some trouble in writing a test for bug 1670068; hence, I'm filing this bug. The basic symptom here is that test_printpreview.xhtml doesn't seem to reliably respect its subtests' unwriteable margin settings, specifically on Windows. I've partially tracked this down -- it looks like in our `printPreview()` call, we end up calling `nsPrintSettingsWin::CopyFromNative` on the passed-in printSettings argument, which overwrites its unwriteable margin data (among other things). My windows dev environment is a bit cobwebby (I can't get MSVC to attach & debug the relevant process for some reason), so I don't fully understand what's going on, but I'll post a bit more of what I've learned at this point.