设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客

Google Chrome 55正式版发布:默认禁用 Flash

2016-12-3 17:42| 发布者: joejoe0332| 查看: 2239| 评论: 0|原作者: oschina|来自: oschina

摘要: 在过去1年中,谷歌 Chrome 浏览器通过多个阶段的方案逐步减少对 Flash 插件的依赖。今天,Chrome 55 正式面向 Mac、Windows 和 Linux 系统推出,并禁用 Flash,默认开启对 HTML5 的支持。 ...

在过去1年中,谷歌 Chrome 浏览器通过多个阶段的方案逐步减少对 Flash 插件的依赖。今天,Chrome 55 正式面向 Mac、Windows 和 Linux 系统推出,并禁用 Flash,默认开启对 HTML5 的支持。

输入处理改进

As usage of the mobile web grows, it is increasingly important for sites to react well to touch input. Historically, this meant handling MouseEvent and TouchEvent separately, which can be difficult to maintain. Chrome now enables unified input handling by dispatching PointerEvents. PointerEvents lead to more responsive pages, as they don’t block scrolling by default. To achieve the same performance with TouchEvent, pages can use passive event listeners.
Chrome also now supports two new ways to respond to input. The touch-action CSS property enables sites to react to gestures such as panning. For mouse buttons, the new auxclick input event type allows sites to manage the click behavior of non-primary buttons.   

异步和等待功能

Asynchronous JavaScript can be difficult to reason about. Promises help avoid the nesting problem of callbacks, but Promise-based code can still be difficult to read when a site has large chains of asynchronous dependencies. Chrome now supports the async and await JavaScript keywords, allowing developers to write Promise-based JavaScript that can be as structured and readable as synchronous code.

Fetching a URL and logging the response using Promises:

function logFetch(urlreturn fetch(url)

   .then(response => response.text())

   .then(text => {

     console.log(text);

   }).catch(err => {

     console.error('fetch failed', err);

   });

}

The same code using async and await:

async function logFetch(urltry {

   const response = await fetch(url);

   console.log(await response.text());

 }

 catch (err) {

   console.log('fetch failed', err);

 }

}

CSS 自动连字

Formatting text to fill available space can be a challenge across devices and screen sizes. Chrome now supports CSS automatic hyphenation, one of Chrome’s most frequently requested layout features, on Android and Mac. CSS hyphenation allows the browser to hyphenate words when line-wrapping, improving the visual consistency of text blocks. Hyphenation support will be extended to other platforms in future releases.

hyphenation-gif-2.gif

A paragraph rendered with and without automatic hyphenation

其他特性

  • The once event listener option enables callbacks to be invoked only once before removing the event listener.

  • Sites can now mark web storage as persistent, preventing Chrome from automatically clearing storage for that site.

  • Cross-origin iframes now require a user gesture to start audio playback using the Web Audio API on Android, matching the behavior of the <audio> and <video> elements.

  • The TLS stack now implements GREASE, a mechanism to help prevent problems with buggy TLS servers.

  • Developers can create a MediaStreamTrackEvent in an alternative way with its new JavaScript constructor.

  • RSA-PSS signature algorithms have been added to TLS to prepare for TLS 1.3.

  • To improve load times and prevent failed navigations, cross-origin and parser-blocking scripts injected using document.write() will no longer load over 2G connections.

  • AudioNode constructors of the form new AudioNode(context, options) are now available, making it simpler to manage audio from scripts.

  • When the media player is too narrow to show every button, an overflow menu will appear to provide the hidden functionality to users.

  • Chrome media controls will now display a download button when the playback is associated with a file that can be downloaded.

  • The Web Share API is available for experimentation as an origin trial.

弃用和互操作性改进

  • BaseAudioContext will replace AudioContext in the Web Audio API to conform to spec.

  • CSS Clipping Path properties no longer require the webkit prefix.

  • The MediaStream constructor is now available without prefix alongside the existing webkitMediaStream.

  • Non-script MIME types will no longer trigger script execution.

  • <textarea maxlength=""> and <textarea minlength=""> have been updated to count each line break as one character, instead of two.

  • The webkit prefix has been removed from the imageSmoothingEnabled property of CanvasRenderingContext2D.

https://blog.chromium.org/2016/10/chrome-55-beta-input-handling.html
https://googlechromereleases.blogspot.ca/2016/12/stable-channel-update-for-desktop.html

Google Chrome 稳定版 官方本地下载地址:

Google Chrome v55.0.2883.75 无更新功能版 32位

http://dl.google.com/release2/55.0.2883.75_chrome_installer.exe
http://redirector.gvt1.com/edgedl/release2/55.0.2883.75_chrome_installer.exe

Google Chrome v54.0.2840.99 无更新功能版 64位

http://dl.google.com/release2/55.0.2883.75_chrome_installer.exe
http://redirector.gvt1.com/edgedl/release2/55.0.2883.75_chrome_installer.exe


酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部