Commit Graph

1246 Commits

Author SHA1 Message Date
Gian-Carlo Pascutto
e5c1135a58 Bug 1392640 - Only use preference based whitelisting for Linux. r=haik
MozReview-Commit-ID: IWNnRcLMreI

--HG--
extra : rebase_source : 9802f3e8c251aab58ef6f181d6066b5e020909a3
2017-08-30 13:40:10 +02:00
Geoff Brown
6d680d9a44 Bug 1394957 - Fix logging of number of tests when running chunked reftests; r=ahal 2017-08-30 10:11:28 -06:00
Kris Maglione
8b415f700f Bug 1394556: Part 1 - Fix strict mode errors in JSM scripts. r=Mossop
MozReview-Commit-ID: 4LmJQql7Y2c

--HG--
extra : rebase_source : f18b5547a5a57db4e8b990bfc34f06690ac9da7a
extra : histedit_source : 7281bafbde4bf231752d9d868ec8ca1d2f55a2f9
2017-08-30 01:50:27 -07:00
Geoff Brown
0c1b12715e Bug 1386816 - Kill any xpcshell or ssltunnel already running at start of tests; r=jmaher
This renames killNamedOrphans to killNamedProc and removes the check for
parent proc id, so that any xpcshell or ssltunnel process is killed before
starting a mochitest or reftest run. For reftests, this is moved out of
the desktop harness and into the remote/android harness, since desktop
reftests do not use xpcshell or ssltunnel.
2017-08-29 15:44:18 -06:00
J. Ryan Stinnett
729eca139b Bug 1393234 - Check STYLO_FORCE_DISABLED in reftests. r=jmaher
MozReview-Commit-ID: DEg817q0HOQ

--HG--
extra : rebase_source : 27b536a6ef63885916811ce3f0d2b725cdfc49b2
2017-08-24 16:29:49 -05:00
Francois Marier
719c2b26b8 Bug 1388938 - Disable channel annotation and flashblock in tests harnesses.r=hchang
Since these tests harnesses are already disabling Safe Browsing and tracking
protection, they should also disable the other two features that cause
lists to be downloaded from the Mozilla shavar server.

MozReview-Commit-ID: 2158qRU4XZx

--HG--
extra : rebase_source : 287bfb7580538cca7f58ab035b7141166346c318
2017-08-23 15:47:37 -07:00
Kris Maglione
821308e4d1 Bug 1391110: Part 4 - Remove unnecessary nsIFrameLoaderOwner QIs. r=smaug
The FrameLoaderOwner interface has been implemented in WebIDL for several
years now, so these QIs are simply unnecessary overhead.

MozReview-Commit-ID: LAzvfm5Qhy0

--HG--
extra : rebase_source : 2495c07df21c474f5fabc257ff4db43b0d8047e4
2017-08-19 13:32:58 -07:00
Wes Kocher
fb8abb94c7 Merge inbound to central, a=merge
MozReview-Commit-ID: 1mWKzfX4kl
2017-08-23 18:07:24 -07:00
Nicholas Nethercote
f582d96b98 Bug 1390428 (part 9) - Remove nsXPIDLCString. r=erahm.
This is straightforward, with only two notable things.

- `#include "nsXPIDLString.h" is replaced with `#include "nsString.h"`
  throughout, because all nsXPIDLString.h did was include nsString.h. The
  exception is for files which already include nsString.h, in which case the
  patch just removes the nsXPIDLString.h inclusion.

- The patch removes the |xpidl_string| gtest, but improves the |voided| test to
  cover some of its ground, e.g. testing Adopt(nullptr).

--HG--
extra : rebase_source : 452cc4a08046a1adb1a8099a7e85a1917de5add8
2017-08-17 15:29:03 +10:00
Kartikaya Gupta
9d3fe2ff57 Bug 1393015 - Disable KillHard timeout for reftests. r=smaug
MozReview-Commit-ID: LSPwGOXNnnW
2017-08-23 12:00:56 -04:00
Francois Marier
95ce2d4568 Bug 1385484 - Ensure that login reputation checks are disabled in tests. r=hchang
The login reputation checks depend on a server lookup and therefore would
render non-deterministic the performance and correctness of tests.

MozReview-Commit-ID: Bil0rSZsGPT

--HG--
extra : rebase_source : ae06a028c71eee323307ecd4e62bbf1e8a14fe13
2017-08-22 17:56:20 -07:00
Wes Kocher
207dd28c61 Backed out 4 changesets (bug 1385484) for build failures a=backout
Backed out changeset 401c2744f16b (bug 1385484)
Backed out changeset 2ff443a0c744 (bug 1385484)
Backed out changeset 1a1c476a9aaa (bug 1385484)
Backed out changeset 87ec064a3681 (bug 1385484)

MozReview-Commit-ID: D9WGXiXaNoZ

--HG--
extra : rebase_source : ebab6135905e972abf7eeab9af8db41454687373
2017-08-22 17:22:41 -07:00
Francois Marier
7975ef15d4 Bug 1385484 - Ensure that login reputation checks are disabled in tests. r=hchang
The login reputation checks depend on a server lookup and therefore would
render non-deterministic the performance and correctness of tests.

MozReview-Commit-ID: Bil0rSZsGPT

--HG--
extra : rebase_source : c9a641e4bf49c48bf864ed546bf2ae6eb51c27e4
2017-08-08 16:25:12 -07:00
Gregory Szorc
a1d02ea1fb Bug 1392886 - Defer import reftestcommandline; r=mshal
This shouldn't be at module level.

This isn't technically needed for this series. I caught it during
an earlier attempt at teasing out all Python import dependencies
to run `mach`. Why let a good patch go to waste.

MozReview-Commit-ID: FwwdZqcKtpq

--HG--
extra : rebase_source : a8ce2cf452dc8c03371dc384ea4f1be9195b5d30
2017-07-19 11:27:10 -07:00
Gian-Carlo Pascutto
f4a0bc4497 Bug 1386826 - Whitelist the objdir, so _tests gets covered. r=jmaher
MozReview-Commit-ID: 8SHk1Pfy37I

--HG--
extra : rebase_source : 3944e20e310dda395e67ba9b1e33747413dea84e
2017-08-16 19:03:09 +02:00
Geoff Brown
f735ed7396 Bug 1388883 - Ensure a fresh necko cache for each mochitest and reftest run; r=bc 2017-08-16 06:55:49 -06:00
Bob Owen
00eaf28579 Bug 1386502 - Whitelist paths added via pref for files opened in the content process during some tests. r=jimm
--HG--
extra : rebase_source : a34c7e1d445154843e8efd0146824dff0bdfda9b
2017-08-07 17:42:00 +01:00
Masatoshi Kimura
f6b1dc1043 Bug 1375125 - Fix errors caused by mechanical replacement. r=froydnj
MozReview-Commit-ID: 1kOvLdeCJiR

--HG--
extra : rebase_source : 94b04b16ac5d951600d31d1cdb78b494d8275ad1
2017-08-05 08:21:55 +09:00
Masatoshi Kimura
8b713b2b0f Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj
This mechanically replaces nsILocalFile with nsIFile in
*.js, *.jsm, *.sjs, *.html, *.xul, *.xml, and *.py.

MozReview-Commit-ID: 4ecl3RZhOwC

--HG--
extra : rebase_source : 412880ea27766118c38498d021331a3df6bccc70
2017-08-04 17:49:22 +09:00
J. Ryan Stinnett
f9a182567a Bug 1386416 - Move all reftest vars above sandbox dump. r=kats
MozReview-Commit-ID: HDIr0FTbDNK

--HG--
extra : rebase_source : 7d43cb71154299b2cbdf42962a01c3e9cb6ca9e5
2017-08-01 16:16:17 -05:00
k88hudson
9aa13cc7ee Bug 1386350 - Turn off snippets in activity stream for tests r=dmose
MozReview-Commit-ID: EFSL3GsLppv

--HG--
extra : rebase_source : 5cb92aa763f11523517882807d24b5be34c2075d
2017-08-01 14:35:06 -04:00
Carsten "Tomcat" Book
d360d49d2a merge mozilla-inbound to mozilla-central a=merge 2017-07-27 10:57:25 +02:00
Tobias Schneider
3880ddff03 Bug 1382327 - (reftest) Rename reftest-print to reftest-paged. r=dbaron
--HG--
extra : rebase_source : c4e47e2de8d615c77e7e9ce88f6b21c9d15c92e4
2017-07-26 22:53:46 -07:00
Dan Mosedale ext:(%3E)
d7d5ed0cbd Bug 1384721 - fix pocket network activity during tests, r=Mardak
MozReview-Commit-ID: G9mGNt5imhr

--HG--
extra : rebase_source : 5f94c58b5c34b3670509cf27c9ad635159deca4d
2017-07-26 14:32:42 -07:00
Samael Wang
87f7100ef3 Bug 1381933 - Retry loading blank page if gClearingForAssertionCheck but load event comes from another URL. r=jmaher
MozReview-Commit-ID: 9AIEW508oID

--HG--
extra : rebase_source : 45be11677b1414650777c5147a26b9eb69caf4e9
2017-07-20 17:15:32 +08:00
Jonathan Kew
4192f89a3a Bug 1335429 - Ensure hyphenation dictionaries are included in the reftest artifact for packaged tests. r=gbrown 2017-07-19 10:10:31 +01:00
Kartikaya Gupta
6e17af04db Bug 1381091 - Don't restart the reftest suite if it finishes running all the tests. r=ahal
This also guards against passing a non-test parameter to reftest.startAfter.

MozReview-Commit-ID: FoqqN4D7sv7

--HG--
extra : rebase_source : 0e5d879467c04803e3ac565b979aceaad3176597
2017-07-18 13:10:29 -04:00
Kartikaya Gupta
90294f253c Bug 1381091 - Check for crash dumps before running the first reftest. r=ahal
This avoids mistakenly blaming the first reftest in the suite for a crash that
happens during startup. Blaming that reftest can result in fragmentation of the
resulting issues because any bugs filed by sheriffs will be test-specific instead
of grouped together into a single bug.

MozReview-Commit-ID: K4YelNzXxzg

--HG--
extra : rebase_source : b291f365956997bbc3d591addee6817ad3e0ff9b
2017-07-18 13:10:29 -04:00
Sebastian Hengst
186c6d7165 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Kr2w3UdA0p9
2017-07-15 16:34:47 +02:00
Wes Kocher
6d62b1970e Merge m-c to inbound, a=merge
MozReview-Commit-ID: 4kiY84LofOi
2017-07-14 17:19:10 -07:00
Samael Wang
fb7d249ae4 Bug 1362903 - Clear gCurrentURL on reftest finishes. r=jmaher
MozReview-Commit-ID: 82jsXh702fj
2017-07-14 11:21:29 +08:00
Haik Aftandilian
ce8f59e85d Bug 1380132 - Part 2 - Set MOZ_DEVELOPER_OBJ_DIR before launching Firefox. r=gps
MozReview-Commit-ID: CvSUt2KueHr

--HG--
extra : rebase_source : 7d621a1dc7ced33a2c00e906970401e152a70189
2017-07-12 17:01:56 -07:00
Kartikaya Gupta
d4d1449ac5 Bug 1381093 - Fix typo in variable declaration. r=dbaron
MozReview-Commit-ID: 7bR9NEFF5pN

--HG--
extra : rebase_source : 143527bfd652c7c3b37609d938dbdf5629494ec8
2017-07-14 15:01:18 -04:00
J. Ryan Stinnett
1419cc8b1f Bug 1380082 - Check Stylo env var for reftest processing. r=jmaher
Test harnesses may use STYLO_FORCE_ENABLED, so we need to check this value when
building the reftest conditions.

MozReview-Commit-ID: 998UMZHNKLl

--HG--
extra : rebase_source : c52e2539c0384c2c300b729ac88fe3381e127509
2017-07-11 13:35:57 -05:00
Sylvestre Ledru
4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Thomas Nguyen
62625fef28 Bug 1297614 - Refactor and remove dead code in toolkit/components/url-classifier/content r=francois
MozReview-Commit-ID: GzVGS1ZTRGL

--HG--
extra : rebase_source : ee868b5fb590f4965b17535383327df98504e963
2017-06-30 13:31:03 -07:00
James Graham
40926dd52b Bug 1378398 - Remove debugging dump() from reftest harness, r=kats
MozReview-Commit-ID: 7tUifg2wyjZ

--HG--
extra : rebase_source : aff3825f3de86a8a9ded96aa0491a8cfb7f39f01
2017-07-05 16:15:37 +01:00
Alex Gaynor
b08206238c Bug 1374557 - Part 2 - Use the new preference to whitelist paths for reading that are needed by tests; r=gcp,haik,jmaher
MozReview-Commit-ID: 4IaTrHPHZaC

--HG--
extra : rebase_source : 28824735f74b369d5755b3bced0f61d22c7c8845
2017-06-21 10:24:16 -04:00
Carsten "Tomcat" Book
259377b6ab merge mozilla-inbound to mozilla-central a=merge 2017-06-26 13:25:51 +02:00
David Anderson
4005708b7f Add Advanced Layers to the reftest sandbox. (bug 1365879 part 24, r=mattwoodrow) 2017-06-23 14:23:13 -07:00
James Graham
5fd8e99e6a Bug 1363428 - Add reftest-specific endpoints to Marionette, r=ato
This adds commands to start a reftest session, run a test, and end the
session. It as assumed that after you start a reftest session you will
just run reftests until you end the session. When starting a session
the user provides a string indicating when screenshots should be
taken, and an object mapping urls to a count of the number of times
that url is expected to be used in the session, to help with
caching. Running the tests takes a url to a test, an expected status,
a timeout, and a nested list of possible references, in which each
entry at a specific level is combined by OR and nested references are
combined by AND.

The implementation is heavilly inspired by the existing reftest
harness, starting a minimal window with no tabs, and loading the urls
directly in there. In order to get a screenshot in the e10s case we
have to pass the DRAW_VIEW and USE_WIDGET_LAYERS flags when taking the
screenshot.

For performance we heavily cache canvases; for references that will be
repeated we cache the full canvas with image, and we also cache a
single canvas to use for all other screenshots to avoid the overhead
of repeatedly creating a new canvas element.

MozReview-Commit-ID: JOFvtmH7tg
2017-06-24 12:03:11 +01:00
Wes Kocher
ea40157e54 Backed out 16 changesets (bug 1363428) for Wr failures a=backout CLOSED TREE
Backed out changeset e86d6d5c2a25 (bug 1363428)
Backed out changeset a0687a63e7b9 (bug 1363428)
Backed out changeset 858dc97498c7 (bug 1363428)
Backed out changeset 582a8dce7932 (bug 1363428)
Backed out changeset 26ae2fd48587 (bug 1363428)
Backed out changeset 7fa8e20fe001 (bug 1363428)
Backed out changeset 829c13a75667 (bug 1363428)
Backed out changeset a94d2c400b04 (bug 1363428)
Backed out changeset ec4a6b343b37 (bug 1363428)
Backed out changeset c27b94038e71 (bug 1363428)
Backed out changeset d1c03b96d270 (bug 1363428)
Backed out changeset 60c1c95b46ca (bug 1363428)
Backed out changeset b0604d88973f (bug 1363428)
Backed out changeset f0b218979773 (bug 1363428)
Backed out changeset 1d359561373c (bug 1363428)
Backed out changeset 956d6c0a646e (bug 1363428)

MozReview-Commit-ID: K8EBA8ACZLC
2017-06-23 14:13:27 -07:00
Carsten "Tomcat" Book
736f72b667 Backed out changeset ab715ee9ef99 (bug 1363879) 2017-06-23 12:15:25 +02:00
David Anderson
a3a1ca6937 Add Advanced Layers to the reftest sandbox. (bug 1363879 part 24, r=mattwoodrow)
--HG--
extra : rebase_source : f5014d9533cb7f160192c9ec43c4822dc155b078
2017-06-22 21:12:21 -07:00
James Graham
c9e960f859 Bug 1363428 - Add reftest-specific endpoints to Marionette, r=ato
This adds commands to start a reftest session, run a test, and end the
session. It as assumed that after you start a reftest session you will
just run reftests until you end the session. When starting a session
the user provides a string indicating when screenshots should be
taken, and an object mapping urls to a count of the number of times
that url is expected to be used in the session, to help with
caching. Running the tests takes a url to a test, an expected status,
a timeout, and a nested list of possible references, in which each
entry at a specific level is combined by OR and nested references are
combined by AND.

The implementation is heavilly inspired by the existing reftest
harness, starting a minimal window with no tabs, and loading the urls
directly in there. In order to get a screenshot in the e10s case we
have to pass the DRAW_VIEW and USE_WIDGET_LAYERS flags when taking the
screenshot.

For performance we heavily cache canvases; for references that will be
repeated we cache the full canvas with image, and we also cache a
single canvas to use for all other screenshots to avoid the overhead
of repeatedly creating a new canvas element.

MozReview-Commit-ID: JOFvtmH7tg

--HG--
extra : rebase_source : ab5a2ef2e450b9bbdc6bc3c9487ed5dfda2c1d4b
2017-05-10 10:51:10 +01:00
Andrew Halberstadt
6d1819c652 Bug 1372981 - Limit reftest to 4 attempts at recovering after a crash, r=jmaher
MozReview-Commit-ID: IEfM1b6FTHD

--HG--
extra : rebase_source : 3ed87e0bd8f09f6c7bb2599edd44af882777458a
2017-06-14 13:25:59 -04:00
Andrew Halberstadt
f67d4de397 Bug 1372922 - Don't log suite_start a second time in reftest if recovering from a crash, r=jmaher
MozReview-Commit-ID: 45lYTfrCyxN

--HG--
extra : rebase_source : 1398191fdff646133bb5064025c0f97192ef3071
2017-06-14 12:10:10 -04:00
Andrew Halberstadt
c9beaa56b4 Bug 1373294 - Fix E305 (two blank lines after method or class) in files enabled by flake8 linter, r=jmaher
This is needed before we can upgrade to flake8 3.3.0, as that version starts flagging these errors.

These files were modified by running:
autopep8 --select E305 --in-place -r <dir>

on the affected directories. I did it one dir at a time and verified the result after each.

MozReview-Commit-ID: FmlsfiKIbtr

--HG--
extra : rebase_source : 9df32258cadff5d27a0e72113c57f782756c0b18
2017-06-15 12:10:59 -04:00
Olli Pettay
5591c27af9 Bug 1367905 - Try to run GC/CC slices, including forgetSkippable, during idle time, tweaks to keep reftest memory usage lower, r=mccr8
--HG--
extra : rebase_source : 850e4f25ef1ac18b768dc50dc4fa9b77f0743080
2017-06-10 02:41:06 +03:00
Olli Pettay
ce6010c7d6 Bug 1367905 - Try to run GC/CC slices, including forgetSkippable, during idle time, r=mccr8
--HG--
extra : rebase_source : 2ee14a0cc890b91f405a5b4741030dbad6989018
2017-06-10 02:38:50 +03:00