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)
Tracking
()
RESOLVED
DUPLICATE
of bug 941146
People
(Reporter: subzey, Unassigned)
Details
Attachments
(1 file, 1 obsolete file)
398 bytes,
application/octet-stream
|
Details |
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
Comment 2•11 years ago
|
||
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
Updated•10 years ago
|
Component: Untriaged → Canvas: 2D
Product: Firefox → Core
Comment 3•10 years ago
|
||
Same on Linux with FF29 and FF32. Using canvas with text is not possible within an iframe.
Comment 4•10 years ago
|
||
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.
Comment 6•9 years ago
|
||
alex@ndre suggests this may be a duplicate of the following bug: https://bugzilla.mozilla.org/show_bug.cgi?id=941146
![]() |
||
Comment 7•9 years ago
|
||
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.
Description
•