Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

icon(svg): large icon from cache causes 100% CPU during RegEx replacement #11651

@korengal

Description

@korengal

Bug

Since AngularJS Material version 1.1.11,
The site is stuck after the second opening of the dialog with the SVG icons

CodePen and steps to reproduce the issue:

CodePen
1)Click on "CUSTOM DIALOG" button.
2)Close the dialog
3)Click again on the "CUSTOM DIALOG" button.
4)Chrome stuck.

When I debug it I saw that the code is stuck on this function "transformClone".

issue: Chrome

Which versions of AngularJS, Material, OS, and browsers are affected?

  • AngularJS: 1.7.7
  • AngularJS Material: 1.1.13 , 1.1.12 , 1.1.11
  • OS: Windows
  • Browsers: all

Thanks :)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions