-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Which component(s) are affected?
Other/unknown (please specify in the description)
Description
Bug: IconsStateBroadcast._syncState() in icon-state.broadcast.js sends DefaultMap instances (which contain a non-cloneable _factoryFn function) via BroadcastChannel.postMessage(). Safari
throws DataCloneError: The object can not be cloned. — Chrome silently tolerates it.
File: node_modules/igniteui-webcomponents/components/icon/registry/default-map.js — DefaultMap extends Map stores _factoryFn = () => new Map().
Fix: _getUserSetCollection and _getUserRefsCollection should return plain Map objects, or DefaultMap should strip the factory function before serialization.
Reproduction
Run Angular dev demos repo, try to open the project in Safari
Workaround
NO
Is this a regression?
No or unsure. This never worker, or I haven't tried before.
Affected versions
ALL
Browser/OS/Node environment
Browser: safari