Commit graph

62 commits

Author SHA1 Message Date
William Lachance
8056e10c11 Bug 1263409 - In addon performance alert tests, poll to see if we get desired jank measurement r=Yoric
MozReview-Commit-ID: 3k6AZO5QJTp

--HG--
extra : rebase_source : dc4135589c173abd331f7ca33d1f8fdf7dce3573
2016-08-31 15:47:12 -04:00
Jared Wein
ea0b3d77bc Bug 1294542 - Enable the block-spacing rule for eslint. r=felipe
MozReview-Commit-ID: GDfvwWRLNm5
2016-08-16 21:27:37 -04:00
Sebastian Hengst
c66c2fee3a Backed out changeset 7914e9dc6f88 (bug 1294542) for xpcshell failure in test_Log.js. r=backout 2016-08-17 01:24:58 +02:00
Jared Wein
b82aa6f6de Bug 1294542 - Enable the block-spacing rule for eslint. r=felipe
MozReview-Commit-ID: AAXqh63QNv3
2016-08-16 15:44:13 -04:00
Jared Wein
871ed4e3ba Bug 1291855 - Enable the no-else-return rule for eslint. r=Felipe,kmag,mossop
MozReview-Commit-ID: DYOmE6xwMJh

--HG--
extra : rebase_source : bc81b68ea5599fd1815dc34dac7106eef7044483
2016-08-03 18:54:59 -04:00
Phil Ringnalda
f95b09aadd Bug 1230018 - skip browser_compartments.js on Linux opt e10s for constant failures 2016-06-30 19:36:17 -07:00
Mike Conley
bd5f8d5d32 Bug 1277644 - Make sure browser_Addons_sample test add-on tests CPOWs when it is supposed to. r=Yoric
browser_Addons_sample is used by the browser_AddonWatcher.js test to make sure
we can properly detect when an add-on consumes a bunch of CPU or does a lot of
CPOW traffic.

There's a race condition in the add-on where what is supposed to be a CPOW
might not always be a CPOW, so when we try to cause a bunch of CPOW
traffic, we don't get the expected performance warnings.

This makes sure that when we try to simulate CPOW usage, we do it
with an actual CPOW.

Additionally, this commit also includes the unpacked source of the
add-on, which before wasn't in the tree. I've also taken the liberty
of bumping the add-on version and signing it.

MozReview-Commit-ID: GICLYpi8Kon

--HG--
extra : rebase_source : bc9537c701335806d4845113910b03fadadb5b77
2016-05-29 12:00:50 -04:00
Dave Townsend
61b99aec71 Bug 1250611: Fix more tests to use signed add-ons. r=rhelmer
MozReview-Commit-ID: 97RVVxAM5eo

--HG--
extra : rebase_source : bfbec29b8eba2ee1c4b4ce1fb2415c5dab21e5ab
2016-02-29 10:04:55 -08:00
Dave Townsend
0a6414b898 Bug 1245649: Turn on no-trailing-spaces. r=Gijs
--HG--
extra : commitid : F2OWKTvXUO4
extra : rebase_source : ec68631342e0edc59d77b6bab1cdc975ad175327
2016-02-03 14:22:33 -08:00
David Rajchenbach-Teller
8402fc035a Bug 1142937 - AddonWatcher now communicates through nsIObserverService. r=felipe
The current API of AddonWatcher only supports a single callback. That's pretty unfriendly to testing, debugging, add-ons, etc.

This patch replaces the mechanism with a notification through the nsIObserverService.

--HG--
extra : transplant_source : %C2%88%B1%DF%B2%B2.%A7%C7Ti%C8%A8%C0%CA0%15f%8D%C5
2016-01-27 13:34:58 +01:00
Mike Conley
bc564553b4 Bug 1233497 - Do not resolve a Promise with a CPOW in browser_addonPerformanceAlerts.js r=Yoric
--HG--
extra : commitid : J0Wsk2huvoZ
extra : rebase_source : f4521791b2e7953955909de91e6085d9158d7ee7
2016-01-04 17:15:24 -05:00
David Rajchenbach-Teller
d89b7c6795 Bug 1238520 - Lowering the threshold for browser_addonPerformanceAlerts_2.js;r=me
--HG--
extra : rebase_source : 8c8bbfae598afadf3f9027915148171d2306a8ae
2016-01-12 10:51:47 +01:00
David Rajchenbach-Teller
165537290b Bug 1200169 - Making the slow add-on watcher more tolerant;r=Felipe
Showing alerts more than once is annoying for the user and basically
useless. We therefore change a bit our strategy:

- if an add-on has behaved correctly for the last 5 minutes, reset our counter of offences;
- don't display alerts for an add-on more than once per 6 hours.

The only exception is if the add-on freezes the browser (i.e. causes
it to stop for more than 5 seconds at a time), in which case we
display the alert regardless of past offences, up to once per 10
minutes.

--HG--
extra : rebase_source : d61bf85407493551618ff0b7866ef15267cafd06
2015-12-15 11:21:37 +01:00
Sami Jaktholm
83d60ea279 Bug 1230027 - Stop burnCPOWInSandbox from being GC'd during tests. r=yoric
Since no one is holding a reference to the burnCPOWInSandbox function
in the child process, it might get GC'd during the test. Binding it to
the global object should keep the function alive long enough for the
test to call it via CPOW.

--HG--
extra : transplant_source : %60%97%A0%8D%1D%B6%D1G%A0h%2B%11%A9%05%C1%13%25%10cc
2015-12-22 20:15:17 +02:00
Dave Townsend
86f03db916 Bug 1229142: Link browser and toolkit test directory to the shared eslintrc files. r=Standard8
--HG--
extra : commitid : CKT2WDkxE4k
extra : rebase_source : 0be50c483317355b1e9af5985d53e85604748432
extra : histedit_source : 65d203f57ebd38b8c130e5db9aaa8ae3f507e7ac
2015-11-30 13:05:00 -08:00
Ehsan Akhgari
7f4b8317d0 Bug 1229950 - Increase the timeout of browser_AddonWatcher.js 2015-12-30 22:27:40 -05:00
David Rajchenbach-Teller
477881cc13 Bug 1186491 - Reworking AddonWatcher to use low-level performance watch API;r=mossop
--HG--
extra : transplant_source : %CD%F4D%A6%85%FDF%7F%9E%D7%CEwS%9Bq%DE%07%9B4%EC
2015-11-24 13:36:58 +01:00
David Rajchenbach-Teller
389b1ebc07 Bug 1186491 - An API for watching slow performance alerts (js-level);r=felipe
--HG--
extra : transplant_source : .%14%3EFg%C2%D6O%E3%2C%FAl%25%AD%F9%CCAYC%B8
2015-11-24 13:37:19 +01:00
Mark Banner
fbca33b0b0 Bug 1227138 - Fix browser_AddonWatcher not to fail if system add-ons are present. r=Mossop 2015-11-23 19:45:24 +00:00
Bill McCloskey
c76ae8f933 Bug 967873 - Test changes for async removeTab (r=Gijs) 2015-11-04 10:56:15 -08:00
David Rajchenbach-Teller
ec335abb8b Bug 1188248 - Merge jank monitoring and CPOW monitoring (high-level);r=mossop
--HG--
extra : transplant_source : %7D%B7k%02.%09%9D%40%93%CB%DDm%1C%EE%27e%1D%02k%10
2015-07-30 15:21:08 +02:00
David Rajchenbach-Teller
f592701f52 Bug 1208747 - Move most of Stopwatch-related code to XPCOM-land (JS-level);r=felipe
--HG--
extra : transplant_source : %17%F9%03l%A4%E5%91y%5B%3FQ%E3%EF%C1%D5%10%B1%E4e%26
2015-09-25 18:44:34 +02:00
Carsten "Tomcat" Book
1a65e75c7e Backed out changeset 5b288d315423 (bug 1208747) 2015-10-21 11:39:21 +02:00
David Rajchenbach-Teller
583c9f37b8 Bug 1208747 - Move most of Stopwatch-related code to XPCOM-land (JS-level);r=felipe
--HG--
extra : transplant_source : %2A%BE%AA%DA%ED%D7%D0%16.%0D%B1dy%92%F8%E7%EB%11%BA%DC
2015-09-25 18:44:34 +02:00
Bill McCloskey
1b6da7ed71 Back out bug 967873 - Test changes for async removeTab 2015-10-07 11:15:11 -07:00
Carsten "Tomcat" Book
08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo
d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Bill McCloskey
633d4a3ecf Bug 967873 - Test changes for async removeTab (r=Gijs) 2015-10-01 21:18:05 -07:00
David Rajchenbach-Teller
7720c9f9ca Bug 1189799 - Make sure that about:performance displays each add-on only once (more tests);r=felipe
--HG--
extra : transplant_source : %08%D1%AF%23-%3C%BAd%8B%0E%F2%E0%C5%94%D8%1E%2C%989%97
2015-09-03 15:12:59 +02:00
Shu-yu Guo
64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Jonathan Griffin
cf56e85136 Bug 1136892 - Create a browser-chrome-addons tag for running addon-specific browser-chrome tests, r=chmanchester
--HG--
extra : commitid : HKQaOeqUMj1
2015-08-25 09:38:39 -07:00
David Rajchenbach-Teller
641046a863 Bug 1181175 - Get rid of test_compartments.js. r=yoric
--HG--
extra : transplant_source : %60%EA%AD_%C52%D4%0C%9EQ%849%7Dp%C0%60%13%3C%E0%17
2015-08-10 22:53:43 +02:00
David Rajchenbach-Teller
eaa230b89d Bug 1181175 - Use RDTSC for Performance Monitoring instead of getrusage. r=jandem
--HG--
extra : transplant_source : %7B%82%94E%8C%0AW%07%C2/n8%07%FD%95mt%03%EBM
2015-08-17 14:57:23 +02:00
Ryan VanderMeulen
a7ea8705c1 Backed out changesets db4294fb662d and de9ae2ccb73b (bug 1181175) for Android test_compartments.js failures.
CLOSED TREE
2015-08-10 15:07:27 -04:00
David Rajchenbach-Teller
d326242e8b Bug 1181175 - Use RDTSC for Performance Monitoring instead of getrusage. r=jandem
--HG--
extra : transplant_source : %8D%A9%CC%17Dj9-%81T%B2%0D%E1%EA%BD%05%C7%DCl%CB
2015-07-07 18:45:54 +02:00
David Rajchenbach-Teller
44f4adbd13 Bug 1184486 - Let PerformanceStats.jsm play nicer with process-per-tab. r=mconley
--HG--
extra : amend_source : a7a1e4f69592e8828469f84db6d6665d40fd68be
extra : transplant_source : %EB%C5q%CA%01%DC%3A%D5%07Y%19%07%8A%DCH%B0II%CA%C3
extra : histedit_source : d2d769675008d662ea78ae5b04e70c926296b3c1
2015-07-16 12:19:17 +02:00
Ryan VanderMeulen
0e3f4ba0b1 Backed out changeset 82fac7af188e (bug 1184486) for Static Analysis failures. 2015-07-29 09:11:52 -04:00
David Rajchenbach-Teller
f0e10ec7a1 Bug 1184486 - Let PerformanceStats.jsm play nicer with process-per-tab. r=mconley
--HG--
extra : transplant_source : %20%3A%1D%09%A4A%EC%C8%C3%F3%1A%87%1C%E3b%12q%BA%F8%BC
extra : histedit_source : c012c3b7271c68ada2296b5da19bc41280d9e35d
2015-07-16 12:19:17 +02:00
David Rajchenbach-Teller
0f2fa9841b Bug 1147664 - Detailed mode for PerformanceStats (high-level). r=mossop
--HG--
extra : transplant_source : %CD%0C%95%DB%81%94%B3%3E%5B%3F4%1C%A3/%D6%C3%A0%08%05%11
2015-06-12 21:52:06 +02:00
Wes Kocher
3f09481f19 Backed out 2 changesets (bug 1147664) for b2g xpcshell failures in test_compartments.js
Backed out changeset cfd27d5ffc58 (bug 1147664)
Backed out changeset cace9a3246c1 (bug 1147664)
2015-07-23 18:39:43 -07:00
David Rajchenbach-Teller
9b23c4163e Bug 1147664 - Detailed mode for PerformanceStats (high-level). r=felipe
--HG--
extra : rebase_source : 06488b342c9f672820f7d8303a05746e8f436364
2015-06-12 21:52:06 +02:00
Ryan VanderMeulen
e0a1536822 Backed out changesets 49667763013b and 83fa8af8140b (bug 1147664) for test_compartments.js xpcshell failures. 2015-07-23 11:35:55 -04:00
David Rajchenbach-Teller
70f4e08ddb Bug 1147664 - Detailed mode for PerformanceStats (high-level). r=mossop
--HG--
extra : source : 9eb2e0c7b864e31c7eac6999f7a74920a5dc344c
2015-06-12 21:52:06 +02:00
Ryan VanderMeulen
3a634b39d2 Backed out changesets 9eb2e0c7b864 and 19bdfb755eeb (bug 1147664) for various test failures. 2015-07-22 13:18:54 -04:00
David Rajchenbach-Teller
e75340bff9 Bug 1147664 - Detailed mode for PerformanceStats (high-level). r=mossop
--HG--
extra : transplant_source : %A59%BA%D0ePFJ%8B%5E%7F%F4%F1%C2%5BY%EC%C0%D5R
2015-06-12 21:52:06 +02:00
David Rajchenbach-Teller
e158902bf5 Bug 1175098 - PerformanceStats for e10s. r=felipe, r=mconley
CLOSED TREE

--HG--
extra : transplant_source : %E6%1E%87%CE%E4%15%82%5E%0F%C0%A8x8N%D0%E8%E0%83%19%07
2015-06-16 14:26:11 +02:00
Ryan VanderMeulen
0c009c0080 Backed out changeset 653179afb65f (bug 1175098) for frequent WinXP browser_compartments.js failures.
CLOSED TREE

--HG--
extra : amend_source : 281a11895a3ee742061158d49672d42a52146bad
2015-07-15 21:28:00 -04:00
David Rajchenbach-Teller
6ea9619e02 Bug 1175098 - PerformanceStats for e10s. r=felipe, r=mconley
--HG--
extra : transplant_source : %FA%8C%99H%88Ne%7DI%FC0B%13%BA%CB%3F%DC5%151
2015-06-16 14:26:11 +02:00
Ryan VanderMeulen
40c8b4358e Backed out changeset 0a0302b9ed20 (bug 1175098) for e10s browser_compartments.js failures. 2015-07-13 11:46:45 -04:00