Closed Bug 733698 Opened 13 years ago Closed 9 years ago

Assign font property to canvas context inside hidden iframe fails

Categories

(Core :: Graphics: Canvas2D, defect)

10 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 941146

People

(Reporter: subzey, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
Build ID: 20120215223356

Steps to reproduce:

Set `font` property to canvas context on page that is located within iframe.
IFRAME object in parent document has style `display: none`.


Actual results:

An error.
Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMCanvasRenderingContext2D.font]


Expected results:

Property should have been set without causing any errors
This errors relates not only .font property but also .fillText(), .strokeText() and .measureText() methods.
Attachment #603644 - Attachment is obsolete: true
Looks like this is breaking

https://www.dartlang.org/performance/

Clicking on the other tabs there does not show content. See

http://code.google.com/p/dart/issues/detail?id=10602
Component: Untriaged → Canvas: 2D
Product: Firefox → Core
Same on Linux with FF29 and FF32. Using canvas with text is not possible within an iframe.
This also occurs on Windows with my extension Extensor when an iframe that contains canvas elements is initially hidden. The behavior is correct after the iframe is shown.
Same for me: NS_ERROR_FAILURE. Firefox 37.0.2 on Mac OS 10.5.9.
alex@ndre suggests this may be a duplicate of the following bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=941146
Dupping forward, since the other bug has more info about which code is involved.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: