WebXR Polyfill broken with latest three.js

Still working on this. This might have something to do with it also pretty bad. But there is a strange buffer problem

 CardboardVRDisplay.prototype.onResize_ = function (e) {
            	    if (this.layer_) {
            	      var gl = this.layer_.source.getContext('webgl');
            	      if (!gl) gl = this.layer_.source.getContext('experimental-webgl');
            	      if (!gl) gl = this.layer_.source.getContext('webgl2');
            	      var cssProperties = ['position: absolute', 'top: 0', 'left: 0',
            	      'width: 100vw', 'height: 100vh', 'border: 0', 'margin: 0',
            	      'padding: 0px', 'box-sizing: content-box'];
            	      gl.canvas.setAttribute('style', cssProperties.join('; ') + ';');
            	      safariCssSizeWorkaround(gl.canvas);
            	    }
            	  };