Class: FirefoxCookieQueryStrategy โ
Defined in: src/core/browsers/firefox/FirefoxCookieQueryStrategy.ts:326
Strategy for querying cookies from Firefox browser. This class extends the BaseCookieQueryStrategy and implements Firefox-specific cookie extraction logic. It searches for cookie databases in standard Firefox profile locations and extracts cookies matching the specified name and domain.
Example โ
import { FirefoxCookieQueryStrategy } from './FirefoxCookieQueryStrategy';
const strategy = new FirefoxCookieQueryStrategy();
const cookies = await strategy.queryCookies('sessionid', 'example.com');
console.log(cookies);Extends โ
BaseCookieQueryStrategy
Constructors โ
Constructor โ
new FirefoxCookieQueryStrategy(
profileName?):FirefoxCookieQueryStrategy
Defined in: src/core/browsers/firefox/FirefoxCookieQueryStrategy.ts:334
Creates a new instance of FirefoxCookieQueryStrategy
Parameters โ
profileName? โ
string
Optional specific profile name to target (matches Name in profiles.ini)
Returns โ
FirefoxCookieQueryStrategy
Overrides โ
BaseCookieQueryStrategy.constructor
Properties โ
browserName โ
readonlybrowserName:"unknown"|"Chrome"|"Firefox"|"Safari"|"internal"
Defined in: src/core/browsers/BaseCookieQueryStrategy.ts:41
The name of the browser this strategy is for
Inherited from โ
BaseCookieQueryStrategy.browserName
Methods โ
queryCookies() โ
queryCookies(
name,domain,store?,force?):Promise<object[]>
Defined in: src/core/browsers/BaseCookieQueryStrategy.ts:57
Queries cookies from the browser's cookie store
Parameters โ
name โ
string
The name pattern to match cookies against
domain โ
string
The domain pattern to match cookies against
store? โ
string
Optional path to a specific cookie store file
force? โ
boolean
Whether to force operations despite warnings (e.g., locked databases)
Returns โ
Promise<object[]>
A promise that resolves to an array of exported cookies
Inherited from โ
BaseCookieQueryStrategy.queryCookies