-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Geometry in Firefox #1042
Fix Geometry in Firefox #1042
Conversation
…rison. Work around transferable object bug in Firefox.
This is more of a question for @shunter. Do we expect to always have to do value comparisons for enums in webworkers? It kind of negates the point of having |
We always have to do value comparisons for enums transferred to or from a
|
I can confirm that the tests all pass now and Firefox Sandcastle examples work as expected. As an aside, is there any sort of event that gets fired as geometry is processed? It would be useful to put up some sort of loading indicator for the G&A Sandcastle example, it's really a dog on Firefox. I'll let @shunter do the actual merge. |
I have agreed with this for a while, and in #1023, @shunter is also starting to consider it. Propose something on the forum or just open an issue.
Good idea. We'll put it on the roadmap, but it may be a bit before we get to it. |
if (attributes.hasOwnProperty(name) && | ||
defined(attributes[name]) && | ||
defined(attributes[name].values) && | ||
transferableObjects.indexOf(attributes[name].values.buffer) < 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to convert the typed arrays even if the ArrayBuffer is already in transferableObjects.
@shunter This is ready for another review. |
Change
Enumeration
reference equality checks to perform a value comparison. Work around transferable object bug in Firefox:https://bugzilla.mozilla.org/show_bug.cgi?id=841904
This fixes #1039.