Bug 1265708 - Set URL metadata based on URL without ref r=sebastian
☠☠ backed out by dbaa543cfb37 ☠ ☠
authorAndrzej Hunt <ahunt@mozilla.com>
Thu, 02 Jun 2016 14:41:47 -0700
changeset 341400 10fa130289d70f0adb8ad8379d3454976c922049
parent 341399 e994f70de0490e77a2309793852434f2f1641ad7
child 341401 67c37ed1a25f92cac6294cb70af97e95515c30e2
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssebastian
bugs1265708
milestone49.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 1265708 - Set URL metadata based on URL without ref r=sebastian MozReview-Commit-ID: DNiKYFJiXjY
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -3878,17 +3878,17 @@ Tab.prototype = {
   // we can collect data as we find meta tags, and replace low quality metadata with higher quality
   // matches. For instance a msApplicationTile icon is a better tile image than an og:image tag.
   METADATA_GOOD_MATCH: 10,
   METADATA_NORMAL_MATCH: 1,
 
   addMetadata: function(type, value, quality = 1) {
     if (!this.metatags) {
       this.metatags = {
-        url: this.browser.currentURI.spec
+        url: this.browser.currentURI.specIgnoringRef
       };
     }
 
     if (type == "touchIconList") {
       if (!this.metatags['touchIconList']) {
         this.metatags['touchIconList'] = {};
       }
       this.metatags.touchIconList[quality] = value;