Skip to content

igniteui-angular dev demos are not working in safari #2126

@desig9stein

Description

@desig9stein

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions