Bug 1265708 - Set URL metadata based on URL without ref r?sebastian
MozReview-Commit-ID: DNiKYFJiXjY
--- 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;