actors.resources module

class actors.resources.ResourceActor(rdp_client: RDPClient, actor_id='')

Bases: Actor

Internal inofficial actor

clear_resources(resources: List[Resources])
unwatch_resources(resources: List[Resources])
watch_resources(resources: List[Resources])
class actors.resources.Resources(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: str, Enum

On some actors only a few resource types may be working. https://github.com/mozilla/gecko-dev/blob/master/devtools/server/actors/resources/index.js

CACHE_STORAGE = 'Cache'
CONSOLE_MESSAGE = 'console-message'
COOKIE = 'cookies'
CSS_CHANGE = 'css-change'
CSS_MESSAGE = 'css-message'
DOCUMENT_EVENT = 'document-event'
ERROR_MESSAGE = 'error-message'
EXTENSIONS_BGSCRIPT_STATUS = 'extensions-backgroundscript-status'
INDEXED_DB = 'indexed-db'
LOCAL_STORAGE = 'local-storage'
NETWORK_EVENT = 'network-event'
NETWORK_EVENT_STACKTRACE = 'network-event-stacktrace'
PLATFORM_MESSAGE = 'platform-message'
REFLOW = 'reflow'
SERVER_SENT_EVENT = 'server-sent-event'
SESSION_STORAGE = 'session-storage'
SOURCE = 'source'
STYLESHEET = 'stylesheet'
THREAD_STATE = 'thread-state'
WEBSOCKET = 'websocket'