Bug 709492 - Part 5: Reset the metadata instead of updating it when a new page is shown. r=kats
authorPatrick Walton <pwalton@mozilla.com>
Thu, 29 Dec 2011 15:10:31 -0800
changeset 84775 7ec975506cd8c96542aa930d8830935d3829edd8
parent 84774 995f29e5de472782424937f1f87d52bd6bfe9e5d
child 84776 e6835bba07af37b994ac3114b0300387e964d78c
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs709492
milestone12.0a1
Bug 709492 - Part 5: Reset the metadata instead of updating it when a new page is shown. r=kats
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -717,17 +717,17 @@ var BrowserApp = {
     } else if (aTopic == "SearchEngines:Get") {
       this.getSearchEngines();
     } else if (aTopic == "document-shown") {
       let tab = this.selectedTab;
       if (tab.browser.contentDocument != aSubject) {
         return;
       }
 
-      ViewportHandler.updateMetadata(tab);
+      ViewportHandler.resetMetadata(tab);
 
       // Unsuppress drawing unless the page was being thawed from the bfcache (which is an atomic
       // operation, so there is no drawing to suppress).
       if (tab.suppressDrawing) {
         tab.sendExposeEvent();
         tab.suppressDrawing = false;
       }
     }