Firefo...:Cookie(3pm)

πŸ“¦
version 1.63 Β· 3 versions
, in debian trixie

okay bestie, so this is a User Contributed Perl Documentation page for Firefox::Marionette::Cookie β€” it's a Perl module (that's the 3pm part, iykyk) and it's literally just the ✨vibe✨ of one single Firefox cookie, retrieved using the Marionette protocol. One cookie. Main character energy, honestly. πŸͺ


✨ NAME ✨

Firefox::Marionette::Cookie β€” the module that represents a Firefox cookie you pulled out using the Marionette protocol πŸ¦‹


🌸 VERSION 🌸

This is Version 1.63 β€” no cap, that's the one.


πŸŽ€ SYNOPSIS πŸŽ€

okay so here's the whole vibe in action:

use Firefox::Marionette();
use v5.10;

my $firefox = Firefox::Marionette->new()->go('https://metacpan.org/');
foreach my $cookie ($firefox->cookies()) {
    say "Cookie name is " . $cookie->name();
}

like… you spin up a Firefox, you go to a site, you loop through the cookies, you say the name of each one. slay. πŸ’…


πŸ’œ DESCRIPTION πŸ’œ

This module handles the implementation of a single Firefox cookie using the Marionette protocol. that's it, that's the job, and it does it beautifully 🫢


🧚 SUBROUTINES/METHODS 🧚

🌈 new

new accepts a hash as a parameter. the allowed keys are below, bestie, so listen up πŸ‘‘

  • http_only β€” the httpOnly flag on the cookie. allowed values are 1 or 0. default is 0. πŸ“
  • secure β€” the secure flag on the cookie. allowed values are 1 or 0. default is 0. πŸ”’
  • domain β€” the domain name belonging to the cookie.
  • path β€” the path belonging to the cookie.
  • expiry β€” the expiry time of the cookie in seconds since the UNIX epoch. ngl, expiry will return undef for Firefox versions less than 56. πŸ’€
  • value β€” the value of the cookie.
  • same_site β€” should the cookie be restricted to a first party or same-site context. see the MSDN page at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite for the deets.
  • name β€” the name of the cookie.

This method returns a new cookie object. brand new, fresh out the box, iconic. ✨

πŸ’– http_only

returns the value of the httpOnly flag.

πŸ’– secure

returns the value of the secure flag.

πŸ’– domain

returns the value of the cookie's domain. for example '.metacpan.org' πŸ¦‹

πŸ’– path

returns the value of the cookie's path. for example '/search' πŸ”

πŸ’– expiry

returns the integer value of the cookie's expiry time in seconds since the UNIX epoch. ⏰

πŸ’– value

returns the value of the cookie.

πŸ’– same_site

returns the Same Site value for the cookie (if any). here's the link if you wanna read up on it: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite

πŸ’– name

returns the name of the cookie.


πŸ‘‘ DIAGNOSTICS πŸ‘‘

None. literally nothing. silence. peace. 🧘


🌈 CONFIGURATION AND ENVIRONMENT 🌈

Firefox::Marionette::Cookie requires no configuration files or environment variables. low maintenance queen fr fr πŸ’…


🌸 DEPENDENCIES 🌸

None. she's independent, she doesn't need anybody πŸ¦‹


πŸŽ€ INCOMPATIBILITIES πŸŽ€

None reported. (yet πŸ‘€)


⭐ BUGS AND LIMITATIONS ⭐

to report a bug, or to view the current list of bugs, please visit https://github.com/david-dick/firefox-marionette/issues

bestie, if something's broken, go tell them there. don't suffer in silence. 🫢

πŸ’œ AUTHOR πŸ’œ

David Dick "<ddick@cpan.org>" β€” the icon behind all this πŸ‘‘


Copyright (c) 2024, David Dick "<ddick@cpan.org>". All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See "perlartistic" in perlartistic. ✨


πŸ’€ DISCLAIMER OF WARRANTY πŸ’€

okay this part is the serious part, no jokes, keep reading:

BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.


and that's the whole page, bestie!! πŸŽ€ this was generated by perl v5.40.1 on 2025-03-16, and the manual is Firefo...:Cookie(3pm). go forth and read your cookies. mwah πŸ’‹

πŸ“¦ where this page comes from