# Bug/regression report: PS 26.6 breaks "postMessage" communication between the host and local webview

**URL:** <https://forums.creativeclouddeveloper.com/t/bug-regression-report-ps-26-6-breaks-postmessage-communication-between-the-host-and-local-webview/10824>\
**Category:** Photoshop\
**Tags:** bug, uxp, javascript\
**Created:** [May 7, 2025, 10:54am UTC](https://forums.creativeclouddeveloper.com/t/bug-regression-report-ps-26-6-breaks-postmessage-communication-between-the-host-and-local-webview/10824 "2025-05-07T10:54:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jolg42](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jolg42/32/3888_2.png) [@jolg42](https://forums.creativeclouddeveloper.com/u/jolg42)\
**Post date:** [May 7, 2025, 10:54am UTC](https://forums.creativeclouddeveloper.com/t/bug-regression-report-ps-26-6-breaks-postmessage-communication-between-the-host-and-local-webview/10824/1 "2025-05-07T10:54:31Z")

</div>

Hi,

I found out that Photoshop 26.6 has a regression regarding the communication between the extension (host) and the webview.

This bug completely breaks our extension since we rely on the host and the local webview to be able to communicate in both ways.

Here is an example to download: [repro-webview-communication.zip](https://forums.creativeclouddeveloper.com/uploads/short-url/A9WJmVqOgzXlma76fGxSj3K52SB.zip) (3.4 KB)

The extension once loaded should look like this, without the bug, on the versions 26.5 and 26.4.1 (I did not test prior versions)

 ![Screenshot 2025-05-07 at 12.43.20](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/a/a4fbc4fc00814ec57c96da6642155306b103dd63.png)  
Here the 2 way communication is successful.

On Photoshop 26.6 it looks like this:

 ![Screenshot 2025-05-07 at 12.48.29](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/8/84925f4afcb72c6e97a2825351163158c7446708.png)  
You can see that the host could successfully receive a message coming from the webview.  
But the webview fails to receive the message from the host.  
The 2 way communication is broken, we only got 1 way working: From the webview to the host but not the opposite.

Are you aware of this regression?  
Is there a better place to report it maybe?

Best regards

---

<div class="post-metadata">

**Author:** ![jolg42](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jolg42/32/3888_2.png) [@jolg42](https://forums.creativeclouddeveloper.com/u/jolg42)\
**Post date:** [May 7, 2025, 11:01am UTC](https://forums.creativeclouddeveloper.com/t/bug-regression-report-ps-26-6-breaks-postmessage-communication-between-the-host-and-local-webview/10824/2 "2025-05-07T11:01:37Z")

</div>

I found out that changing the setting of “enableMessageBridge” affects this.

this regression only happens for `"enableMessageBridge": "localOnly"`  
Example manifest (from .zip):

```auto
  "requiredPermissions": {
    "localFileSystem": "request",
    "webview": {
      "allow": "yes",
      "allowLocalRendering": "yes",
      "domains": "all",
      "enableMessageBridge": "localOnly"
    },
  },

```

Changing `"enableMessageBridge"` value to `"localAndRemote"` fixes the problem: the 2 way communication is restored.

This is not a great workaround since it means that as a developer I need to ask for extended permissions that should not be needed, since the webview is a local file here. But that works.
