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 339387 10fa130289d70f0adb8ad8379d3454976c922049
parent 339386 e994f70de0490e77a2309793852434f2f1641ad7
child 339388 67c37ed1a25f92cac6294cb70af97e95515c30e2
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [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;