From 6e7239e05eb3687c5a9da5256411258a69ed3a9d Mon Sep 17 00:00:00 2001 From: Cesar Gonzalez Date: Fri, 14 Jun 2024 12:08:13 -0500 Subject: [PATCH] [PM-8885] Hardcode Fallback to TreeWalker Strategy for PageCollection details (#9652) --- .../services/collect-autofill-content.service.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/browser/src/autofill/services/collect-autofill-content.service.ts b/apps/browser/src/autofill/services/collect-autofill-content.service.ts index 39e7571156..4205590973 100644 --- a/apps/browser/src/autofill/services/collect-autofill-content.service.ts +++ b/apps/browser/src/autofill/services/collect-autofill-content.service.ts @@ -20,7 +20,7 @@ import { elementIsTextAreaElement, nodeIsFormElement, nodeIsInputElement, - sendExtensionMessage, + // sendExtensionMessage, requestIdleCallbackPolyfill, } from "../utils"; @@ -57,7 +57,7 @@ class CollectAutofillContentService implements CollectAutofillContentServiceInte "image", "file", ]); - private useTreeWalkerStrategyFlagSet = false; + private useTreeWalkerStrategyFlagSet = true; constructor( domElementVisibilityService: DomElementVisibilityService, @@ -72,10 +72,10 @@ class CollectAutofillContentService implements CollectAutofillContentServiceInte } this.formFieldQueryString = `${inputQuery}, textarea:not([data-bwignore]), select:not([data-bwignore]), span[data-bwautofill]`; - void sendExtensionMessage("getUseTreeWalkerApiForPageDetailsCollectionFeatureFlag").then( - (useTreeWalkerStrategyFlag) => - (this.useTreeWalkerStrategyFlagSet = !!useTreeWalkerStrategyFlag?.result), - ); + // void sendExtensionMessage("getUseTreeWalkerApiForPageDetailsCollectionFeatureFlag").then( + // (useTreeWalkerStrategyFlag) => + // (this.useTreeWalkerStrategyFlagSet = !!useTreeWalkerStrategyFlag?.result), + // ); } /**