# Embedded webview

**URL:** <https://forums.creativeclouddeveloper.com/t/embedded-webview/773>\
**Category:** UXP Plugin API\
**Tags:** api-feedback\
**Created:** [April 19, 2019, 7:16pm UTC](https://forums.creativeclouddeveloper.com/t/embedded-webview/773 "2019-04-19T19:16:39Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Velara](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/velara/32/1278_2.png) [@Velara](https://forums.creativeclouddeveloper.com/u/Velara)\
**Post date:** [April 19, 2019, 7:16pm UTC](https://forums.creativeclouddeveloper.com/t/embedded-webview/773/1 "2019-04-19T19:16:39Z")

</div>

Add support for embedded browser / web view.

**Use Case**  
Xanthar is a graphic designer who is creating graphics for a medical imaging company. He’s created a plugin that pulls in x-rays he receives, adds a layer of vector graphics over them and then exports the artboard to SVG in an HTML page on the local intranet.

He has automated some of it but when the doctor wants to see the export they have to open a browser, copy a link from the plugin and paste that link into the browser.

Xanthar found the new web view API and is able to open the exported HTML page right in XD.

**Use Case**  
Lily is a botanist, computer scientist and teacher from India that is using XD to create artificial flowers in vector format from her growth branching algorithm.

She released her first plugin one month ago and her students are starting to use it but have been emailing her on how to use it. She decides to write instructions for her users in Word and exports it to HTML. She put the instructions online but the internet goes down multiple times a day so she wants to include the web page with her plugin.

She finds out about the web view and when her users click on the help icon the help page loads right in her plugin.

---

<div class="post-metadata">

**Author:** ![stevekwak](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/stevekwak/32/48_2.png) [@stevekwak](https://forums.creativeclouddeveloper.com/u/stevekwak)\
**Post date:** [April 19, 2019, 10:03pm UTC](https://forums.creativeclouddeveloper.com/t/embedded-webview/773/2 "2019-04-19T22:03:43Z")

</div>

We’ve received this request from other partners as well. We will discuss this internally and report back here.

---

<div class="post-metadata">

**Author:** ![sammarks](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/sammarks/32/350_2.png) [@sammarks](https://forums.creativeclouddeveloper.com/u/sammarks)\
**Post date:** [April 28, 2019, 8:57pm UTC](https://forums.creativeclouddeveloper.com/t/embedded-webview/773/4 "2019-04-28T20:57:31Z")

</div>

I think this would also ease some of the development pressure on the Adobe team. My understanding is since UXP is _not_ built on something like Electron (basically just a web browser), but is instead using web technologies to define the user interface, being rendered using proprietary code, it’s going to be very hard to make sure the UXP runtime is in sync with the latest web technologies.

A lot of plugins currently written on CEP make use of these modern technologies to create high-quality user interfaces and innovative features. If the plugin authors are limited to a fairly small scope of HTML, I think their ability to innovate and help push Adobe products to new limits would be severely limited.

---

<div class="post-metadata">

**Author:** ![stevekwak](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/stevekwak/32/48_2.png) [@stevekwak](https://forums.creativeclouddeveloper.com/u/stevekwak)\
**Post date:** [April 29, 2019, 3:01pm UTC](https://forums.creativeclouddeveloper.com/t/embedded-webview/773/5 "2019-04-29T15:01:41Z")

</div>

Including @afuchs for visibility. We’ve got a couple of helpful feedbacks on this webview feature request

---

<div class="post-metadata">

**Author:** ![cpryland](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cpryland/32/1172_2.png) [@cpryland](https://forums.creativeclouddeveloper.com/u/cpryland)\
**Post date:** [April 30, 2019, 5:09pm UTC](https://forums.creativeclouddeveloper.com/t/embedded-webview/773/6 "2019-04-30T17:09:30Z")

</div>

I think you’ll be surprised at how wide the HTML/CSS coverage already is, and it’s getting wider.

---

<div class="post-metadata">

**Author:** ![sammarks](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/sammarks/32/350_2.png) [@sammarks](https://forums.creativeclouddeveloper.com/u/sammarks)\
**Post date:** [April 30, 2019, 5:20pm UTC](https://forums.creativeclouddeveloper.com/t/embedded-webview/773/7 "2019-04-30T17:20:58Z")

</div>

Good to hear! Excited to keep following these updates.

---

<div class="post-metadata">

**Author:** ![cpryland](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cpryland/32/1172_2.png) [@cpryland](https://forums.creativeclouddeveloper.com/u/cpryland)\
**Post date:** [October 2, 2019, 7:26pm UTC](https://forums.creativeclouddeveloper.com/t/embedded-webview/773/8 "2019-10-02T19:26:12Z")

</div>

How about this one @kerrishotts?

---

<div class="post-metadata">

**Author:** ![stevekwak](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/stevekwak/32/48_2.png) [@stevekwak](https://forums.creativeclouddeveloper.com/u/stevekwak)\
**Post date:** [October 3, 2019, 2:44pm UTC](https://forums.creativeclouddeveloper.com/t/embedded-webview/773/9 "2019-10-03T14:44:12Z")

</div>

We understand there is a high demand for this feature and we discussed this internally. However, due to performance and security reasons, this won’t be implemented in the near future. Moving to UXP from CEP was because of this core reason to begin with.

---

<div class="post-metadata">

**Author:** ![saariko](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@saariko](https://forums.creativeclouddeveloper.com/u/saariko)\
**Post date:** [April 5, 2021, 11:21pm UTC](https://forums.creativeclouddeveloper.com/t/embedded-webview/773/10 "2021-04-05T23:21:06Z")

</div>

thnx @stevekwak  
1.5 years later… i assume this is still Adobe’s position?  
Asking because we build CEP extensions that rely on iframes to connect to our backend enterprise app… and are concerned with this UXP limitation.

As an alternative, if we build a desktop standalone app (for example in Electron), will there be a way to establish a 2-way communication bridge from our app to our UXP plugin, as a replacement for an in-UXP iframe?

---

<div class="post-metadata">

**Author:** ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)\
**Post date:** [April 6, 2021, 1:50am UTC](https://forums.creativeclouddeveloper.com/t/embedded-webview/773/11 "2021-04-06T01:50:52Z")

</div>

The latter is already possible, and lots of plugins make use of it in one way or another. Basically, your helper app needs to start up a local websocket server, and UXP plugins can then connect to that. Once connected, you can send information back and forth quite rapidly.

We are looking at bringing some initial webview support to UXP, but it will first be limited to modal dialogs, and we still have a lot of security issues to iron out. (Webviews in our host applications are non-trivial.) There are a _whole host_ of issues for supporting webviews in panels (keyboard focus is a big one!), and we’re also working through that. Furthermore, webviews do incur a fairly heavy memory and performance hit, especially if used in multiple panels.

It’s also worth nothing that a lot of plugins that used webviews in CEP also mixed that with Node.js – the latter is something UXP has no plans to support. If you need Node.js in your plugin, a helper app is the way to go.

Also coming this year is also a launchApplication API so that you can launch your helper app should it not be running. This should improve the user experience of helper apps greatly.

---

<div class="post-metadata">

**Author:** ![cpryland](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cpryland/32/1172_2.png) [@cpryland](https://forums.creativeclouddeveloper.com/u/cpryland)\
**Post date:** [May 6, 2021, 6:37pm UTC](https://forums.creativeclouddeveloper.com/t/embedded-webview/773/12 "2021-05-06T18:37:41Z")

</div>

> [@kerrishotts](#):
>
> Also coming this year is also a launchApplication API so that you can launch your helper app should it not be running. This should improve the user experience of helper apps greatly.

Yes, please^100, as soon as humanly possible or even sooner. 😉

---

<div class="post-metadata">

**Author:** ![sturm](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/sturm/32/1441_2.png) [@sturm](https://forums.creativeclouddeveloper.com/u/sturm)\
**Post date:** [June 8, 2021, 5:07pm UTC](https://forums.creativeclouddeveloper.com/t/embedded-webview/773/13 "2021-06-08T17:07:48Z")

</div>

> [@kerrishotts](#):
>
> The latter is already possible, and lots of plugins make use of it in one way or another. Basically, your helper app needs to start up a local websocket server, and UXP plugins can then connect to that. Once connected, you can send information back and forth quite rapidly.

Hey, Kerri, thanks for clearing this up. I do have a request, however: Could you please provide some links to information on making this happen? Tutorials, libraries, anything.

I’ve purchased and tried following [Davide Barranca’s “JavaScript Native Applications for Photoshop” course](https://www.ps-scripting.com/js-native-apps-for-photoshop.html) but got stuck in the middle of it because the [socket.io](http://socket.io) communication doesn’t appear to work on Windows (or I’m just doing something wrong). Are there any other resources I can utilize to help me learn how to connect an NW.js or Electron app to a UXP plugin?
