Comparing version 5.3.0-beta.40 to 5.3.0-beta.41
{ | ||
"name": "xterm", | ||
"description": "Full xterm terminal, in your browser", | ||
"version": "5.3.0-beta.40", | ||
"version": "5.3.0-beta.41", | ||
"main": "lib/xterm.js", | ||
@@ -6,0 +6,0 @@ "style": "css/xterm.css", |
@@ -6,2 +6,4 @@ /** | ||
import { isElectron } from 'common/Platform'; | ||
export interface IStyleSheet { | ||
@@ -41,7 +43,10 @@ dispose: () => void; | ||
export const createStyle = (parent: HTMLElement): IStyleSheet => { | ||
try { | ||
return createCssStyleSheet(parent.ownerDocument); | ||
} catch { | ||
return createStyleElement(parent); | ||
// The combination of the CSP workaround and the DOM renderer can trigger a crash in electron | ||
// https://github.com/microsoft/vscode/issues/189753 | ||
if (!isElectron) { | ||
try { | ||
return createCssStyleSheet(parent.ownerDocument); | ||
} catch { /* Fall through */ } | ||
} | ||
return createStyleElement(parent); | ||
}; |
@@ -20,2 +20,3 @@ /** | ||
export const isElectron = userAgent.includes('Electron'); | ||
export const isFirefox = userAgent.includes('Firefox'); | ||
@@ -22,0 +23,0 @@ export const isLegacyEdge = userAgent.includes('Edge'); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2346432
24531