提交 0d6a1f8e 编写于 作者: J Johannes Rieken

TrustedTypes - use clearNode instead of innerHTML

上级 a002404b
......@@ -4,7 +4,7 @@
# Excluding: *.test.ts
# ContextLines: 3
59 results - 40 files
57 results - 39 files
src/vs/base/browser/markdownRenderer.ts:
156 const strValue = values[0];
......@@ -382,16 +382,6 @@ src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.ts:
604 return dragImageContainer;
605 }
src/vs/workbench/contrib/notebook/browser/view/renderers/cellWidgets.ts:
77 return;
78 }
79
80: this.leftContributedItemsContainer.innerHTML = '';
81: this.rightContributedItemsContainer.innerHTML = '';
82 this.itemsDisposable.clear();
83
84 const items = this.notebookCellStatusBarService.getEntries(this.currentContext.cell.uri);
src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.ts:
375 addMouseoverListeners(outputNode, outputId);
376 const content = data.content;
......
......@@ -77,8 +77,8 @@ export class CellEditorStatusBar extends Disposable {
return;
}
this.leftContributedItemsContainer.innerHTML = '';
this.rightContributedItemsContainer.innerHTML = '';
DOM.clearNode(this.leftContributedItemsContainer);
DOM.clearNode(this.rightContributedItemsContainer);
this.itemsDisposable.clear();
const items = this.notebookCellStatusBarService.getEntries(this.currentContext.cell.uri);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册