You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: patched-vscode/src/vs/workbench/contrib/webview/browser/pre/index-no-csp.html
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -334,6 +334,12 @@
334
334
335
335
consthostname=location.hostname;
336
336
337
+
// It is safe to run if we are on the same host.
338
+
constparent=newURL(parentOrigin)
339
+
if(parent.hostname===hostname){
340
+
returnstart(parentOrigin)
341
+
}
342
+
337
343
if(!crypto.subtle){
338
344
// cannot validate, not running in a secure context
339
345
thrownewError(`'crypto.subtle' is not available so webviews will not work. This is likely because the editor is not running in a secure context (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).`);
// cannot validate, not running in a secure context
340
346
thrownewError(`'crypto.subtle' is not available so webviews will not work. This is likely because the editor is not running in a secure context (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).`);
$('p.subtitle.description',{},localize({key: 'gettingStarted.editingEvolved',comment: ['Shown as subtitle on the Welcome page.']},"Editing evolved"))
782
+
$('h1.product-name.caption',{},"Code Editor"),
783
+
$('p.subtitle.description',{},localize({key: 'gettingStarted.editingEvolved',comment: ['Shown as subtitle on the Welcome page.']},"Based on Code-OSS, Visual Studio Code Open Source"))
0 commit comments