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 idunknown
push userunknown
push dateunknown
bugs728620
milestone13.0a1
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,