Bug 1265708 - Set URL metadata based on URL without ref r=sebastian
authorAndrzej Hunt <ahunt@mozilla.com>
Thu, 02 Jun 2016 14:41:47 -0700
changeset 341424 3eaa539ca29456dbe29a2467638e0fe8f08dec88
parent 341423 971e29d3b65c788142eb09b900c98279fd38a732
child 341425 ce9080e6765eb54ba1d65df446e4d917edb18677
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;