Skip to content

Commit 608f7c2

Browse files
authored
Fixed blank inspectors due to new contextIsolation default value (#2321)
* Fixed blank inspectors due to new contextIsolation default value in Electron 13 * Added changelog entry
1 parent 0a75699 commit 608f7c2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## Added
99
- [main] Bumped `electron` to v13.6.1 in PR [2318](https://github.com/microsoft/BotFramework-Emulator/pull/2318)
1010
- [main] Fixed early restify route termination in `replyToActivity` handler in PR [2320](https://github.com/microsoft/BotFramework-Emulator/pull/2320)
11+
- [client] Set `contextIsolation` to `false` in Inspector `<webview>` elements in PR [2321](https://github.com/microsoft/BotFramework-Emulator/pull/2321)
1112

1213
## v4.14.0 - 2021 - 7 - 15
1314
## Added

packages/app/client/src/ui/editor/emulator/parts/inspector/inspector.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ export class Inspector extends React.Component<InspectorProps, InspectorState> {
358358
webView.setAttribute('partition', `persist:${state.botHash}`);
359359
webView.setAttribute('preload', state.inspector.preloadPath);
360360
webView.setAttribute('src', encodeURI(state.inspector.src));
361+
webView.setAttribute('webPreferences', `contextIsolation=no`);
361362
return webView;
362363
}
363364

0 commit comments

Comments
 (0)