NAME
Firefox::Marionette::Cache - Constants to describe actions on the cache
VERSION
Version 1.47
SYNOPSIS
use Firefox::Marionette();
use Firefox::Marionette::Cache qw(:all);
my $firefox = Firefox::Marionette->new();
$firefox->go('https://google.com'); # where is a good site to produce a lot of cookies?
$firefox->go('about:blank');
$firefox->clear_cache(CLEAR_COOKIES());
DESCRIPTION
This module handles the implementation of the Firefox cache constants. This is sourced from toolkit/components/cleardata/nsIClearDataService.idl
CONSTANTS
CLEAR_COOKIES
returns the value of CLEAR_COOKIES, which is 1 << 0 = 1
CLEAR_NETWORK_CACHE
returns the value of CLEAR_NETWORK_CACHE, which is 1 << 1 = 2
CLEAR_IMAGE_CACHE
returns the value of CLEAR_IMAGE_CACHE, which is 1 << 2 = 4
CLEAR_DOWNLOADS
returns the value of CLEAR_DOWNLOADS, which is 1 << 4 = 16
CLEAR_PASSWORDS
returns the value of CLEAR_PASSWORDS, which is 1 << 5 = 32
CLEAR_MEDIA_DEVICES
returns the value of CLEAR_MEDIA_DEVICES, which is 1 << 6 = 64
CLEAR_DOM_QUOTA
returns the value of CLEAR_DOM_QUOTA, which is 1 << 7 = 128 (LocalStorage, IndexedDB, ServiceWorkers, DOM Cache and so on.)
CLEAR_PREDICTOR_NETWORK_DATA
returns the value of CLEAR_PREDICTOR_NETWORK_DATA, which is 1 << 8 = 256
CLEAR_DOM_PUSH_NOTIFICATIONS
returns the value of CLEAR_DOM_PUSH_NOTIFICATIONS, which is 1 << 9 = 512
CLEAR_HISTORY
returns the value of CLEAR_HISTORY, which is 1 << 10 = 1024 (Places history)
CLEAR_SESSION_HISTORY
returns the value of CLEAR_SESSION_HISTORY, which is 1 << 11 = 2048
CLEAR_AUTH_TOKENS
returns the value of CLEAR_AUTH_TOKENS, which is 1 << 12 = 4096
CLEAR_AUTH_CACHE
returns the value of CLEAR_AUTH_CACHE, which is 1 << 13 = 8192 (Login cache)
CLEAR_PERMISSIONS
returns the value of CLEAR_PERMISSIONS, which is 1 << 14 = 16384
CLEAR_CONTENT_PREFERENCES
returns the value of CLEAR_CONTENT_PREFERENCES, which is 1 << 15 = 32768
CLEAR_HSTS
returns the value of CLEAR_HSTS, which is 1 << 16 = 65536 (HTTP Strict Transport Security data)
CLEAR_EME
returns the value of CLEAR_EME, which is 1 << 17 = 131072 (Media plugin data)
CLEAR_REPORTS
returns the value of CLEAR_REPORTS, which is 1 << 18 = 262144 (Reporting API reports)
CLEAR_STORAGE_ACCESS
returns the value of CLEAR_STORAGE_ACCESS, which is 1 << 19 = 524288 (StorageAccessAPI flag, which indicates user interaction)
CLEAR_CERT_EXCEPTIONS
returns the value of CLEAR_CERT_EXCEPTIONS, which is 1 << 20 = 1048576
CLEAR_CONTENT_BLOCKING_RECORDS
returns the value of CLEAR_CONTENT_BLOCKING_RECORDS, which is 1 << 21 = 2097152 (content blocking database)
CLEAR_CSS_CACHE
returns the value of CLEAR_CSS_CACHE, which is 1 << 22 = 4194304 (in-memory CSS cache)
CLEAR_PREFLIGHT_CACHE
returns the value of CLEAR_PREFLIGHT_CACHE, which is 1 << 23 = 8388608 (CORS preflight cache)
CLEAR_CLIENT_AUTH_REMEMBER_SERVICE
returns the value of CLEAR_CLIENT_AUTH_REMEMBER_SERVICE, which is 1 << 24 = 16777216 (clients authentification certificate)
CLEAR_CREDENTIAL_MANAGER_STATE
returns the value of CLEAR_CREDENTIAL_MANAGER_STATE, which is 1 << 24 = 16777216 (FedCM)
CLEAR_ALL
returns the value of CLEAR_ALL, which is 4294967295 (0xFFFFFFFF)
CLEAR_ALL_CACHES
returns the value of CLEAR_ALL_CACHES, which is 12648454 (CLEAR_NETWORK_CACHE | CLEAR_IMAGE_CACHE | CLEAR_CSS_CACHE | CLEAR_PREFLIGHT_CACHE | CLEAR_HSTS)
CLEAR_DOM_STORAGES
returns the value of CLEAR_DOM_STORAGES, which is 262784 (CLEAR_DOM_QUOTA | CLEAR_DOM_PUSH_NOTIFICATIONS | CLEAR_REPORTS)
CLEAR_FORGET_ABOUT_SITE
returns the value of CLEAR_FORGET_ABOUT_SITE, which is 30920599 (CLEAR_HISTORY | CLEAR_SESSION_HISTORY | CLEAR_ALL_CACHES | CLEAR_COOKIES | CLEAR_EME | CLEAR_DOWNLOADS | CLEAR_PERMISSIONS | CLEAR_DOM_STORAGES | CLEAR_CONTENT_PREFERENCES | CLEAR_PREDICTOR_NETWORK_DATA | CLEAR_DOM_PUSH_NOTIFICATIONS | CLEAR_CLIENT_AUTH_REMEMBER_SERVICE | CLEAR_REPORTS | CLEAR_CERT_EXCEPTIONS | CLEAR_CREDENTIAL_MANAGER_STATE)
SUBROUTINES/METHODS
None.
DIAGNOSTICS
None.
CONFIGURATION AND ENVIRONMENT
Firefox::Marionette::Cache requires no configuration files or environment variables.
DEPENDENCIES
None.
INCOMPATIBILITIES
None reported.
BUGS AND LIMITATIONS
To report a bug, or view the current list of bugs, please visit https://github.com/david-dick/firefox-marionette/issues
AUTHOR
David Dick <ddick@cpan.org>
LICENSE AND COPYRIGHT
Copyright (c) 2023, 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
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.