| Index: pkg/shadow_dom/lib/src/platform/patches-shadowdom-polyfill.js
|
| diff --git a/pkg/shadow_dom/lib/src/platform/patches-shadowdom-polyfill.js b/pkg/shadow_dom/lib/src/platform/patches-shadowdom-polyfill.js
|
| index 828a4fcde5e83adabcd5d50175a2462df1686b87..57c8c5941c10074b71e8bb260701df0c01e7ed4b 100644
|
| --- a/pkg/shadow_dom/lib/src/platform/patches-shadowdom-polyfill.js
|
| +++ b/pkg/shadow_dom/lib/src/platform/patches-shadowdom-polyfill.js
|
| @@ -38,11 +38,9 @@
|
| // Fix up class names for Firefox.
|
| // For some of them (like HTMLFormElement and HTMLInputElement),
|
| // the "constructor" property of the unwrapped nodes points at the
|
| - // wrapper.
|
| - // Note: it is safe to check for the GeneratedWrapper string because
|
| - // we know it is some kind of Shadow DOM wrapper object.
|
| - var ctor = obj.constructor;
|
| - if (ctor && ctor.name == 'GeneratedWrapper') {
|
| + // same constructor as the wrapper.
|
| + var ctor = obj.constructor
|
| + if (ctor === unwrapped.constructor) {
|
| var name = ctor._ShadowDOMPolyfill$cacheTag_;
|
| if (!name) {
|
| name = Object.prototype.toString.call(unwrapped);
|
|
|