# \[SOLVED\] WebExtensions & Firefox Profiles

**URL:** <https://discourse.mozilla.org/t/solved-webextensions-firefox-profiles/17187>\
**Category:** Development\
**Created:** [July 18, 2017, 10:22pm UTC](https://discourse.mozilla.org/t/solved-webextensions-firefox-profiles/17187 "2017-07-18T22:22:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmedshaikhm](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/ahmedshaikhm/32/30912_2.png) [@ahmedshaikhm](https://discourse.mozilla.org/u/ahmedshaikhm)\
**Post date:** [July 18, 2017, 10:22pm UTC](https://discourse.mozilla.org/t/solved-webextensions-firefox-profiles/17187/1 "2017-07-18T22:22:16Z")

</div>

Hey guys,

I am a n00b and trying to create a WebExtesion that can persist data into Firefox Profiles, but unable to find.

Is this feature not available in WebExtensions?

---

<div class="post-metadata">

**Author:** ![DaveRo](https://avatars.discourse-cdn.com/v4/letter/d/838e76/32.png) [@DaveRo](https://discourse.mozilla.org/u/DaveRo)\
**Post date:** [July 19, 2017, 6:01am UTC](https://discourse.mozilla.org/t/solved-webextensions-firefox-profiles/17187/2 "2017-07-19T06:01:13Z")

</div>

> **[storage.local](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/storage/local)**
>
> Represents the local storage area. Items in local storage are local to the machine the extension was installed on.

---

<div class="post-metadata">

**Author:** ![ahmedshaikhm](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/ahmedshaikhm/32/30912_2.png) [@ahmedshaikhm](https://discourse.mozilla.org/u/ahmedshaikhm)\
**Post date:** [July 19, 2017, 6:50am UTC](https://discourse.mozilla.org/t/solved-webextensions-firefox-profiles/17187/3 "2017-07-19T06:50:46Z")

</div>

Do you mean, under WebExtensions we will not be able to store data into profiles?

---

<div class="post-metadata">

**Author:** ![DaveRo](https://avatars.discourse-cdn.com/v4/letter/d/838e76/32.png) [@DaveRo](https://discourse.mozilla.org/u/DaveRo)\
**Post date:** [July 19, 2017, 7:22am UTC](https://discourse.mozilla.org/t/solved-webextensions-firefox-profiles/17187/4 "2017-07-19T07:22:05Z")

</div>

storage.local stores data in a folder in your firefox profile. There are other methods too. Is that not what you wanted? If not, please explain in more detail what you want to do.

---

<div class="post-metadata">

**Author:** ![ahmedshaikhm](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/ahmedshaikhm/32/30912_2.png) [@ahmedshaikhm](https://discourse.mozilla.org/u/ahmedshaikhm)\
**Post date:** [July 19, 2017, 7:32am UTC](https://discourse.mozilla.org/t/solved-webextensions-firefox-profiles/17187/5 "2017-07-19T07:32:29Z")

</div>

Thanks a bunch for answering, yeah this exactly my question, the reason I am confused is because, there is no mention on storage.local page (that you shared) that data in storage.local is stored within current profile.

---

<div class="post-metadata">

**Author:** ![DaveRo](https://avatars.discourse-cdn.com/v4/letter/d/838e76/32.png) [@DaveRo](https://discourse.mozilla.org/u/DaveRo)\
**Post date:** [July 19, 2017, 8:20am UTC](https://discourse.mozilla.org/t/solved-webextensions-firefox-profiles/17187/6 "2017-07-19T08:20:52Z")

</div>

I suspect most if not all types of storage are held in your profile, though storage.local is the only one I’ve used. It’s for simple key:value pairs and is stored in the ‘browser-extension-data’ directory so you can see and edit it. See also storage.sync

Then there’s IndexedDB - which is also held in your profile: [https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB\_API/Browser\_storage\_limits\_and\_eviction\_criteria](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Browser_storage_limits_and_eviction_criteria)

---

<div class="post-metadata">

**Author:** ![ahmedshaikhm](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/ahmedshaikhm/32/30912_2.png) [@ahmedshaikhm](https://discourse.mozilla.org/u/ahmedshaikhm)\
**Post date:** [July 19, 2017, 8:25am UTC](https://discourse.mozilla.org/t/solved-webextensions-firefox-profiles/17187/7 "2017-07-19T08:25:39Z")

</div>

Thanks a bunch mate, this really _answered_ the question. Its a relief that its there 🙂
