WICG / input-device-capabilities

InputDevice API proposal
MIT License
17 stars 14 forks source link

CompositionEvent polyfill doesn't work in Firefox: Illegal Constructor #10

Closed RByers closed 9 years ago

RByers commented 9 years ago

http://rbyers.github.io/InputDevice/tests/inputdevice-script.html#usePolyfill fails on Firefox 38 with:

CompositionEvent.sourceDevice exists and can be initialized properly by script
Illegal constructor.

augmentEventConstructor/global[constructorName]@file:///usr/local/google/home/rbyers/code/InputDevice/inputdevice-polyfill.js:125:17
generateConstructorTest/<@file:///usr/local/google/home/rbyers/code/InputDevice/tests/inputdevice-script.html#usePolyfill:32:17
Test.prototype.step@http://w3c-test.org/resources/testharness.js:1371:20
test@http://w3c-test.org/resources/testharness.js:496:9
generateConstructorTest@file:///usr/local/google/home/rbyers/code/InputDevice/tests/inputdevice-script.html#usePolyfill:30:1
runTests@file:///usr/local/google/home/rbyers/code/InputDevice/tests/inputdevice-script.html#usePolyfill:59:7
runTestsAndDone@file:///usr/local/google/home/rbyers/code/InputDevice/tests/inputdevice-tests.js:7:7

This appears to be a CompositionEvent constructor bug in Mozilla and I don't see any way to feature detect for it. Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1002256.