Capturing a tab, Resolution Media Queries and timeouts for XMLHttpRequest
Published on in Google Chrome, Last Week, tech, WebKit. Version: Chrome 24
A lot has happened again last week, and this update covers the 739 WebKit and 995 Chromium commits which have occurred since. Highlights are the @host rule for Shadow DOM and resolution media queries.
A new extension API just landed in Chromium which adds support for capturing the contents of a tab through WebRTC. The API, tabCapture.capture(), works similar to getUserMedia() and also makes a LocalMediaStream JavaScript object available.
Resources using data: URIs in Web Inspector will now be trimmed at a reasonable point, increasing readability. Stylesheets will now also be reloaded when any in-use SASS resource has been saved in the Sources panel.
The @host CSS rule has been implemented, aiding in styling elements using Shadow DOM. The Flexible Box Module implementation now supports flex-wrap: nowrap, supports top and bottom margins for child nodes of flex items and now gracefully handles width definitions. Regions now support auto-height regions with region breaks and rendering support for text-decoration-style has been implemented.
A number of create*() methods of the Web Audio API’s AudioContext object have been renamed to match the latest specification. Pasted fragments will now always be parsed as HTML, even on XHTML pages, and the default action for the “dragover” event now prevents dropping when dragging files.
Kenneth added support for the “resolution” media query, most useful when used in conjunction with the dppx unit, and a feature flag for implementing features from CSS Device Adaption did land as well. John Mellor’s Text Autosizing implementation got the interest of Samsung, who are working on implementing the API in WebKit2, and timeout support for XMLHttpRequests has been implemented as well. Finally, all the compositing operators for CSS Shaders are now supported, with the exception of “destination” and “lighter”.
Other changes which occurred last week:
- The Opus audio codec has been added to the Chromium tree, but so far is only being used by Remoting.
- It looks like Chromium will be moving away from OS-specific modal dialogs for content warnings.
- The chrome://performance page had its UI refreshed, and now looks a lot better.
- Invalid viewport errors will now emphasize when this is caused by the usage of semicolons.
- The resolution of printed images will no longer depend on the screen’s resolution.
- Nico taught WebKit how to properly deal with image orientation for the Chromium port.
- The GTK port has enabled support for Content Security Policy 1.1 and the Microdata DOM APIs.
- The EFL port has enabled support for WebGL and 3D rendering when using WebKit2.
A really exciting patch to look out to is Renata’s work to sandbox the QtWebProcess, which will be a huge improvement for the Qt port of WebKit!