diff --git a/.taskcluster.yml b/.taskcluster.yml index 504a35f13b8f2..78e6be5a16d15 100644 --- a/.taskcluster.yml +++ b/.taskcluster.yml @@ -146,6 +146,9 @@ tasks: GECKO_COMMIT_MSG: {$if: 'tasks_for != "action"', then: '${push.comment}'} HG_STORE_PATH: /builds/worker/checkouts/hg-store TASKCLUSTER_CACHES: /builds/worker/checkouts + # someday, these will be provided by the worker - Bug 1492664 + TASKCLUSTER_ROOT_URL: https://taskcluster.net + TASKCLUSTER_PROXY_URL: http://taskcluster - $if: 'tasks_for == "action"' then: ACTION_TASK_GROUP_ID: '${action.taskGroupId}' # taskGroupId of the target task diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js index 9e037e68d6be6..bf79cdae292f2 100644 --- a/browser/app/profile/firefox.js +++ b/browser/app/profile/firefox.js @@ -1651,8 +1651,10 @@ pref("browser.migrate.chrome.history.maxAgeInDays", 180); // Enable browser frames for use on desktop. Only exposed to chrome callers. pref("dom.mozBrowserFramesEnabled", true); +pref("extensions.pocket.api", "api.getpocket.com"); pref("extensions.pocket.enabled", true); pref("extensions.pocket.oAuthConsumerKey", "40249-e88c401e1b1f2242d9e441c4"); +pref("extensions.pocket.site", "getpocket.com"); pref("signon.schemeUpgrades", true); diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index c5b5876bf4511..795e89ac9d37c 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -43,6 +43,7 @@ XPCOMUtils.defineLazyModuleGetters(this, { PlacesUIUtils: "resource:///modules/PlacesUIUtils.jsm", PlacesTransactions: "resource://gre/modules/PlacesTransactions.jsm", PluralForm: "resource://gre/modules/PluralForm.jsm", + Pocket: "chrome://pocket/content/Pocket.jsm", PrivateBrowsingUtils: "resource://gre/modules/PrivateBrowsingUtils.jsm", ProcessHangMonitor: "resource:///modules/ProcessHangMonitor.jsm", PromiseUtils: "resource://gre/modules/PromiseUtils.jsm", @@ -139,6 +140,8 @@ if (AppConstants.NIGHTLY_BUILD) { "chrome://browser/content/browser-webrender.js"); } +XPCOMUtils.defineLazyScriptGetter(this, "pktUI", "chrome://pocket/content/main.js"); + // lazy service getters XPCOMUtils.defineLazyServiceGetters(this, { diff --git a/browser/base/content/browser.xul b/browser/base/content/browser.xul index 34e2080ccdf1d..3aff49590ef8c 100644 --- a/browser/base/content/browser.xul +++ b/browser/base/content/browser.xul @@ -1035,6 +1035,18 @@ xmlns="http://www.w3.org/1999/xhtml" tooltiptext="&pageActionButton.tooltip;" onmousedown="BrowserPageActions.mainButtonClicked(event);" onkeypress="BrowserPageActions.mainButtonClicked(event);"/> +