Archive for the ‘WebKit’ category (118 posts)

Google Canary on Mac OS X, EPUB’s CSS prefix and multithreaded SVG filters

Published on in Google Chrome, Last Week, tech, WebKit. Version: Chrome 13

With lucky number 13 -Chromium’s current version- now available, version 12 has been branched. Last week’s 1,423 commits bring highlights such as Google Chrome Canary which will be coming to Mac OS X, a new CSS property prefix for the EPUB format and lots of removed code.

While it has not been released yet, Google does seem to be ready to release Google Chrome Canary for Mac OS X systems. The browser cannot be made the default browser through the preferences and the release monitor says that the latest version was released today, using the same revision as Windows’ Canary.

Web Inspector will now show hyperlink auditing requests in the network panel. Copying data from the Resources panel has been made easier, the option “Open link in new tab” has been added to several context menus and it’s now possible to follow retained paths in detailed heap snapshots.

Following discussion on both the mailing list and during the contributor meeting, support for WML (“Wireless Markup Language”) has been removed from WebKit. This was a logical step as only BlackBerry needs to continue to support WML, and are doing so through a proprietary plugin. Microsoft and Opera still support it. Other code removed includes the Image Resizer, support for datagrids and Android’s build system.

As for specification related updates, setting outerHTML on an element will now merge text nodes. The onchange event on text fields has been made more reliable, styling a speech input-button with paddings and borders has been improved and the root element will now establish a new block formatting context, and will therefore expand to enclose overhanging floats. Finally, the CSS sibling selector (~) now works properly with the :target pseudo-class.

WebKit now supports the -epub- CSS property-prefix as an alias, similar to its support for the -apple- and -khtml- prefixes. This addition was made following a conference call in the EPUB Working Group last Thursday, and while not all issues have been resolved yet, it’s likely that they’re here to stay. One thing which is surprising is the fact that all vendors will use the same prefix: -epub-, contrary to CSS’ vendor prefixes.

Other changes which occurred last week:

  • WebKit now supports localized date strings for date input fields.
  • Chris Evans added a setting which will, when enabled, be able to block insecure content on secure pages.
  • Support for pressing mouse-buttons has been added to Chromium’s Web Driver implementation.
  • Support for executing asynchronous scripts has also been added to the Chromium’s Web Driver.
  • The Web Inspector’s Extension API namespace has been changed to chrome.experimental.devtools.
  • Initial support for creating panels has been added for Windows, including dragging them.
  • The framework for speeding up SVG Filters for multicore processors has landed, including an
    implementation for the FETurbulence filter.
  • Mark Pilgrim started porting Mozilla’s IndexedDB test-cases and made small bug fixes. Curious.
  • An FFTFrame implementation for FFmpeg has been added for the Web Audio API.
  • Docking Web Inspector to the browser window using the WebKit2 API is now a possibility.
  • The first parts of the fullscreen API for Safari on Windows have landed at WebKit.
  • An early take at supporting drag and drop for Chromium’s Touch UI New Tab Page has landed.
  • The new Quota API may be enabled by supplying the –enable-quota flag to Chromium.
  • Dimitri Glazkov taught CSS sub-selector chains how to deal with shadow descendants.
  • An early version of a Views-based combobox has landed for Chromium.
  • Windows Vista and Windows 7 now have a lower priority for the IO process.
  • Support for transparent WebKit instances was added for WebView under Windows.
  • The Content-Security-Policy implementation now blocks eval and stylesheets, inline ones too.

Since I won’t have any time at all this week, I expect the update to be rather short. Till then!

Read more (4 comments) »

Spring Loaded Tabs, improved border rendering and the Web Request API

Published on in Google Chrome, Last Week, tech, WebKit. Version: Chrome 12

Averaging about 180 commits per day in the last month, this week’s commit count of 1,447 pushes the limit once again. Highlights include lots of border-rendering fixes, the WebRequest Extension API in Chromium, progress on Content Security Policy and lots of Web Inspector updates.

The WebRequest Extension API in Chromium, which can be used to intercept, block or modify requests as they’re being made, has been given five new implementations by Dominic Battre during last week: onRequestSent, onResponseStarted, onBeforeRedirectonErrorOccurred and the onCompleted callbacks.

One project I should give more attention to is v8, the JavaScript engine used in Chromium, especially as some interesting developments have become apparent recently. Support for Float64Arrays has been added and work on EcmaScript’s Internationalization APIs continues with a partial implementation of the Collator. Did you know Chromium already exposes a Locale object as window.v8Locale?

Besides that, the first steps towards adding Harmony Proxies have been made by exposing an experimental Proxy object, which can be enabled by running Chromium with –js-flags=”–harmony_proxies”. Do keep in mind that the implementation currently only exposes an empty, thus void, Proxy object.

It has been a busy week for the Web Inspector team again. A “Save As…” option has been added to several menus and, following some refactoring, detailed heap snapshot processing has been moved to a Web Worker. In the Resources panel, resources will now be grouped by their type, a go-to line dialog has been implemented and using tabs in the live editor won’t move away focus anymore. Finally, de-obfuscate has been renamed to Pretty Print and the metrics pane received some functional updates, as well as a small bug fix.

WebKit’s implementation of the Content Security Policy draft received quite some improvements again. Policy violations will be logged to Web Inspector’s console, support for the frame-src directive has been added and the report-uri directive has been implemented, which will send a violation report to a chosen URL, albeit slightly different from the current draft specification. Finally, the policy definition syntax has been updated.

As for specification support, the disabled property of link elements handling stylesheets now matches the HTML5 specification. The error-event for <script> elements won’t bubble anymore and form control elements’ label property will allow custom attributes to be set.

WebKit’s border rendering now sucks less, as Simon Fraser puts it. He fixed several bugs by refactoring a lot of code and implementing optimizations for common cases, among which are overlapping semi-transparent borders, anti-aliasing for borders on transformed elements and rounded border rendering for different border styles, which has been improved. Background color leakage has been fixed, as has gradient leaking.

Other changes which occurred last week:

  • The LevelDB wrappers landed and will be compiled in for Android WebKit.
  • Incremental decoding for the WebP image format has been added.
  • The requestFileSystem method from the FileSystem API has been prefixed.
  • Folders may now be dragged to file inputs with the webkitdirectory attribute.
  • New resources have been added for Chromium OS’ profile photo displays.
  • The auto-fill menu for Chromium got its appearance tweaked.
  • Support for the feDropShadow SVG Filter has been added by Dirk Schulze!
  • JavaScriptCore has started work towards using a General Visitor GC pattern.
  • Feature defines have been added that allow ports to disable <details> and <summary>.
  • Multiple profiles in Chromium can now be enabled in about:flags, although it’s not really functional yet.
  • Print preview will now show a message if the PDF plugin is not available.
  • Better omnibox history matching is now available through Chromium’s about:flags page.
  • A first part of enabling multiple tab selection on Mac OS X systems has been committed.
  • The HSTS list can now be controlled through a command line switch as well.
  • Shortcuts to Google Chrome Canary no longer mention the word “Build” in their name.
  • Support for Spring Loaded Tabs has been added to Chromium!

Given the large amount of command line switches in Chromium, work is being done to move them to different files. This causes the command line overview to be incomplete right now, which I plan to fix this week 🙂

Read more (2 comments) »

Web Audio API, script de-obfuscation, an updated UI and the contentSettings API

Published on in Google Chrome, Last Week, tech, WebKit. Version: Chrome 12

The Chromium and WebKit teams checked in a grand total of 1,496 changesets over the past 168 hours. Highlights include the availability for the Web Audio API on all platforms, script de-obfuscation in Web Inspector and a slightly updated user interface for Chrome 12.

Following the availability of the Web Audio API on Mac OS X, Kenneth Russell flipped the switch for branded Windows builds, after which Chris Rogers landed a patch making it work on Linux. If you’re on Windows, get yourself a Chrome Canary build, launch it with the “–enable-webaudio” flag and check out some examples! The commit has been reverted, but work is on its way to get the API back in.

The Web Inspector team has made some great commits again. Firstly, obfuscated source-code (such as a minimized jQuery) may now be cleaned up in the Script Panel by right-clicking on the content and selecting the de-obfuscate option. Undo and redo has been implemented for the text editor, accidentally switching panels during live editing using certain shortcuts has been fixed and the resources panel can now display raw HTTP-headers. Finally, early steps have been taken to move the Detailed Heap Snapshots processing into workers.

One of the problems the prefetch relation for <link>-elements has, is that the linked file will be loaded in WebKit at a very low priority. In order to offer authors a way to preload resources which will be used on the current page, Gavin Peters has implemented the “subresource” relation.

As for specification compliance, a regression related to the ACID3 test has been fixed meaning that it will render pixel-perfect again. The Blob’s slice method has been renamed to Blob.webkitSlice, while also having its semantics change to mimic Array.slice. Simon Fraser has begun with improving WebKit’s border mechanisms, initially by improving the logic used to compute the inner radii on curved borders. Stay tuned..

WebKit’s Content-Security-Policy is now aware of the “self” source and will block string arguments to setTimeout and setInterval unless the “eval-script” option has been set, as they would evaluate the string internally. It is now also possible to define what sources media elements can load from, using the media-src directive.

Other changes which occurred last week:

  • Following the skeleton and the WebKit define-switch, compiling the LevelDB back-end for IndexedDB has been enabled for Chromium.
  • The SH4 JIT for JavaScriptCore has been both finished and enabled by default for Qt!
  • WebKit2 now supports searching text within PDF documents using the default Find in Page.
  • Composition propagation has been implemented for object-elements and framesets.
  • ArrayBuffer responses for XMLHttpRequest in Safari on Windows have been enabled.
  • Good news for WebKit reviewers with an iPad: the review tool is now compatible.
  • A bunch of new icons have been committed for Chrome 12’s user interface, being a bit more gray.
  • The SVG lighting filters have been sped up four times for ARM-processors.
  • Speech input has been disabled for readonly and disabled form input fields.
  • Chromium’s compositor will now tile larger (>512 pixels) content and image layers.
  • A unified Quota API will now be exposed from WebKit if it’s built in a certain way.
  • The Qt port has implemented mime-snifing based on Adam Barth’s IETF proposal.
  • A flag has been added so development of a Page Visibility API in WebKit can begin.
  • The experiment with moving the caret by word in visual order received two follow-ups.
  • Chrome’s text anti-aliasing has been fixed when text renders with a shadow.
  • The enableReferrers and enableHyperlinkAuditing options have been added to a new contentSettings extension API for Chromium. Looks promising.
  • A user interface has been added to control Virtual Private Networks in Chromium OS.
  • The Print to PDF dialog for Chrome’s Print Preview feature will now suggest a filename.

And that’ll be all again!

Read more (5 comments) »

Ruby overhang, HTML5 track element and a full-screen button

Published on in Browser Vendors, Google Chrome, Last Week, tech, WebKit. Version: Chrome 12

The 630 commits at WebKit and 707 commits at Chromium add up to a total of 1,337 commits. And I’m not even kidding. Highlights are two removed events, automated ruby overhang behavior and offline audio rendering for the Web Audio API.

Quite some visual changes have been made to Chromium. The concept of scrolling tabs has been introduced for the Touch UI, ensuring that selected tabs stay in the view. Users of Side Tabs will have noticed two new arrows at the top of the tab-bar, allowing you to scroll through the tabs upwards and downwards. The profile button has been moved a bit, making space for a new full-screen button and a stub implementation has been added for Panels, one thing I really miss for extensions.

New features have been given quite some attention. Feature defines have been added for an implementation of the <track> element, which means that work will be starting. The getUserMedia method and JavaScript bindings have been implemented for the Media Stream API and WebKit is now capable of rendering fonts using Skia, bringing its PDF rendering one step closer to handling Chrome’s print previews.

Following some discussion and a change to the HTML specification, WebKit has removed support for the onformchange and onforminput events. The CSS parser won’t accept #papayawhip as a valid color anymore, WebKit’s Server-Sent Events implementation will now only accept UTF-8 as its encoding and negative shadow spread should not round inset shadows. Finally, hidden iframes won’t receive focus anymore.

Dan Bernstein had a go at improving WebKit’s ruby implementation by adding support automated overhang, which means that ruby text can overhang characters adjacent to the base text. While this has become the default and only behavior for WebKit, as the ruby-overhang CSS property has not been implemented yet, the specification’s draft does not reflect the new initial value yet.

Now that the Web Audio API has been in development for well over a year, work has begun on making it testable. Offline audio rendering has been added to the AudioContext API and DumpRenderTree (the testing-framework) for WebKit’s Mac port has been improved with supporting audio tests.

Other changes which occurred last week:

  • WebKit’s GTK port is now capable of running WebGL!
  • Spin-buttons for numeric input elements are clickable again when large paddings are used.
  • A WebUI implementation for HTTP Authentication dialogs has landed for Chromium OS.
  • The default favicon to show for websites has been changed to the address bar’s little globe.
  • Tabs on Chromium’s Touch UI tab-bar will be using 32×32 pixel favicons, double their normale size.
  • TCP-classes have been renamed to Transport in scope of unifying APIs for TCP, UDP and SCTP protocols.
  • Dragging multiple tabs in Chromium will now show an accurate thumbnail showing all tabs.
  • Just pre-loading the metadata for video elements can now be done by setting preload=metadata.
  • Adam Barth’s Content-Security-Policy system can now block plugins, inline scripts, images, styles
    and fonts
    and has been given an options directive.
  • A fast path has been added for rendering simple color-based backgrounds.
  • A recently closed option has been added to Chromium’s Touch UI New Tab-page.
  • Another fast path is now available for parsing simple CSS values, such as dimensions and colors.
  • Repaints during style recalculation will be deferred, improving performance.
  • The page up, page down, home and end buttons will now affect selection in the <select> element.
  • Bouncing for single-finger panning gestures on Windows Touch systems is now available in WebKit2.
  • Skia’s PDF back-end has been pulled in to Chromium’s repository and will be compiled for Print Preview.
  • The HTML5 <meter> element now uses the Shadow DOM, and <progress> has been refactored.
  • The new HTML5 Media Elements will now be rendered using Dimitri’s Shadow DOM as well.
  • Similar to Mac OS X, Chromium on Windows will now also fade tab titles.
  • The Bali release of libvpx, used by the WebM video codec, has been pulled in to Chromium.
  • Support has been added to the WebKit 2 API for Windows 7 gestures.
  • Incoming source can now be preload scanned even if the parser is blocked.
  • Web Inspector’s feature to export HAR-files of resource loading has been improved.
  • Several changes to Chromium’s Web Driver implementation add versioning and health checking.
  • Web Inspector’s protocol format will be updated towards the JSON-RPC 2.0 specification.
  • Searching in Web Inspector’s Resources panel has been fixed.
  • Some layout tests were added for Chromium’s detailed heap snapshots’s summary view.
  • Work in WebKit has begun on implementing an unified storage quota for websites.
  • Chrome will start gathering statistics on modal dialogs in unload events.

And that’s it again. If you hadn’t noticed yet, last Tuesday I announced that I’ll be joining the Google Chrome team in June. While the set-up of these updates may change, I definitely intend to continue making them!

Read more (8 comments) »

Free-flow CSS editing in Web Inspector, BiDi sprint and nested headers

Published on in Google Chrome, Last Week, tech, WebKit. Version: Chrome 12

1,403 new patches have been introduced to the Chromium and WebKit repositories in the last week, among which were results of the WebKit BiDi-sprint, free-flow CSS editing and SMS notifications for Chromium OS.

More work has been done on the multiple-profile implementation for Chromium, resulting in visual results for Mac users now as well. The button is quite different from the early mock-ups shown in November, but definitely looks neat and uses less space than the original version.

Quite some patches were submitted to WebKit as part of the announced BiDi-sprint. The <title>-element now supports the dir attribute, moving the caret by word will now occur in visual order when editing text and BiDi-rendering for SVG Text has been improved. Furthermore, the text-align CSS property can now handle match-parent and the values isolate and plaintext can now be parsed for the unicode-bidi property, all prefixed.

Web Inspector now supports free-flow text editing for CSS files! This is a major usability improvement, as it means that making larger modification will be a lot easier. The feature is already available in Google Canary and Chromium nightlies. Just go to the Resources Panel, select a CSS file and double click on its contents to start editing. Committing the changes may be done via Cmd/Ctrl+S.

Many other fixes landed as well for Web Inspector. Changing the value of a hexadecimal number will now be treated correctly, as will a console message’s position for formatted scripts. Furthermore, property abbreviation has been disabled and the periods at the end of error messages have been removed.

In light of improving spec alignment, the behavior of the “start” and “end” values for the text-align property has been updated to match other browsers. DOM bindings have been implemented for the ping attribute on anchor tags and the noresize attribute on frames may now be set using JavaScript. Finally, the sizes of H1-elements nested in HTML5 sectioning elements will now be determined based on their depth.

Other changes which occurred last week:

  • Some bits of work on the Touch new tab page: support for theming and refactoring.
  • Speech recognizion in Chromium will now use FLAC rather than Speex as its codec.
  • The onerror event may now be fired for prefetch link-relational types.
  • The Accept-Language and Accept-Charset headers won’t be send anymore in all cases.
  • JavaScriptCore is now capable of using JIT compilation for regular expressions on SH4 platforms.
  • Chromium now supports the “none” value for media-element preloading, e.g. <video preload=none>.
  • The beforeunload event is now available for icon and perfetch link relational types.
  • The font-sizes of the omnibox and tabs on Chromium GTK have been tweaked.
  • An issue has been fixed with a tab’s spinner when prerendering would be used.
  • The HTTP authentication dialog will now also use WebUI (HTML) for its content.
  • A list of the opened pages will now be exposed via JSON, for remote debugging.
  • Two fixes came in for the :any-selector: style sharing and :last-child selecting.
  • Clipping has been sped up for accelerated 2D Canvasses in Chromium.
  • Accelerated path drawing, e.g. drawing beziers, has been improved as well.
  • The orientation and color settings in the print preview page are now functional.
  • The print-preview page now shows the option to print to a PDF file rather than to a printer.
  • A fast-path for parsing CSS rgb() colors with percent values has been implemented.
  • The title of print-preview tabs has been changed to reflect the page they’re previewing.
  • Support for creating screenshots has been implemented for the WebDriver implementation.
  • Line layout has been sped up by 10% by optimizing overflow computations on them.
  • Changing certain CSS properties on SVG elements won’t initiate a re-layout anymore.
  • Chromium OS will now shows a notification when a SMS message has been received.

And that’ll be all again for this week. Check back tomorrow for some exciting (personal) news! 🙂

Read more (6 comments) »

Chrome’s new keyboard, the CSS4 matches()-selector and line-box-contain

Published on in Google Chrome, Last Week, tech, WebKit. Version: Chrome 12

With 1,116 commits, 522 for WebKit and 594 for Chromium, there have been quite a lot of changes again. More progress has been made for Chromium OS’ touch support, a new CSS selector has been implemented, as well as the line-box-contain CSS property.

Chromium gained a keyboard, support for locking and unlocking your sim-card and support for touch-capable devices has been added. The new tab page has been updated and large throbbers have been added for touch UIs as well, albeit not the final version.

Dave Hyatt proposed and implemented a new CSS property for WebKit: line-box-contain. The property addresses cases in which text on the first line will be shown in a larger size than the rest of the line, causing the line-height to change. The prefixed version is already available in WebKit and Chromium nightlies!

As for other specification-related changes, more work has been done to improve percentage rounding. XMLHttpRequest will now properly set the referrer when Web Workers are being used and some more CSS 2.1 counter-related tests will now pass. The onchange-event will not fire anymore when a text field’s contents have not changed.

Mozilla’s any-selector proposal has been implemented for WebKit as -webkit-any(). Following brief discussion, both :any as :not will now accept any selector instead of just simple ones. The Editor’s Draft of CSS Selectors Level 4 has been updated to include “:matches“, idential to :any, just with another name.

Other changes which occurred last week:

  • A nice favicon has been added for the print preview page.
  • An initial implementation of 802.1x, Extensible Authentication Protocol, landed for Chromium OS.
  • A high-quality band-limited audio resampling algorithm has landed for the Web Audio API.
  • The first two patches for WebKit’s Media Stream API implementation landed!
  • The first bits for CSS calc() support in WebKit also landed.
  • Windows users will be redirected to a better Java download-page.
  • No more cognito-mode in the Proxy Configuration example extension.
  • Performance of processing floated objects has been improved a lot.
  • An implementation for asynchronous communication between a Pepper Plugin and JavaScript landed.
  • HTTP throttling may now be disabled via a new tab on the about:net-internals page.
  • A raw video pipeline has been added for the <video> element, with a specialized protocol: media://.
  • A simplified normal flow layout path optimization for overflow recomputation and for positioned objects inside relatively positioned containers has been added.
  • WebGL will now always be exposed to the DOM, even if it has been disabled.
  • Google Gears has now been removed from WebKit as well, of course in favor of HTML5.
  • Web Inspector will now show the correct transfer size for compressed resources.
  • Chrome’s license caught up with the new year.

And that’ll be all again 🙂

Read more (4 comments) »

Chromium OS tablet, GPU accelerated shadows and the new, simpler logo

Published on in Google Chrome, Last Week, tech, WebKit. Version: Chrome 12

Highlights among this week’s 1,291 commits are quite some Chrome OS touch-related changes, support for relatively positioned table-cells and a wider experiment for background pre-rendering in Chromium.

The Chrome OS team seems to be gearing up for a tablet release. Following some usability-related improvements for touch-based devices, the user-agent string will now indicate the usage of a touch-only device. Furthermore, a brand new New Tab Page landed which provides an iPad-like overview of the installed applications. For all those who want to get a sneak previous of the page, but don’t own a Chrome OS touch-device yet, enable the overview pagina using the “Experimental new tab page” setting on about:flags.

In light of improving specification-compliance, WebKit’s SVG implementation received a rather large commit which implements proper bi-directionality support for SVG Text. Rounding for non-integral percentages has been fixed and exporting WebGL-canvasses to an image, texture or Data URL will now honor the non-premultiplied-alpha attribute.

Relatively positioned table-cells have gained support from the engine and the maxlength attribute for textarea-elements will now take newlines into account. Finally, shadows are now supported for a canvas’ drawImage method and support for GPU-accelerated shadows has been added.

Other changes which occurred in the last week:

  • The prerendering experiment now applies to 30% of the Canary users.
  • Auto-filled form elements will now also force a specific text-color, ensuring visibility.
  • Multiple tab-selection has been enabled by default for Windows systems!
  • Chromium’s libwebp has been updated to the latest version.
  • The brightness and contrast for accelerated video’s in Chromium now meets BT.601.
  • Read-only form fields won’t be automatically filled with information anymore.
  • An API for getting the installed font families has been added to PPAPI, albeit unimplemented.
  • Images used by Web Inspector have been compressed, saving about 120 KB.
  • The default value for window.navigator.vendor has been updated to “Apple Inc.”
  • Various security-restrictions for entering full-screen mode have been implemented.
  • Timer-based events may now inherit the user gesture causing them to be set.
  • Chromium’s UI on Linux won’t paint anymore when the window isn’t visible.
  • All GPU-related features will be disabled for Linux users using either ATI or Intel cards.
  • Prefetches within a prerendered page will be disabled, due to infinite loops.
  • A quota database has been added to Chromium, for per-origin storage restraints.
  • Videos displayed on cnn.com are now a little bit more reliable.
  • Pre-rendering within Chromium will be throttled to once per 500 ms.
  • Syntax for the Content-Security-Policy header has been updated per a spec change.
  • Some great early results for the unified build-system being created for WebKit.
  • Accelerated compositing may now be forced through the “–force-compositing-mode” flag.
  • And of course some changes by the Web Inspector team.

And that’d be all again. You may be interested in following WebKit bug 56727, which talks about implementing the experimental CSS Mixins feature.

Read more (11 comments) »

Multiple-tab selection, tab title elision, animations API and a new Chromium logo

Published on in Google Chrome, Last Week, tech, WebKit. Version: Chrome 12

Another week passed, bringing a total of 1,350 change-sets to Chromium (796 commits) and WebKit (554 commits). Highlights include a new logo for Chromium, selecting multiple tabs, an Animation API, CSS’ new text-orientation property and an improved pale-violet-red color.

Scott Violet landed the first functional part of a new feature: multiple tab selection. Instead of being able to select just one tab, multiple tabs can be selected by using <shift>+click or <ctrl>+click. While the feature still needs work, including proper rendering of multiple tabs and a better dragging thumbnail, it’s already available for you to check out in nightlies: just launch Chromium with “–enable-multi-tab-selection“.

Another change for Chromium’s tab bar is that adjoined tabs sharing a common title prefix, such as “Chromium Blog”, will have their titles elided. This means that the shown title will be more relevant and that it will be easier to find the tab you’re looking for. Right now it’s only available for Chromium builds on Windows, but support for the other platforms is in the works.

Dean Jackson landed the first part of an API for managing animations which apply to a certain element. The API is available in both Chromium and WebKit nightlies and adds a new method to DOM HTML Elements: webkitGetAnimations. It returns an AnimationList which contains the active animations, as Animation objects. As is visible here, it provides access to most common settings for CSS-based animations. While the play() and pause() methods are being exposed, they’ll start functioning after an upcoming patch lands.

As for new features, an initial part of HTML5’s DataTransferItem and DataTransferItems interfaces landed, together with a partial implementation for Chromium. Dave Hyatt implemented the text-orientation property from the CSS3 Writing Modes module, although it hasn’t been implemented for Windows yet. Luiz Agostini landed the rendering part for the <details> and <summary> implementations.

In the effort to improve standard compliance, several commits addressed failures in the CSS 2.1 test-suite. Several issues with the ex unit have been solved, parsing for background position components has been rewritten and the ::before and ::after pseudo-elements may now be used on table rows. Furthermore, the values of the named “palevioletred” and “mediumpurple” colors have been fixed.

One not so significant, yet certainly interesting change, is the inclusion of the jQuery test-suite in the WebKit tree. Widely used as the library is, it’s a good thing to see that both parties will test on each other’s software to ensure full compatibility.

Other changes which occurred last week:

  • Chromium received a new logo, quite different from the previous one.
  • A minor change in preparation of Chromium’s registerProtocolHandler implementation.
  • Moving nodes across different documents in the DOM is now possible for certain methods.
  • JavaScriptCore fixed three issues with the RegExp prototype, improving conformance with ES5.
  • Through a minor Accept-header change, WebKit now properly indicates to prefer HTML over XML.
  • Safari on Mac OS X Lion will be able to use the AV Foundation framework for media playback.
  • Soft hyphens will now always be correctly rendered when a linebreak occurs.
  • A lookup-based approach for applying CSS properties has been introduced.
  • Warnings and errors for invalid viewport values are accurate again.
  • Following the announcement, Gears has been removed from the codebase. Thanks, @temp_01!
  • WebKit’s HTML parser will now yield for layout before running scripts, improving first-paint time.
  • Web Inspectors breakpoint sidebar-pane has been re-implemented in a more common format.
  • The prerender experiment will now be enabled for about 5% of the Chromium users.
  • Welcoming Google Chrome 12. Too bad about the same message was used for Chrome 11!
  • Search-box extensions may now choose how auto-complete should show: normal, delayed or never.
  • UDP sockets have been implemented for Windows, presumably for Chromium’s P2P API.
  • Chrome will be removing all languages except for English, with Scott Hess liaising for proper user support.

All the best to the people in Japan, I truly hope things will start getting better as soon as possible. Good luck!

Read more (15 comments) »

CSS Quotes, mock-ups of the HTML5 date-picker and the P2P API

Published on in Google Chrome, Last Week, tech, WebKit. Version: Chrome 11

With 617 commits at the WebKit side and 808 for Chromium, last week was another busy week. Highlights are that WebKit finally implements CSS 2.1 quotes and lots of work on several upcoming features, such as MHTML.

One feature a lot of people are looking out for is the inclusion of a date-picker in WebKit. Tamura Kent started implementing a calendar for several date-related input types exactly a month ago, which has now evolved in a graphical and usable date picker.

While the implementation is by no means complete, it’s a good thing that work is being done to finish support for Web Forms. Keep an eye out on bug 53961 to stay up-to-date.

Chromium users may have seen a new option appear on their about:flags page: “P2P API”. While not a lot is known about the team’s plans, it’s safe to assume that implementation of the HTML5 peer-to-peer connection API has been started, together with an interface for Pepper. So far, an implementation for Mac and Linux was added, a dispatcher for the renderer and initial work on the internal implementation.

The Web Inspector team improved performance of DOM search as it was extremely slow for GMail. The summary bar in the network panel’s item view won’t overlap the contents anymore. Furthermore, the fourth part of Detailed Heap Snapshots landed in WebKit as well, which implements displaying of different snapshot projections. While they’re not available yet, there are some screenshots available.

As for standard-related updates, Dave Hyatt made sure that positioned elements work with vertical text. Ruby text will now be expanded when it’s shorter than its base and the document.open implementation has been updated per the HTML5 specification.

Carol Szabo implemented full support for quotes in WebKit, following the CSS 2.1 specification. The -webkit-hyphenate-limit-{before,after} CSS properties have been added. Safari’s JavaScriptCore JavaScript Engine now implements the seal/freeze/preventExtensions methods for normal object types, except for arrays.

Other changes which occured last week include:

  • The -webkit-hyphenate-locale CSS property has been renamed to -webkit-locale.
  • Layout performance for pages with a lot of floating objects has been improved majorly.
  • Numeric input fields which have an initial value may be cleared again, and accept localized values.
  • Through an ICU update, Chrome now respects the new sorting rules for the French language.
  • WebKit’s GTK port now supports multiple threads for JavaScriptCore due to this change.
  • Handling of the currentColor color for SVG now follows the specification.
  • Support for handling quoted-printable strings has been added, in preparation of MHTML support.
  • CSS Outlines will now be drawn for table and table-cell elements.
  • The WebKit2 API now supports printing pages on Windows.
  • A redundant “Windows; ” has been dropped from the default User Agent string on Windows.
  • The fast-path for rgba() parsing now properly clamps out-of-range alpha values.
  • Another site for the hardcoded HSTS list; shouldn’t we try to avoid doing this?
  • Support for the WebKit Full-Screen API has been added to Chromium, hidden behind a flag.
  • The speech bubble volume indicator has been improved with an indicator for background noise.
  • Another flag has been added to trigger the multi-profile feature, no functionality yet either.
  • The grab and grabbing CSS cursors have been implemented for Mac/GTK.
  • Chromium’s GPU Process on Windows will now be sandboxed!
  • Speech input fields (<input x-webkit-speech>) have been enabled by default.
  • Multisampling will be disabled for all ATI/AMD GPU’s when using Mac OS X, due to buggy drivers.
  • The filesystem: URL scheme has been enabled by default.

And that’s it again. If you want to dig around in the updates from two weeks ago, check out all WebKit and Chromium commits. Upcoming work to keep an eye out for are the visibility API and an implementation of the text-orientation CSS property. Finally: Thanks, guys! 🙂

Read more (4 comments) »

Minimum DOM Timer intervals, hiding extension badges and a faster YouTube

Published on in Google Chrome, Last Week, tech, WebKit. Version: Chrome 11

With 611 commits at Chromium and 733 commits at WebKit, last week brought a total of 1,344 changesets. Highlights include dynamic minimum intervals for DOM Timers and the addition of a chrome://crashes page.

Web Inspector will now reflect style changes when they occur without the Inspector, e.g. though a piece of JavaScript code. Furthermore, work has been laid out for improving the Web Inspector debugging protocol. A document on Google Docs has been created, carefully drafting the JSON-based protocol.

One downside of having a tabbed browser is that websites often remain open while you aren’t using them. Normally this isn’t a problem, but sites with high frequency timers can continue to use a lot of CPU this way. Therefore Chromium intends to make the minimum DOM Timer interval dependent on the visibility of the tab.

Following this WebKit patch, Kenneth Russell landed both support for dynamic values and an experimental decrease from 4 milliseconds for foreground tabs to 1 second for background tabs. While it was reverted shortly after it landed (and thus not available anymore), it certainly is an experiment to keep an eye out for.

Other interesting Chromium changes include the feature for Mac OS X users to hide extension badges via their context menu, addition of a chrome://crashes page to display recently reported crashes and renewed information about the latest version of Adobe Reader, Flash, Shockwave and RealPlayer. The minimum version of Java has been increased to make sure that the user’s installation includes a critical patch.

As for specification-related updates, Luiz Agostini continued his work on implementing the HTML5 <details> and <summary> elements by supporting localized text for them. Right now a patch implementing the element’s rendering is up for review. Support for “dir=auto” has been added, the prepare a script section of the <script> element has been implemented and Chromium was taught how to handle elliptical gradients.

A special note for Dave Hyatt’s monster patch which changed WebKit’s entire line box tree from using integers to using floats. This allowed for the removal of many rounding hacks and opens up the path for features such as sub-pixel positioning for fonts.

Other changes which occurred last week:

  • Select elements may now be borderless on Chromium for Linux.
  • The IndexedDB team has finished up implementing the new event model.
  • Chromium’s WebDriver protocol gained support for manipulating cookies for a session.
  • Initial support for per-origin quotas has been added to the IndexedDB implementation.
  • The fast CSS selector path has been enabled for child and subselector combinators.
  • The third part or the detailed heap snapshot implementation for V8 has landed.
  • No more green pixels as the edges of certain GPU-accelerated videos due to this commit.
  • Opening Adobe Reader for PDFs can be enabled by default via an information bar again.
  • An initial version of the WebGL OES_vertex_array_object extension has been implemented.
  • The parser will now yield for layout before running scripts, which improves the first paint-time
    significantly for slower connection speeds (up to 20% on YouTube!).
  • The set and remove cookie methods from Chromium’s Cookie Extension API now support callbacks.
  • Displaying fixed elements on scaled pages has been improved.
  • Developers working on WebKit changes through Chromium can now access its debugging channels.
  • SVG Animations are now able to animate to or from “inherit” and “currentColor” values.
  • An initial implementation of the Pepper Transport API has landed for Chromium.
  • Chromoting has received various minor updates, but still is not accessible for end-users.
  • New icons have been committed for Chromium to indicate whether prerendering succeeded.
  • Badges have been added to Chromium OS to display what kind of mobile network is being used.

Unfortunately, I won’t be around next week to write an update, so the next update will be two weeks from now. Check out Planet Chromium for updates in the meantime. See you on the 7th (or earlier elsewhere)!

Read more (3 comments) »