Closed Bug 1197647 Opened 9 years ago Closed 6 years ago

mozNoMarginBoxes doesn't always work inside iframe

Categories

(Core :: Printing: Output, defect)

40 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: xlchen1291, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12

Steps to reproduce:

print page with mozNoMarginBoxes with this code, 

```
var ifr;
function onload() {
  ifr = document.createElement('iframe');
  ifr.src = 'http://output.jsbin.com/laheyula/1';
  document.body.appendChild(ifr);
  ifr.contentWindow.print();
}
```

or visit http://jsbin.com/kasivelena/1/


Actual results:

The page headers and page footers are not blank by default


Expected results:

The page headers and page footers should be blank by default
I'm a little surprised this is a Web-exposed feature.
Blocks: 743252
moznomarginboxes was removed in bug 1260480.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.