Comments (11)
@badonyt did you copy the content for the [email protected]
file from Provisioning managed storage rather than the readme for the example? The example for the file in Provisioning managed storage uses American English rather than British English. Using this copy I found the same error but changing to the version in the example readme fix the issue, and it worked as expected.
from webextensions-examples.
The (unexpected?) error was encountered before in https://bugzilla.mozilla.org/show_bug.cgi?id=1784446
The discussion there may help with identifying and resolving the problem.
@rebloor
I think that we can improve the documentation; I'll talk with my team next week to determine the desired course of action, and add dev-doc-needed if needed.
from webextensions-examples.
What do you mean @rebloor
from webextensions-examples.
@badonyt I got the same error as you when I created the manage storage file based on Provisioning managed storage that is:
{
"name": "[email protected]",
"description": "ignored",
"type": "storage",
"data":
{
"color": "management thinks it should be blue!"
}
}
However, using the file content in the example's readme description, that is:
{
"name": "[email protected]",
"description": "ignored",
"type": "storage",
"data": {
"colour": "management thinks it should be blue!"
}
}
The extension worked as expected.
from webextensions-examples.
i still havent understood how to use the storage permission
from webextensions-examples.
@badonyt do you mean the "storage permission" or "storage manifest"? Your reported problem appears to be with the storage manifest. If you still can't get the example to run, could you add screenshots showing the location you stored the [email protected]
file in and a copy of its content? If, however, you need more advice on using "storage permission" try posting a question on the Add-ons forum.
from webextensions-examples.
i dont know where to put this: { "name": "[email protected]", "description": "ignored", "type": "storage", "data": { "colour": "management thinks it should be blue!" } }
from webextensions-examples.
Are you on Mac, Linux, or PC?
from webextensions-examples.
PC, WINDOWS 10, sorry for late response
from webextensions-examples.
I don't have a Windows 10 machine to check but according to the documentation you should create a registry key with the following name:
HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\ManagedStorage\<name>
– with as [email protected]
.
The key should have a single default value, which is the path to the manifest.
See https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_manifests#windows
from webextensions-examples.
Closing, as this doesn't appear to be an issue with the extension example
from webextensions-examples.
Related Issues (20)
- Manifest v3 examples needed HOT 6
- Native messaging example doesn't pong after a while HOT 3
- browser is not defined in firefox HOT 3
- Can't get response in Ubuntu HOT 10
- Python Native Messaging host does not process 1MB input HOT 11
- Image is not loading by innerHTML in the content-script-register HOT 3
- Create an example of getting select text to a variable HOT 2
- Please add example for "Paste text from clipboard" HOT 5
- examples.json should include a way to list significant manifest keys
- Update eslint, fix linting errors and integrate in CI
- MV3 example for getting data from page/content script/activeTab context into action / popup HOT 3
- Broken root-cert-stats due to var -> let change HOT 6
- Firefox Load temporary addon not working HOT 12
- native-messaging app example: provide non-contrived example for each platform HOT 1
- Update root-cert-stats to use runtime.sendMessage HOT 3
- zip does not contain a valid manifest HOT 2
- Examples disabled when run via web-ext or from folder (applyCSS, borderify) HOT 9
- minor bug with native messaging example HOT 2
- native messaging example: port disconnects without an error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webextensions-examples.