Skip to content

Commit e1ec444

Browse files
samuelmaddockDevtools-frontend LUCI CQ
authored andcommitted
Add targetOrigin parameter to postMessage in RehydratingConnection
This was missed in https://crrev.com/c/7063233 which prevents embedders from receiving REHYDRATING_IFRAME_READY. Bug: 453705035 Change-Id: I3bc28cce3a1556c651bda5a369cf05888a0c463b Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7076796 Reviewed-by: Jack Franklin <[email protected]> Reviewed-by: Paul Irish <[email protected]> Commit-Queue: Sam Maddock <[email protected]>
1 parent 61f924e commit e1ec444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

front_end/core/sdk/RehydratingConnection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class RehydratingConnection implements ProtocolClient.ConnectionTransport
109109
if (this.#rehydratingWindow.opener) {
110110
this.#rehydratingWindow.opener.postMessage({type: 'REHYDRATING_WINDOW_READY'});
111111
} else if (this.#rehydratingWindow !== window.top) {
112-
this.#rehydratingWindow.parent.postMessage({type: 'REHYDRATING_IFRAME_READY'});
112+
this.#rehydratingWindow.parent.postMessage({type: 'REHYDRATING_IFRAME_READY'}, '*');
113113
} else {
114114
this.#onConnectionLost(i18nString(UIStrings.noHostWindow));
115115
}

0 commit comments

Comments
 (0)