[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.15.1-1414-gc69ee75

beidson at apple.com beidson at apple.com
Thu Oct 29 20:31:18 UTC 2009


The following commit has been merged in the webkit-1.1 branch:
commit 018e9ba1afdf02fd6ff2a27bb31fb0fecc5784ab
Author: beidson at apple.com <beidson at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon Sep 21 18:52:04 2009 +0000

    Rubberstamped by Sam Weinig.
    
    Add some example files for an upcoming blog post.
    
    * blog-files/load-unload-example.html: Added.
    * blog-files/pageshow-pagehide-example.html: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48588 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKitSite/ChangeLog b/WebKitSite/ChangeLog
index 534faf8..0b3736e 100644
--- a/WebKitSite/ChangeLog
+++ b/WebKitSite/ChangeLog
@@ -1,3 +1,12 @@
+2009-09-21  Brady Eidson  <beidson at apple.com>
+
+        Rubberstamped by Sam Weinig.
+
+        Add some example files for an upcoming blog post.
+
+        * blog-files/load-unload-example.html: Added.
+        * blog-files/pageshow-pagehide-example.html: Added.
+
 2009-09-17  Eric Seidel  <eric at webkit.org>
 
         Reviewed by Darin Adler.
diff --git a/WebKitSite/blog-files/load-unload-example.html b/WebKitSite/blog-files/load-unload-example.html
new file mode 100644
index 0000000..313feb3
--- /dev/null
+++ b/WebKitSite/blog-files/load-unload-example.html
@@ -0,0 +1,22 @@
+<html>
+<head>
+<script>
+
+function pageLoaded()
+{
+    alert("load event handler called.");
+}
+
+function pageUnloaded()
+{
+    alert("unload event handler called.");
+}
+
+window.addEventListener("load", pageLoaded, false);
+window.addEventListener("unload", pageUnloaded, false);
+
+</script>
+<body>
+<a href="http://www.webkit.org/">Click for WebKit</a>
+</body>
+</html>
diff --git a/WebKitSite/blog-files/pageshow-pagehide-example.html b/WebKitSite/blog-files/pageshow-pagehide-example.html
new file mode 100644
index 0000000..471a318
--- /dev/null
+++ b/WebKitSite/blog-files/pageshow-pagehide-example.html
@@ -0,0 +1,28 @@
+<html>
+<head>
+<script>
+
+function pageShown(evt)
+{
+    if (evt.persisted)
+        alert("pageshow event handler called.  The page was just restored from the Page Cache.");
+    else
+        alert("pageshow event handler called for the initial load.  This is the same as the load event.");
+}
+
+function pageHidden(evt)
+{
+    if (evt.persisted)
+        alert("pagehide event handler called.  The page was suspended and placed into the Page Cache.");
+    else
+        alert("pagehide event handler called for page destruction.  This is the same as the unload event.");
+}
+
+window.addEventListener("pageshow", pageShown, false);
+window.addEventListener("pagehide", pageHidden, false);
+
+</script>
+<body>
+<a href="http://www.webkit.org/">Click for WebKit</a>
+</body>
+</html>

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list