@salesforce-ui-embedding/internal-lightning-out-containers 2.2.7-rc.3 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -95,6 +95,11 @@ export default class LightningOutBaseContainer extends LightningElement {
|
|
|
95
95
|
);
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
|
+
// Pin the sender to the host window (window.parent). Skipped in testMode where the page is not framed.
|
|
99
|
+
if (!this.#env.testMode && event.source !== window.parent) {
|
|
100
|
+
window.console.log("Lightning Out: Message ignored due to untrusted source");
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
98
103
|
switch (event.data.type) {
|
|
99
104
|
case MSG.ADD_EVENT_LISTENER: {
|
|
100
105
|
const eventName = event.data.name;
|
package/package.json
CHANGED