@theia/plugin-ext 1.18.0-next.124 → 1.18.0-next.125

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.
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
2
  "name": "@theia/plugin-ext",
3
- "version": "1.18.0-next.124+008c2a1bbee",
3
+ "version": "1.18.0-next.125+fd50e5c08e1",
4
4
  "description": "Theia - Plugin Extension",
5
5
  "main": "lib/common/index.js",
6
6
  "typings": "lib/common/index.d.ts",
7
7
  "dependencies": {
8
- "@theia/bulk-edit": "1.18.0-next.124+008c2a1bbee",
9
- "@theia/callhierarchy": "1.18.0-next.124+008c2a1bbee",
10
- "@theia/console": "1.18.0-next.124+008c2a1bbee",
11
- "@theia/core": "1.18.0-next.124+008c2a1bbee",
12
- "@theia/debug": "1.18.0-next.124+008c2a1bbee",
13
- "@theia/editor": "1.18.0-next.124+008c2a1bbee",
14
- "@theia/file-search": "1.18.0-next.124+008c2a1bbee",
15
- "@theia/filesystem": "1.18.0-next.124+008c2a1bbee",
16
- "@theia/markers": "1.18.0-next.124+008c2a1bbee",
17
- "@theia/messages": "1.18.0-next.124+008c2a1bbee",
18
- "@theia/monaco": "1.18.0-next.124+008c2a1bbee",
19
- "@theia/navigator": "1.18.0-next.124+008c2a1bbee",
20
- "@theia/output": "1.18.0-next.124+008c2a1bbee",
21
- "@theia/plugin": "1.18.0-next.124+008c2a1bbee",
22
- "@theia/preferences": "1.18.0-next.124+008c2a1bbee",
23
- "@theia/scm": "1.18.0-next.124+008c2a1bbee",
24
- "@theia/search-in-workspace": "1.18.0-next.124+008c2a1bbee",
25
- "@theia/task": "1.18.0-next.124+008c2a1bbee",
26
- "@theia/terminal": "1.18.0-next.124+008c2a1bbee",
27
- "@theia/timeline": "1.18.0-next.124+008c2a1bbee",
28
- "@theia/workspace": "1.18.0-next.124+008c2a1bbee",
8
+ "@theia/bulk-edit": "1.18.0-next.125+fd50e5c08e1",
9
+ "@theia/callhierarchy": "1.18.0-next.125+fd50e5c08e1",
10
+ "@theia/console": "1.18.0-next.125+fd50e5c08e1",
11
+ "@theia/core": "1.18.0-next.125+fd50e5c08e1",
12
+ "@theia/debug": "1.18.0-next.125+fd50e5c08e1",
13
+ "@theia/editor": "1.18.0-next.125+fd50e5c08e1",
14
+ "@theia/file-search": "1.18.0-next.125+fd50e5c08e1",
15
+ "@theia/filesystem": "1.18.0-next.125+fd50e5c08e1",
16
+ "@theia/markers": "1.18.0-next.125+fd50e5c08e1",
17
+ "@theia/messages": "1.18.0-next.125+fd50e5c08e1",
18
+ "@theia/monaco": "1.18.0-next.125+fd50e5c08e1",
19
+ "@theia/navigator": "1.18.0-next.125+fd50e5c08e1",
20
+ "@theia/output": "1.18.0-next.125+fd50e5c08e1",
21
+ "@theia/plugin": "1.18.0-next.125+fd50e5c08e1",
22
+ "@theia/preferences": "1.18.0-next.125+fd50e5c08e1",
23
+ "@theia/scm": "1.18.0-next.125+fd50e5c08e1",
24
+ "@theia/search-in-workspace": "1.18.0-next.125+fd50e5c08e1",
25
+ "@theia/task": "1.18.0-next.125+fd50e5c08e1",
26
+ "@theia/terminal": "1.18.0-next.125+fd50e5c08e1",
27
+ "@theia/timeline": "1.18.0-next.125+fd50e5c08e1",
28
+ "@theia/workspace": "1.18.0-next.125+fd50e5c08e1",
29
29
  "@types/markdown-it": "*",
30
30
  "@types/mime": "^2.0.1",
31
31
  "decompress": "^4.2.1",
@@ -92,5 +92,5 @@
92
92
  "nyc": {
93
93
  "extends": "../../configs/nyc.json"
94
94
  },
95
- "gitHead": "008c2a1bbee0f3294f8f44556b081bd013bb21e6"
95
+ "gitHead": "fd50e5c08e134457a342bfc13d5a339be7ae514a"
96
96
  }
@@ -26,6 +26,8 @@
26
26
  constructor() {
27
27
  this.handlers = new Map();
28
28
  window.addEventListener('message', e => {
29
+ // Note: `window.parent === window` when there is no parent...
30
+ const sourceIsSelfOrParentFrame = e.source === window.parent;
29
31
  let sourceIsChildFrame = false;
30
32
  for (let i = 0; i < window.frames.length; i++) {
31
33
  const frame = window.frames[i];
@@ -35,11 +37,8 @@
35
37
  }
36
38
  }
37
39
  if (sourceIsChildFrame && e.data && (e.data.command === 'onmessage' || e.data.command === 'do-update-state')) {
38
- // Came from inner iframe
39
40
  this.postMessage(e.data.command, e.data.data);
40
- }
41
- // Note: `window.parent === window` when there is no parent...
42
- if (sourceIsChildFrame || e.source === window.parent) {
41
+ } else if (sourceIsChildFrame || sourceIsSelfOrParentFrame) {
43
42
  const channel = e.data.channel;
44
43
  const handler = this.handlers.get(channel);
45
44
  if (handler) {