editor icon indicating copy to clipboard operation
editor copied to clipboard

Failed to execute 'attachShadow'

Open dimaqq opened this issue 4 years ago • 3 comments

Failed with: Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.

Source: chrome-extension://gfhlfpnpjokocfohicmfbgjneiipfeil/scripts/pageScript.js in HTMLElement.connectedCallback at line 112:1910

Chrome version:93.0.4577

dimaqq avatar Sep 17 '21 00:09 dimaqq

The stack trace is weird, it seems that that happens when user code calls this.appendChild( elem ); in random jQuery

dimaqq avatar Sep 17 '21 00:09 dimaqq

Fmm, Can you provide a website for reproducing?

Shadow root cannot be created on a host which already hosts a shadow tree.

That web site may have used Web Component.

azu avatar Sep 17 '21 01:09 azu

No, sorry... The website is oldschool (jQuery), it wouldn't know about web components. This came from automated reporting from customer system. If someone manages to reproduce this, I'll update here. Also, I can't be sure about other extensions that user's browser may have had installed.

dimaqq avatar Sep 17 '21 04:09 dimaqq