Closed
Bug 767737
Opened 12 years ago
Closed 8 years ago
Chaos to Perfection demo fails to load in Firefox
Categories
(Web Compatibility :: Site Reports, defect)
Web Compatibility
Site Reports
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: bugzillawatcher, Assigned: adamopenweb)
References
()
Details
(Whiteboard: [sitewait])
Attachments
(1 file, 1 obsolete file)
9.63 KB,
text/html
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:14.0) Gecko/20100101 Firefox/14.0
Build ID: 20120619191901
Steps to reproduce:
Visit the following website:
www.chaostoperfection.com/
You will notice that Firefox is blocked and doesnt even let Firefox load the page. Spoofing the user agent loads the page, but it never finishes loading, it stops at 50%. Same results in Safari on OS X when spoofing the user agent.
Actual results:
You are directed to a page saying
"We are sorry, but it appears that your browser does not support WebGL."
Reporter | ||
Comment 1•12 years ago
|
||
Demo is also available on http://www.chromeexperiments.com/detail/chaos-to-perfection/?f=
They are using UA sniffing. Change your UA for one of Chrome (with add-on User Agent Switcher e.g.) and the WebGL animation will load.
Assignee: nobody → english-us
Component: Untriaged → English US
OS: Mac OS X → All
Product: Firefox → Tech Evangelism
QA Contact: untriaged → english-us
Hardware: x86 → All
Version: 14 Branch → unspecified
Reporter | ||
Comment 3•12 years ago
|
||
(In reply to Loic from comment #2)
> They are using UA sniffing. Change your UA for one of Chrome (with add-on
> User Agent Switcher e.g.) and the WebGL animation will load.
Please see comment 0, I did that already. But the demo still fails to load, it stops at 50%.
Updated•12 years ago
|
Assignee: english-us → nobody
Component: English US → Canvas: WebGL
Product: Tech Evangelism → Core
QA Contact: english-us → canvas.webgl
Comment 4•12 years ago
|
||
Despite UA Faking I get
Warning: Error: WebGL: bufferData: null object passed
Source file: http://www.chaostoperfection.com/js/Main.min.js
Line: 290
in the Error Console. Though unsure if related.
Trying OpenGL WebGL + UA Faking doesn't work neither.
Version: unspecified → Trunk
Comment 5•12 years ago
|
||
Something resembling a reduced testcase (starting with unminified JS) would be really nice here...
Keywords: testcase-wanted
Comment 6•11 years ago
|
||
WFM on linux. Please reopen this bug if it's still broken for you.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Comment 7•11 years ago
|
||
I lied. I didn't follow the repro case properly. Indeed, I get "Error: WebGL: bufferData: null object passed".
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: WORKSFORME → ---
Comment 8•11 years ago
|
||
Looks like we don't properly handle when bufferData is called with a null buffer. It looks like we should just allocate a zero-size buffer here.
Comment 9•11 years ago
|
||
This looks like the reasonable thing to do.
Updated•11 years ago
|
Summary: Chaos of Perfection demo claims that WebGL is not supported in Firefox → Chaos of Perfection demo fails to load
Comment 10•11 years ago
|
||
Comment on attachment 823543 [details] [diff] [review]
patch: Passing `null` to bufferData should alloc a zero-sized buffer
Review of attachment 823543 [details] [diff] [review]:
-----------------------------------------------------------------
The existing code is intentional; this change breaks conformance with the spec. http://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.5 says clearly:
void bufferData(GLenum target, ArrayBuffer? data, GLenum usage) (OpenGL ES 2.0 §2.9, man page)
Set the size of the currently bound WebGLBuffer object for the passed target to the size of the passed data, then write the contents of data to the buffer object.
If the passed data is null then an INVALID_VALUE error is generated.
The code also has a comment linking to the khronos bug where this was agreed on.
Attachment #823543 -
Flags: review?(bjacob) → review-
Comment 11•11 years ago
|
||
Ok, excellent. I somehow managed to overlook the comments in the middle when I read the khronos bug.
This is actually two bugs, one in the webpage and one in Chrome. Firefox is working properly here.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → WONTFIX
Comment 12•11 years ago
|
||
Jeff, Benoit, please file the bug on Chrome!
Status: RESOLVED → REOPENED
Component: Canvas: WebGL → English US
Keywords: testcase-wanted
Product: Core → Tech Evangelism
Resolution: WONTFIX → ---
Comment 13•11 years ago
|
||
Does Chrome actually allow this?
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/core/html/canvas/WebGLRenderingContext.cpp
Scroll down to bufferData:
void WebGLRenderingContext::bufferData(GC3Denum target, ArrayBuffer* data, GC3Denum usage)
{
if (isContextLost())
return;
WebGLBuffer* buffer = validateBufferDataParameters("bufferData", target, usage);
if (!buffer)
return;
if (!data) {
synthesizeGLError(GraphicsContext3D::INVALID_VALUE, "bufferData", "no data");
return;
}
m_context->bufferData(target, data->byteLength(), data->data(), usage);
}
void WebGLRenderingContext::bufferData(GC3Denum target, ArrayBufferView* data, GC3Denum usage)
{
if (isContextLost())
return;
WebGLBuffer* buffer = validateBufferDataParameters("bufferData", target, usage);
if (!buffer)
return;
if (!data) {
synthesizeGLError(GraphicsContext3D::INVALID_VALUE, "bufferData", "no data");
return;
}
m_context->bufferData(target, data->byteLength(), data->baseAddress(), usage);
}
As far as I can see, they are correctly rejecting the null data case with an INVALID_VALUE error, just like we are!
Updated•11 years ago
|
Attachment #823543 -
Attachment is obsolete: true
Comment 14•11 years ago
|
||
Simple testcase for this behavior.
Comment 15•11 years ago
|
||
Testcase works fine in Firefox and Chrome.
The problem must be elsewhere in the website.
Comment 16•11 years ago
|
||
Since there's nothing obvious on our end, the best way forward is to try to get the author to debug it on their end.
Assignee: jgilbert → english-us
Assignee | ||
Comment 17•10 years ago
|
||
Still not working in FF29. It doesn't get very far in Chrome 34 without errors either.
Maybe Maxime Montegnies can help: http://fr.linkedin.com/in/montegnies
Assignee: english-us → astevenson
Component: English US → Desktop
Whiteboard: [sitewait]
Assignee | ||
Comment 18•10 years ago
|
||
Site was built by 84 Paris http://www.84paris.com/#/projects/google-cultural-institute/
Assignee | ||
Updated•10 years ago
|
Summary: Chaos of Perfection demo fails to load → Chaos to Perfection demo fails to load in Firefox
Comment 19•10 years ago
|
||
Hi there.
I will look at this as soon as I have some time and will keep you informed.
I was in charge of making the main webGl stuff but I can certainly help with the half integration.
Assignee | ||
Comment 20•10 years ago
|
||
Thank you Maxime, appreciate the help.
Assignee | ||
Comment 21•8 years ago
|
||
Update: site still doesn't load in Firefox (or Safari). In Chrome it loads but fails not long after starting. I'm thinking we should close this, the issue was reported 4 years ago and it doesn't work in other browsers now.
Comment 22•8 years ago
|
||
Agreed.
Status: REOPENED → RESOLVED
Closed: 11 years ago → 8 years ago
Resolution: --- → WONTFIX
Updated•6 years ago
|
Product: Tech Evangelism → Web Compatibility
You need to log in
before you can comment on or make changes to this bug.
Description
•