Skip to content

Safari 14 no longer able to load vscode.dev, affecting shipped WebKit of macOS 11 and iOS 15 #213143

Open

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.89.1
  • OS Version: macOS 11.2.3

Steps to Reproduce:

  1. Open vscode.dev in Safari
  2. Get blank webpage

macOS 11.2.3, Safari 14.0.3
image

iOS 15.1.1, Safari 14.1
IMG_C731095B502F-1

Activity

  1. Torrekie commented on May 30, 2024

    @Torrekie
    Author

    can confirm this issue happens since 1.88.0, the latest vscode.dev is having error:

    SyntaxError: Unexpected token '{' at workbench.web.main.js:7
    

    Which is a compiled one-line regex

    Details `}),I}}e.$U=t}),define(se[157],re([1,0]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.$mb=void 0,e.$fb=t,e.$gb=S,e.$hb=E,e.$ib=L,e.$jb=I,e.$kb=w,e.$lb=C,e.$nb=y,e.$ob=$,e.$pb=p,e.$qb=f,e.$rb=i;function t(h,o){const d=S(h,o);if(d!==-1)return h[d]}function S(h,o,d=h.length-1){for(let u=d;u>=0;u--){const a=h[u];if(o(a))return u}return-1}function E(h,o){const d=L(h,o);return d===-1?void 0:h[d]}function L(h,o,d=0,u=h.length){let a=d,r=u;for(;a0&&(d=a)}return d}function $(h,o){if(h.length===0)return;let d=h[0];for(let u=1;u=0&&(d=a)}return d}function p(h,o){return y(h,(d,u)=>-o(d,u))}function f(h,o){if(h.length===0)return-1;let d=0;for(let u=1;u0&&(d=u)}return d}function i(h,o){for(const d of h){const u=o(d);if(u!==void 0)return u}}}),define(se[353],re([1,0]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.$K=t,e.$L=S,e.$M=E,e.$N=L;function t(I,w){const C=Object.create(null);for(const v of I){const y=w(v);let $=C[y];$||($=C[y]=[]),$.push(v)}return C}function S(I,w){const C=[],v=[];for(const y of I)w.has(y)||C.push(y);for(const y of w)I.has(y)||v.push(y);return{removed:C,added:v}}function E(I,w){const C=[],v=[];for(const[y,$]of I)w.has(y)||C.push($);for(const[y,$]of w)I.has(y)||v.push($);return{removed:C,added:v}}function L(I,w){const C=new Set;for(const v of w)I.has(v)&&C.add(v);return C}}),define(se[75],re([1,0]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.$Pt=e.$Ot=e.$Nt=e.$Mt=void 0;function t(w,C){const v=Math.pow(10,C);return Math.round(w*v)/v}class S{constructor(C,v,y,$=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,C))|0,this.g=Math.min(255,Math.max(0,v))|0,this.b=Math.min(255,Math.max(0,y))|0,this.a=t(Math.max(Math.min(1,$),0),3)}static equals(C,v){return C.r===v.r&&C.g===v.g&&C.b===v.b&&C.a===v.a}}e.$Mt=S;class E{constructor(C,v,y,$){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,C),0)|0,this.s=t(Math.max(Math.min(1,v),0),3),this.l=t(Math.max(Math.min(1,y),0),3),this.a=t(Math.max(Math.min(1,$),0),3)}static equals(C,v){return C.h===v.h&&C.s===v.s&&C.l===v.l&&C.a===v.a}static fromRGBA(C){const v=C.r/255,y=C.g/255,$=C.b/255,p=C.a,f=Math.max(v,y,$),i=Math.min(v,y,$);let h=0,o=0;const d=(i+f)/2,u=f-i;if(u>0){switch(o=Math.min(d<=.5?u/(2*d):u/(2-2*d),1),f){case v:h=(y-$)/u+(y<$?6:0);break;case y:h=($-v)/u+2;break;case $:h=(v-y)/u+4;break}h*=60,h=Math.round(h)}return new E(h,o,d,p)}static i(C,v,y){return y<0&&(y+=1),y>1&&(y-=1),y<1/6?C+(v-C)*6*y:y<1/2?v:y<2/3?C+(v-C)*(2/3-y)*6:C}static toRGBA(C){const v=C.h/360,{s:y,l:$,a:p}=C;let f,i,h;if(y===0)f=i=h=$;else{const o=$<.5?$*(1+y):$+y-$*y,d=2*$-o;f=E.i(d,o,v+1/3),i=E.i(d,o,v),h=E.i(d,o,v-1/3)}return new S(Math.round(f*255),Math.round(i*255),Math.round(h*255),p)}}e.$Nt=E;class L{constructor(C,v,y,$){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,C),0)|0,this.s=t(Math.max(Math.min(1,v),0),3),this.v=t(Math.max(Math.min(1,y),0),3),this.a=t(Math.max(Math.min(1,$),0),3)}static equals(C,v){return C.h===v.h&&C.s===v.s&&C.v===v.v&&C.a===v.a}static fromRGBA(C){const v=C.r/255,y=C.g/255,$=C.b/255,p=Math.max(v,y,$),f=Math.min(v,y,$),i=p-f,h=p===0?0:i/p;let o;return i===0?o=0:p===v?o=((y-$)/i%6+6)%6:p===y?o=($-v)/i+2:o=(v-y)/i+4,new L(Math.round(o*60),h,p,C.a)}static toRGBA(C){const{h:v,s:y,v:$,a:p}=C,f=$*y,i=f*(1-Math.abs(v/60%2-1)),h=$-f;let[o,d,u]=[0,0,0];return v<60?(o=f,d=i):v<120?(o=i,d=f):v<180?(d=f,u=i):v<240?(d=i,u=f):v<300?(o=i,u=f):v<=360&&(o=f,u=i),o=Math.round((o+h)*255),d=Math.round((d+h)*255),u=Math.round((u+h)*255),new S(o,d,u,p)}}e.$Ot=L;class I{static fromHex(C){return I.Format.CSS.parseHex(C)||I.red}static equals(C,v){return!C&&!v?!0:!C||!v?!1:C.equals(v)}get hsla(){return this.i?this.i:E.fromRGBA(this.rgba)}get hsva(){return this.j?this.j:L.fromRGBA(this.rgba)}constructor(C){if(C)if(C instanceof S)this.rgba=C;else if(C instanceof E)this.i=C,this.rgba=E.toRGBA(C);else if(C instanceof L)this.j=C,this.rgba=L.toRGBA(C);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(C){return!!C&&S.equals(this.rgba,C.rgba)&&E.equals(this.hsla,C.hsla)&&L.equals(this.hsva,C.hsva)}getRelativeLuminance(){const C=I.k(this.rgba.r),v=I.k(this.rgba.g),y=I.k(this.rgba.b),$=.2126*C+.7152*v+.0722*y;return t($,4)}static k(C){const v=C/255;return v<=.03928?v/12.92:Math.pow((v+.055)/1.055,2.4)}getContrastRatio(C){const v=this.getRelativeLuminance(),y=C.getRelativeLuminance();return v>y?(v+.05)/(y+.05):(y+.05)/(v+.05)}isDarker(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3<128}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(C){const v=this.getRelativeLuminance(),y=C.getRelativeLuminance();return v>y}isDarkerThan(C){const v=this.getRelativeLuminance(),y=C.getRelativeLuminance();return vI.o($,y));return I.o(this,v)}static o(C,v){const y=1-C.rgba.a;return new I(new S(y*v.rgba.r+C.rgba.a*C.rgba.r,y*v.rgba.g+C.rgba.a*C.rgba.g,y*v.rgba.b+C.rgba.a*C.rgba.b))}toString(){return this.u||(this.u=I.Format.CSS.format(this)),this.u}static getLighterColor(C,v,y){if(C.isLighterThan(v))return C;y=y||.5;const $=C.getRelativeLuminance(),p=v.getRelativeLuminance();return y=y*(p-$)/p,C.lighten(y)}static getDarkerColor(C,v,y){if(C.isDarkerThan(v))return C;y=y||.5;const $=C.getRelativeLuminance(),p=v.getRelativeLuminance();return y=y*($-p)/$,C.darken(y)}static{this.white=new I(new S(255,255,255,1))}static{this.black=new I(new S(0,0,0,1))}static{this.red=new I(new S(255,0,0,1))}static{this.blue=new I(new S(0,0,255,1))}static{this.green=new I(new S(0,255,0,1))}static{this.cyan=new I(new S(0,255,255,1))}static{this.lightgrey=new I(new S(211,211,211,1))}static{this.transparent=new I(new S(0,0,0,0))}}e.$Pt=I,function(w){let C;(function(v){let y;(function($){function p(n){return n.rgba.a===1?`rgb(${n.rgba.r}, ${n.rgba.g}, ${n.rgba.b})`:w.Format.CSS.formatRGBA(n)}$.formatRGB=p;function f(n){return`rgba(${n.rgba.r}, ${n.rgba.g}, ${n.rgba.b}, ${+n.rgba.a.toFixed(2)})`}$.formatRGBA=f;function i(n){return n.hsla.a===1?`hsl(${n.hsla.h}, ${(n.hsla.s*100).toFixed(2)}%, ${(n.hsla.l*100).toFixed(2)}%)`:w.Format.CSS.formatHSLA(n)}$.formatHSL=i;function h(n){return`hsla(${n.hsla.h}, ${(n.hsla.s*100).toFixed(2)}%, ${(n.hsla.l*100).toFixed(2)}%, ${n.hsla.a.toFixed(2)})`}$.formatHSLA=h;function o(n){const g=n.toString(16);return g.length!==2?"0"+g:g}function d(n){return`#${o(n.rgba.r)}${o(n.rgba.g)}${o(n.rgba.b)}`}$.formatHex=d;function u(n,g=!1){return g&&n.rgba.a===1?w.Format.CSS.formatHex(n):`#${o(n.rgba.r)}${o(n.rgba.g)}${o(n.rgba.b)}${o(Math.round(n.rgba.a*255))}`}$.formatHexA=u;function a(n){return n.isOpaque()?w.Format.CSS.formatHex(n):w.Format.CSS.formatRGBA(n)}$.format=a;function r(n){const g=n.length;if(g===0||n.charCodeAt(0)!==35)return null;if(g===7){const l=16*s(n.charCodeAt(1))+s(n.charCodeAt(2)),c=16*s(n.charCodeAt(3))+s(n.charCodeAt(4)),b=16*s(n.charCodeAt(5))+s(n.charCodeAt(6));return new w(new S(l,c,b,1))}if(g===9){const l=16*s(n.charCodeAt(1))+s(n.charCodeAt(2)),c=16*s(n.charCodeAt(3))+s(n.charCodeAt(4)),b=16*s(n.charCodeAt(5))+s(n.charCodeAt(6)),m=16*s(n.charCodeAt(7))+s(n.charCodeAt(8));return new w(new S(l,c,b,m/255))}if(g===4){const l=s(n.charCodeAt(1)),c=s(n.charCodeAt(2)),b=s(n.charCodeAt(3));return new w(new S(16*l+l,16*c+c,16*b+b))}if(g===5){const l=s(n.charCodeAt(1)),c=s(n.charCodeAt(2)),b=s(n.charCodeAt(3)),m=s(n.charCodeAt(4));return new w(new S(16*l+l,16*c+c,16*b+b,(16*m+m)/255))}return null}$.parseHex=r;function s(n){switch(n){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(y=v.CSS||(v.CSS={}))})(C=w.Format||(w.Format={}))}(I||(e.$Pt=I={}))}),define(se[110],re([1,0]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.$1h=S,e.$2h=E,e.$3h=L;function t(I){return(w,C,v)=>{let y=null,$=null;if(typeof v.value=="function"?(y="value",$=v.value):typeof v.get=="function"&&(y="get",$=v.get),!$)throw new Error("not supported");v[y]=I($,C)}}function S(I,w,C){let v=null,y=null;if(typeof C.value=="function"?(v="value",y=C.value,y.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof C.get=="function"&&(v="get",y=C.get),!y)throw new Error("not supported");const $=`$memoize$${w}`;C[v]=function(...p){return this.hasOwnProperty($)||Object.defineProperty(this,$,{configurable:!1,enumerable:!1,writable:!1,value:y.apply(this,p)}),this[$]}}function E(I,w,C){return t((v,y)=>{const $=`$debounce$${y}`,p=`$debounce$result$${y}`;return function(...f){this[p]||(this[p]=C?C():void 0),clearTimeout(this[$]),w&&(this[p]=w(this[p],...f),f=[this[p]]),this[$]=setTimeout(()=>{v.apply(this,f),this[p]=C?C():void 0},I)}})}function L(I,w,C){return t((v,y)=>{const $=`$throttle$timer$${y}`,p=`$throttle$result$${y}`,f=`$throttle$lastRun$${y}`,i=`$throttle$pending$${y}`;return function(...h){if(this[p]||(this[p]=C?C():void 0),(this[f]===null||this[f]===void 0)&&(this[f]=-Number.MAX_VALUE),w&&(this[p]=w(this[p],...h)),this[i])return;const o=this[f]+I;o<=Date.now()?(this[f]=Date.now(),v.apply(this,[this[p]]),this[p]=C?C():void 0):(this[i]=!0,this[$]=setTimeout(()=>{this[i]=!1,this[f]=Date.now(),v.apply(this,[this[p]]),this[p]=C?C():void 0},o-Date.now()))}})}}),define(se[1236],re([1,0]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.$xt=void 0;class t{constructor(E,L,I,w){this.originalStart=E,this.originalLength=L,this.modifiedStart=I,this.modifiedLength=w}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}e.$xt=t}),define(se[16],re([1,0]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.$cb=e.$bb=e.$ab=e.$_=e.$$=e.$9=e.$5=e.$X=e.$W=void 0,e.setUnexpectedErrorHandler=S,e.$Z=E,e.$1=L,e.$2=I,e.$3=w,e.$4=v,e.$6=$,e.$7=p,e.$8=f,e.$0=h;class t{constructor(){this.b=[],this.a=function(n){setTimeout(()=>{throw n.stack?a.isErrorNoTelemetry(n)?new a(n.message+`
  2. cronfox commented on Aug 25, 2024

    @cronfox

    same problem

  3. added
    bug
    web
    safari
    on Dec 19, 2024
  4. added
    vscode.dev
    on May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugsafarivscode.devweb

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions