| Summary: | An unresolved WebGL Context should operate normally until used | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Dean Jackson <dino> | ||||
| Component: | WebGL | Assignee: | Dean Jackson <dino> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | ||||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Dean Jackson
2014-02-20 10:24:51 PST
Created attachment 224795 [details]
Patch
Comment on attachment 224795 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=224795&action=review The only thing I don't get here is how do we decide we are in a pending state? Does webGLPolicyForURL do something clever? > Source/WebCore/html/canvas/WebGLRenderingContext.cpp:410 > + Extra blank line! > Source/WebCore/html/canvas/WebGLRenderingContext.cpp:3313 > + // FIXME: We don't currently do anything with the result from resolution. A more Should we have a bug filed here so we don't forget about it? > Source/WebCore/html/canvas/WebGLRenderingContext.h:342 > + WebGLRenderingContext(HTMLCanvasElement*, GraphicsContext3D::Attributes); Should this special constructor be private to prevent unintentional use of it outside of the "pending" use case? (In reply to comment #3) > (From update of attachment 224795 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=224795&action=review > > The only thing I don't get here is how do we decide we are in a pending state? Does webGLPolicyForURL do something clever? > > > Source/WebCore/html/canvas/WebGLRenderingContext.cpp:410 > > + > > Extra blank line! > > > Source/WebCore/html/canvas/WebGLRenderingContext.cpp:3313 > > + // FIXME: We don't currently do anything with the result from resolution. A more > > Should we have a bug filed here so we don't forget about it? Yes. I will file one (although I don't expect we'll fix it soon) > > > Source/WebCore/html/canvas/WebGLRenderingContext.h:342 > > + WebGLRenderingContext(HTMLCanvasElement*, GraphicsContext3D::Attributes); > > Should this special constructor be private to prevent unintentional use of it outside of the "pending" use case? It already is :) Committed r164452: <http://trac.webkit.org/changeset/164452> |