Class: FirefoxCookieQueryStrategy
Defined in: core/browsers/firefox/FirefoxCookieQueryStrategy.ts:381
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?,container?):FirefoxCookieQueryStrategy
Defined in: core/browsers/firefox/FirefoxCookieQueryStrategy.ts:391
Creates a new instance of FirefoxCookieQueryStrategy
Parameters
profileName?
string
Optional specific profile name to target (matches Name in profiles.ini)
container?
string | number
Optional container name, ID, or "none" to filter by
Returns
FirefoxCookieQueryStrategy
Overrides
BaseCookieQueryStrategy.constructor
Properties
browserName
readonlybrowserName:"unknown"|"Chrome"|"Firefox"|"Safari"|"internal"
Defined in: 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: 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