
- updated my nightly build of webkit
- in a terminal, issued the following command:
defaults write com.apple.Safari WebKitWebGLEnabled -bool YES
- opened one of the currently popular demos / showcases.
by Roberto Saccon
defaults write com.apple.Safari WebKitWebGLEnabled -bool YES
preview.
set preview window
- default, an external window, as we have now.set preview inline
- instead of editor canvas we have an iframe containing the previewset preview iphone
- a non-modal popup containing an iframe with dimensions of the iPhone screen. Of course you should use Safari for this.
CACHE MANIFEST
/index.html
/default.css
/images/logo.png
html
tag of the app start page:<html manifest="/tests/th/cache-manifest">
<head><title>test</title></head>
<body>test</body>
</html>
// cache-manifest.gears
{
"betaManifestVersion": 1,
"version": "site_version_string",
"entries": [
{ "url": "/index.html" },
{ "url": "/default.css" },
{ "url": "/images/logo.png" }
]
}
And the loading of the manifest has to be done in Javascript:if (google && google.gears) {
var localServer = google.gears.factory.create('beta.localserver');
var store = localServer.createManagedStore('test-dev');
store.manifestUrl = '/cache-manifest.gears';
store.checkForUpdate();
}
Because the HTML 5 / gears manifest files have a different format and easily grow beyond manually manageable size, a tool (or a custom build step) is necessary to create and update the cache manifest file for complex apps.
set syntax2 on / set syntax2 off
hg qrefresh # update current patch with local changes
hg qpop -a # remove all patches
hg pull
hg update
hg qpush -a # apply all patches
hg qrefresh # update current patch with local changes
hg pull --rebase