зеркало из https://github.com/mozilla/pulse.git
Merge pull request #182 from chuckharmston/graduation-day
Creates self-uninstalling release, updates for graduation.
This commit is contained in:
Коммит
dd49c4b865
|
@ -6,6 +6,7 @@
|
|||
|
||||
Pulse is a [Test Pilot](https://testpilot.firefox.com) experiment that intends to align user satisfaction and perceived performance with more traditional performance metrics.
|
||||
|
||||
Pulse has graduated! Read [the graduation report](https://testpilot.firefox.com/experiments/pulse) to see what we learned and what happens next.
|
||||
|
||||
## Table of Contents
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
"description": "We're building the next generation of Firefox, and we're focusing on real-world speed and performance. Pulse lets you give our engineers feedback about your experience on websites that work well in Firefox and on websites that don't.",
|
||||
"author": "Firefox Test Pilot",
|
||||
"license": "MPL-2.0",
|
||||
"version": "1.1.2",
|
||||
"version": "1.1.3",
|
||||
"homepage": "https://testpilot.firefox.com/experiments/pulse",
|
||||
"hasEmbeddedWebExtension": true,
|
||||
"hasEmbeddedWebExtension": false,
|
||||
"permissions": {
|
||||
"multiprocess": true,
|
||||
"private-browsing": true
|
||||
|
|
37
src/index.js
37
src/index.js
|
@ -1,29 +1,20 @@
|
|||
import { PageMod } from 'sdk/page-mod';
|
||||
import self from 'sdk/self';
|
||||
import webext from 'sdk/webextension';
|
||||
/*
|
||||
Pulse has graduated, and the final version uninstalls itself.
|
||||
|
||||
To see the final version that was shipped to users, browse the 1.1.2 tag in the
|
||||
repository on GitHub:
|
||||
|
||||
https://github.com/mozilla/pulse/tree/1.1.2
|
||||
*/
|
||||
|
||||
import { Cu } from 'chrome';
|
||||
import { getMostRecentBrowserWindow } from 'sdk/window/utils';
|
||||
|
||||
import Logger from './lib/log';
|
||||
import handleMessage from './lib/messages';
|
||||
import NotificationWatcher from './lib/notify';
|
||||
|
||||
const { AddonManager } = Cu.import('resource://gre/modules/AddonManager.jsm');
|
||||
const logger = new Logger('sdk.index', getMostRecentBrowserWindow().console);
|
||||
|
||||
logger.log('SDK startup');
|
||||
|
||||
PageMod({
|
||||
include: '*',
|
||||
contentScriptFile: self.data.url('pagemonitor.js'),
|
||||
contentScriptWhen: 'start'
|
||||
});
|
||||
|
||||
// On startup, establish a connection with the embedded WebExtension.
|
||||
webext.startup().then(({ browser }) => {
|
||||
logger.log('WebExtension startup');
|
||||
|
||||
// Listen for messages from the WebExtension.
|
||||
browser.runtime.onMessage.addListener(handleMessage);
|
||||
|
||||
// Start time for prompted feedback.
|
||||
new NotificationWatcher();
|
||||
logger.log('Uninstalling Pulse. Thanks for the good times!')
|
||||
AddonManager.getAddonByID('pulse@mozilla.com', addon => {
|
||||
addon.uninstall();
|
||||
});
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"manifest_version": 2,
|
||||
"name": "pulse",
|
||||
"version": "1.1.2",
|
||||
"version": "1.1.3",
|
||||
"description": "We're building the next generation of Firefox, and we're focusing on real-world speed and performance. Pulse lets you give our engineers feedback about your experience on websites that work well in Firefox and on websites that don't.",
|
||||
"homepage_url": "https://testpilot.firefox.com/experiments/pulse",
|
||||
"icons": {
|
||||
|
|
Загрузка…
Ссылка в новой задаче