GITBOOK-4316: No subject

This commit is contained in:
CPol 2024-04-19 00:28:25 +00:00 committed by gitbook-bot
parent fb82ef7e95
commit 0e8c469cda
No known key found for this signature in database
GPG key ID: 07D2180C7B12D0FF
2 changed files with 2 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

View file

@ -468,6 +468,8 @@ Therefore, the memory of the Browser Extension **shouldn't be considered secure*
Of course, do **not put sensitive information in the code**, as it will be **public**.
To dump memory from the browser you could **dump the process memory** or to go to the **settings** of the browser extension click on **`Inspect pop-up`** -> In the **`Memory`** section -> **`Take a snaphost`** and **`CTRL+F`** to search inside the snapshot for sensitive info.
## Content Script **↔︎** Background Script Communication
A Content Script can use the functions [**runtime.sendMessage()**](https://developer.chrome.com/docs/extensions/reference/runtime#method-sendMessage) **or** [**tabs.sendMessage()**](https://developer.chrome.com/docs/extensions/reference/tabs#method-sendMessage) to send a **one-time JSON-serializable** message.