Open Bug 1886714 Opened 6 months ago Updated 6 months ago

Setting font on a canvas context in a display:none iframe fails

Categories

(Web Compatibility :: Knowledge Base, defect)

x86
macOS
defect

Tracking

(Not tracked)

People

(Reporter: jgraham, Unassigned)

References

(Depends on 1 open bug)

Details

Something like:

<iframe style="display:none" srcdoc="<script>document.createElement('canvas').getContext('2d').font = '14px sans-serif';</script>"></iframe>

Produces NS_ERROR_FAILURE in the console logs.

You need to log in before you can comment on or make changes to this bug.