Closed Bug 1580224 Opened 6 years ago Closed 6 years ago

Cannot add storage items to Extension Storage using Test extension Content Script

Categories

(WebExtensions :: Storage, defect)

Desktop
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

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]:

  1. In about:debugging click to temporarily load an extension.
  2. Select the test extension and the Inspect it.
  3. Navigate to the Storage panel and select the Extension Storage item.
  4. 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".
  5. 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.

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.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: