1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-21 20:04:02 +00:00

revert remaining changes from 374ea6af7c (#13228)

This commit is contained in:
Jonathan Prusik
2025-02-03 12:29:05 -05:00
committed by GitHub
parent 27a8b43350
commit 444e928895

View File

@@ -982,8 +982,7 @@ export class CollectAutofillContentService implements CollectAutofillContentServ
const queueLength = this.mutationsQueue.length;
if (!this.domQueryService.pageContainsShadowDomElements()) {
// Checking if a page contains shadowDOM elements is a heavy operation and doesn't have to be done immediately, so we can call this within an idle moment on the event loop.
requestIdleCallbackPolyfill(this.checkPageContainsShadowDom, { timeout: 500 });
this.checkPageContainsShadowDom();
}
for (let queueIndex = 0; queueIndex < queueLength; queueIndex++) {