Bug 1680838 Comment 3 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Relevant snippet of log:
```
 1:01.14 GECKO(18376) *****dholbert Entering SetUnwriteableMarginTop: 0.100000 -> 144 (this=000001D233E6A4A0)
[...]
 1:01.14 GECKO(18376) [18600, Main Thread] ###!!! ASSERTION: *****dholbert In nsPrintSettingsWin::CopyFromNative
[...]
 1:01.20 GECKO(18376) *****dholbert In nsPrintSettingsWin::InitUnwriteableMargin
 1:01.20 GECKO(18376) *****dholbert Entering GetUnwriteableMarginTop and returning: 0.000000
```

(I used an asserting NS_ERROR in CopyFromNative so that I'd get a backtrace; it's there in the log.)

The `SetUnwriteableMarginTop: 0.100000` line is logging where the test is trying to set that custom value.

Then `CopyFromNative` gets called, which triggers `InitUnwriteableMargin`, which reinitializes the unwriteable margin to 0. And then that's what we see when we're actually rendering, in the GetUnwriteableMarginTop line.
Relevant snippet of log:
```
 1:01.14 GECKO(18376) *****dholbert Entering SetUnwriteableMarginTop: 0.100000 -> 144 (this=000001D233E6A4A0)
[...]
 1:01.14 GECKO(18376) [18600, Main Thread] ###!!! ASSERTION: *****dholbert In nsPrintSettingsWin::CopyFromNative
[...]
 1:01.20 GECKO(18376) *****dholbert In nsPrintSettingsWin::InitUnwriteableMargin
 1:01.20 GECKO(18376) *****dholbert Entering GetUnwriteableMarginTop and returning: 0.000000
```

(I used an asserting NS_ERROR in CopyFromNative so that I'd get a backtrace; it's there in the log.)

The `SetUnwriteableMarginTop: 0.100000` line is logging where the test is trying to set that custom value.

Then `CopyFromNative` gets called, which triggers `InitUnwriteableMargin`, which reinitializes the unwriteable margin to 0. And then that's what we see when we're actually rendering, in the `GetUnwriteableMarginTop` logging line.
Relevant snippet of log:
```
 1:01.14 GECKO(18376) *****dholbert Entering SetUnwriteableMarginTop: 0.100000 -> 144 (this=000001D233E6A4A0)
[...]
 1:01.14 GECKO(18376) [18600, Main Thread] ###!!! ASSERTION: *****dholbert In nsPrintSettingsWin::CopyFromNative
[...]
 1:01.20 GECKO(18376) *****dholbert In nsPrintSettingsWin::InitUnwriteableMargin
 1:01.20 GECKO(18376) *****dholbert Entering GetUnwriteableMarginTop and returning: 0.000000
```

(I used an asserting NS_ERROR in CopyFromNative so that I'd get a backtrace; it's there in the log.)

The `SetUnwriteableMarginTop: 0.100000` line is logging where the test is trying to set that custom value.

Then `CopyFromNative` gets called, which triggers `InitUnwriteableMargin`, which reinitializes the unwriteable margin to 0 in the printSettings object. And then that's the value we get from our printSettings queries when we're actually rendering, as shown in the `GetUnwriteableMarginTop` logging line.

Back to Bug 1680838 Comment 3