[PM-8885] Hardcode Fallback to TreeWalker Strategy for PageCollection details (#9652)

This commit is contained in:
Cesar Gonzalez 2024-06-14 12:08:13 -05:00 committed by GitHub
parent 87c1f9c2af
commit 6e7239e05e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -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),
// );
}
/**