Bug 1265708 - Set URL metadata based on URL without ref r?sebastian draft
authorAndrzej Hunt <ahunt@mozilla.com>
Thu, 02 Jun 2016 14:41:47 -0700
changeset 374830 d26a94e376b258382254d5dad8bb9fb07bf3dc54
parent 374829 3e65b6718e4170eadbeb15c9c0b0d0e194e6ed84
child 374831 be100298e5658b038c1f0c7d52b0f10e653db411
push id20091
push userahunt@mozilla.com
push dateThu, 02 Jun 2016 21:42:56 +0000
reviewerssebastian
bugs1265708
milestone49.0a1
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;