Cannot add storage items to Extension Storage using Test extension Content Script
Categories
(WebExtensions :: Storage, defect)
Tracking
(Not tracked)
People
(Reporter: mcurtean, Unassigned)
Details
Attachments
(2 files)
[Affected versions]:
Firefox 70.0b4 (20190905174512)
Firefox 71.0a1 (20190910095613)
[Affected platforms]:
Windows 10 64bit.
Linux 18.04.3 LTS
MacOS HighSierra 10.13.6
[Prerequisites]
Using the attached test extension 1-1.1. (either the manifest.json or the by turning it into an xpi file)
In about:config, set devtools.storage.extensionStorage.enabled to true.
[Steps to reproduce]:
- In about:debugging click to temporarily load an extension.
- Select the test extension and the Inspect it.
- Navigate to the Storage panel and select the Extension Storage item.
- Click the browserAction toolbar icon for the extension and click "Content script adds a new storage item" or "Content script bulk adds several storage items".
- View the Extension Storage sidepanel.
[Expected results]:
The "Extension Storage" item list is updated after each click with either one or several local storage items.
[Actual results]:
The "Extension Storage" item list is not updated, even after refreshing the devtoolbox.
Reporter | ||
Comment 1•6 years ago
|
||
Reporter | ||
Comment 2•6 years ago
|
||
This occurred due to not having a page https:/ page loaded or reloaded in another window, which is necessary when performing the content script actions. The "TypeError: CONTENT_SCRIPT_PORT is null" was received in the console.
What the error, TypeError: CONTENT_SCRIPT_PORT is null means:
Make sure you have an http(s):// page loaded in a tab (e.g. https://www.mozilla.org/).
If the extension has restarted (e.g. disabled/re-enabled, reloaded…) since the page was loaded, you may need to reload the page.
Description
•