Bug 728620 - Ensure we draw after moving back/forward in history.
authorAli Juma <ajuma@mozilla.com>
Mon, 20 Feb 2012 20:47:00 -0500
changeset 89196 d4c1c420f2c80b663c501e0277c02399558008ef
parent 89195 ab2c10f183e42a45bbc740378626e5791d79244c
child 89197 d644bee235512829194d6d2766001752c5f9e87f
push id22242
push userkgupta@mozilla.com
push dateWed, 14 Mar 2012 15:19:09 +0000
treeherdermozilla-central@936ef50fa498 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs728620
milestone13.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 728620 - Ensure we draw after moving back/forward in history.
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -2088,16 +2088,17 @@ Tab.prototype = {
   observe: function(aSubject, aTopic, aData) {
     switch (aTopic) {
       case "document-shown":
         // Is it on the top level?
         let contentDocument = aSubject;
         if (contentDocument == this.browser.contentDocument) {
           ViewportHandler.updateMetadata(this);
           this.documentIdForCurrentViewport = ViewportHandler.getIdForDocument(contentDocument);
+          sendMessageToJava({ gecko: { type: "Viewport:UpdateAndDraw" } });
         }
         break;
     }
   },
 
   QueryInterface: XPCOMUtils.generateQI([
     Ci.nsIWebProgressListener,
     Ci.nsISHistoryListener,