Skip to content

Commit

Permalink
revert remaining changes from 374ea6a (#13228)
Browse files Browse the repository at this point in the history
  • Loading branch information
jprusik authored Feb 3, 2025
1 parent 27a8b43 commit 444e928
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 444e928

Please sign in to comment.