Chrome 75 Beta
Chrome 75 Betaがリリースされた。
低レイテンシー canvas context を取得するためのパラメーターを指定できるようになった
canvas.getContext()
の第 2 引数に渡す object で desynchronized: true
を指定することで
低レイテンシー canvas context を扱えるようになった。
なお、これを指定する場合はcanvas.getContext()
の第 1 引数に'2d' | 'webgl' | 'webgl2'
のいずれかを指定する。
詳しくは https://developers.google.com/web/updates/2019/05/desynchronized を参照。
Web Share API がファイルをサポートした
ネイティブの Share UI を利用できるWeb Share APIで ファイルを扱えるようになった。 詳しくは https://developers.google.com/web/updates/2019/05/web-share-files を参照。
Numeric separators を実装
現在 proposal の Stage3 となっている Numeric Separator
が実装された。
これは大きい整数値を読みやすくするためのもので、_
はただトリムされ Number 型として扱われる。
ただし_
が書けるのは数値と数値の間だけ。
const x = 1_000_000;
const y = 1000000;
console.log(x === y); // => true
その他の機能
PaymentRequest.show()
の引数にdetailsPromise
を渡せるようになった
仕様で定められている
detailsPromise
が実装された。
Animation の改良
- Animation() constructor
- AnimationEffect
- KeyframeEffect
クロスオリジンの AppCache のリソースサイズが詰められた
クォータアカウンティングのためにクロスオリジンの AppCache のリソースサイズが詰められる。 padding のサイズは 0-14MB でランダムに決められる。
Content-Security-Policy
ヘッダーにscript-src-attr
, script-src-elem
, style-src-attr
, style-src-elem
directive を指定できるようになった。
- https://w3c.github.io/webappsec-csp/#directive-script-src-attr
- https://w3c.github.io/webappsec-csp/#directive-script-src-elem
- https://w3c.github.io/webappsec-csp/#directive-style-src-attr
- https://w3c.github.io/webappsec-csp/#directive-style-src-elem
video
element にplaysinline
attribute を指定できるようになった
MediaStreamTrack.getCapabilities()
がデバイス関連の高速可能なプロパティをサポート
window.open()
にnoreferrer
を指定できるようになった
Web RTC の改良
- RTCDtlsTransport
- RTCIceTransport
Chrome のタスクマネージャーに Service Workers が表示されるようになった
Cache-Control
ヘッダーに stale-while-revalidate
directive を指定できるようになった
stale-while-revalidate=30
と指定した場合、30 秒間は cache を stale のまま利用し、
その間にブラウザは裏で revalidation をする。
Web Authentication API が FIDO CTAP2 PIN をサポート
Web Authentication API で FIDO CTAP2 プロトコルに対応した PIN をサポート。