Bug 1301715 - Only extract metadata if the Activity Stream or Nightly flag is enabled. r=ahunt

MozReview-Commit-ID: 7Ic8v1M6AAy

--HG--
extra : rebase_source : aec2ce74749b19abf21f5f1f1ed098af60eaf3af
This commit is contained in:
Sebastian Kaspari 2016-09-30 11:58:25 -04:00
parent 2e775e23a6
commit 8a899e5b22
2 changed files with 10 additions and 1 deletions

View File

@ -3933,7 +3933,9 @@ Tab.prototype = {
this.browser.addEventListener("pagehide", listener, true);
}
WebsiteMetadata.parseAsynchronously(this.browser.contentDocument);
if (AppConstants.NIGHTLY_BUILD || AppConstants.MOZ_ANDROID_ACTIVITY_STREAM) {
WebsiteMetadata.parseAsynchronously(this.browser.contentDocument);
}
break;
}

View File

@ -295,6 +295,13 @@ this.AppConstants = Object.freeze({
false,
#endif
MOZ_ANDROID_ACTIVITY_STREAM:
#ifdef MOZ_ANDROID_ACTIVITY_STREAM
true,
#else
false,
#endif
DLL_PREFIX: "@DLL_PREFIX@",
DLL_SUFFIX: "@DLL_SUFFIX@",