# Access to embedded webextension from legacy XUL add-on

**URL:** <https://discourse.mozilla.org/t/access-to-embedded-webextension-from-legacy-xul-add-on/19870>\
**Category:** Development\
**Created:** [October 2, 2017, 4:34pm UTC](https://discourse.mozilla.org/t/access-to-embedded-webextension-from-legacy-xul-add-on/19870 "2017-10-02T16:34:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![NilkasG](https://avatars.discourse-cdn.com/v4/letter/n/0ea827/32.png) [@NilkasG](https://discourse.mozilla.org/u/NilkasG)\
**Post date:** [October 2, 2017, 5:29pm UTC](https://discourse.mozilla.org/t/access-to-embedded-webextension-from-legacy-xul-add-on/19870/2 "2017-10-02T17:29:12Z")

</div>

> [@WebExtensions porting: embeddeding webextension in XUL addon](https://discourse.mozilla.org/t/webextensions-porting-embeddeding-webextension-in-xul-addon/18431):
>
> Hello, I’m trying to rewrite my [mSK](https://addons.mozilla.org/pl/firefox/addon/msession-keeper/) to webextension. First step would be embedding webextension in my current add-on, so I can import user preferences. I know that I need to run webExtension.startup(), but is there a way to do it in XUL, non-boostrapped extension? Does the only option is to rewrite my add-on as bootstrapped and then embed webextension? Regards, Pwl

---

_[View the full topic](https://discourse.mozilla.org/t/access-to-embedded-webextension-from-legacy-xul-add-on/19870)._
