Commit Graph

560 Commits

Author SHA1 Message Date
Chris Pearce
00a43a7a06 Bug 1540573 - p7. Modify CSP tests to use preload=2 on (emulated) cellular connections. r=jya
The Content Security Policy tests were handling the smaller android preload
values that were #defined on Android by setting media.preload.default=2.  Now
that we're detecting whether we're on cellular or not, and the android
emulators that our tests run on emulate a cellular connection, just setting
media.preload.default is no longer enough.

So set media.preload.default.cellular=2 in the CSP mochitests instead of
media.preload.default, to make the CSP mochitests pass in the Android
emulators.

Differential Revision: https://phabricator.services.mozilla.com/D29617

--HG--
extra : moz-landing-system : lando
2019-05-06 22:43:18 +00:00
Andreea Pavel
e2388edd9f Backed out 7 changesets (bug 1540573) for causing bug 1548441
Backed out changeset dd882b8cd73e (bug 1540573)
Backed out changeset b10d2cae45f2 (bug 1540573)
Backed out changeset 270a8917377f (bug 1540573)
Backed out changeset 3db059b34e40 (bug 1540573)
Backed out changeset fe196b2dfc62 (bug 1540573)
Backed out changeset 1bde5042e507 (bug 1540573)
Backed out changeset 4ff116b9d729 (bug 1540573)
2019-05-03 20:35:27 +03:00
Chris Pearce
fb8bc549b9 Bug 1540573 - p7. Modify CSP tests to use preload=2 on (emulated) cellular connections. r=jya
The Content Security Policy tests were handling the smaller android preload
values that were #defined on Android by setting media.preload.default=2.  Now
that we're detecting whether we're on cellular or not, and the android
emulators that our tests run on emulate a cellular connection, just setting
media.preload.default is no longer enough.

So set media.preload.default.cellular=2 in the CSP mochitests instead of
media.preload.default, to make the CSP mochitests pass in the Android
emulators.

Differential Revision: https://phabricator.services.mozilla.com/D29617

--HG--
extra : moz-landing-system : lando
2019-05-03 02:45:06 +00:00
Andrei Oprea
555af1c529 Bug 1540939 - Remove SnippetsFeed and related components r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D27252

--HG--
extra : moz-landing-system : lando
2019-04-24 07:41:50 +00:00
Kris Maglione
1c39319950 Bug 1540856: Part 1 - Remove useless references to lightweightThemes preferences. r=aswan,dao
Differential Revision: https://phabricator.services.mozilla.com/D25677

--HG--
extra : rebase_source : d65a8b4e152342fd039cf35a410311f7ac664c9c
extra : histedit_source : c3fc70a285b39a6a8c09bac963211159573a5d09
2019-04-01 15:22:20 -07:00
Ting-Yu Lin
7f6824aa03 Bug 1493317 Part 2 - Enable AccessibleCaret in unit tests. r=jchen
And use correct AccessibleCaret preference to disable it individually in tests.

Differential Revision: https://phabricator.services.mozilla.com/D10299

--HG--
extra : moz-landing-system : lando
2019-03-16 07:38:34 +00:00
Johann Hofmann
7175d71e03 Bug 1529643 - Don't do MitM priming in tests. r=whimboo,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D22407

--HG--
extra : moz-landing-system : lando
2019-03-13 23:37:01 +00:00
Gurzau Raul
c747f02899 Backed out 2 changesets (bug 1529643) for eslint failure at NetErrorChild.jsm on a CLOSED TREE.
Backed out changeset 000dfd4caca0 (bug 1529643)
Backed out changeset e4718a35d70b (bug 1529643)
2019-03-14 01:09:43 +02:00
Johann Hofmann
5f4d44a59c Bug 1529643 - Don't do MitM priming in tests. r=whimboo,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D22407

--HG--
extra : moz-landing-system : lando
2019-03-13 21:04:04 +00:00
James Willcox
066c2a84e4 Bug 1524992 - Followup to add newline r=mbrubeck,rbarker
Differential Revision: https://phabricator.services.mozilla.com/D23192

--HG--
extra : moz-landing-system : lando
2019-03-12 19:22:16 +00:00
James Willcox
0871175ad0 Bug 1524992 - Allow external data: URIs in tests r=ckerschb
We use this to tell the Quitter extension to quit in the PGO
profile generation and Valgrind tests.

Differential Revision: https://phabricator.services.mozilla.com/D22726

--HG--
extra : moz-landing-system : lando
2019-03-11 17:34:14 +00:00
James Willcox
c999b31a54 Bug 1524992 - Allow external data: URIs in tests r=ckerschb
We use this to tell the Quitter extension to quit in the PGO
profile generation and Valgrind tests.

Differential Revision: https://phabricator.services.mozilla.com/D22753

--HG--
extra : moz-landing-system : lando
2019-03-11 17:32:18 +00:00
Johann Hofmann
29ffd191a3 Bug 1511111 - Add dummy remote-settings pref for xpcshell tests. r=leplatrem
Differential Revision: https://phabricator.services.mozilla.com/D22291

--HG--
extra : moz-landing-system : lando
2019-03-08 22:21:40 +00:00
Jan Henning
50c69a3713 Bug 1529863 - Remove remnants of unused browser.firstrun and browser.snippets prefs. r=geckoview-reviewers,whimboo,esawin
"browser.firstrun.*" seems to have been unused since the end of XUL-based
Fennec, whereas the code referencing the "browser.snippets.*" prefs was removed
in bug 1482836.

Differential Revision: https://phabricator.services.mozilla.com/D20862

--HG--
extra : moz-landing-system : lando
2019-03-06 14:59:46 +00:00
Jonathan Kingston
83bd9bdac8 Bug 1494034 - Add support for CSS prefers-color-scheme media feature. r=emilio 2019-02-15 21:40:35 +01:00
Marco Bonardo
12675bb16f Bug 1519538 - Disable idle-daily notifications in tests through user.js files. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D19017

--HG--
extra : moz-landing-system : lando
2019-02-09 13:29:21 +00:00
arthur.iakab
ddeb2146e9 Backed out changeset bac51381060d (bug 1519538) for causing multiple failures on Windows CLOSED TREE 2019-02-08 19:34:20 +02:00
Marco Bonardo
c8cf4c2695 Bug 1519538 - Disable idle-daily notifications in tests through user.js files. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D19017

--HG--
extra : moz-landing-system : lando
2019-02-08 16:43:58 +00:00
Noemi Erli
c2aec081be Backed out changeset bac51381060d (bug 1519538) for Linting failure in config.py 2019-02-08 18:32:01 +02:00
Marco Bonardo
65f6d086f4 Bug 1519538 - Disable idle-daily notifications in tests through user.js files. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D19017

--HG--
extra : moz-landing-system : lando
2019-02-08 14:10:08 +00:00
k88hudson
c6469703ed Bug 1523703 - Part 2. Set discovery stream pref to [] for tests r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D18992

--HG--
extra : moz-landing-system : lando
2019-02-07 18:44:26 +00:00
Narcis Beleuzu
e2a6b02f8b Backed out changeset c31a81865825 (bug 1523703) for bc failures on browser_packaged_as_locales.js 2019-02-06 19:26:46 +02:00
k88hudson
3e54f15e91 Bug 1523703 - Disable discoverystream in test environment r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D18755

--HG--
extra : moz-landing-system : lando
2019-02-06 16:30:04 +00:00
Noemi Erli
c2d1edbb87 Backed out changeset 58286693d6d8 (bug 1523703) for massive test failures CLOSED TREE 2019-02-06 02:08:39 +02:00
k88hudson
6defc0874e Bug 1523703 - Disable discoverystream in test environment r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D18755

--HG--
extra : moz-landing-system : lando
2019-02-05 22:49:00 +00:00
Emilio Cobos Álvarez
a155f63750 Bug 1523712 - Make -moz-binding chrome / UA only. r=boris
But enable it in all tests because a lot of them rely on using it in the
style="" attribute for example, or in inline stylesheets, which will no longer
parse this (even in chrome documents), and we don't want to rewrite all the XUL
and XBL tests.

Differential Revision: https://phabricator.services.mozilla.com/D18027

--HG--
extra : moz-landing-system : lando
2019-01-30 20:55:54 +00:00
Brian Grinstead
b7ba45940c Bug 1522921 - Set the devtools chrome debugging prefs to true by default in mochitests and wpt r=ahal,miker
Differential Revision: https://phabricator.services.mozilla.com/D17671

--HG--
extra : moz-landing-system : lando
2019-01-30 03:25:17 +00:00
Cosmin Sabou
599a15d354 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Shane Caraveo
e8915eda78 Bug 1515701 show addons disabled doorhanger in private browsing, r=Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D15445

--HG--
extra : moz-landing-system : lando
2019-01-29 01:39:37 +00:00
Andrei Oprea
88359867bd Bug 1509274 - Disable screenshots in mochitests r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D16025

--HG--
extra : moz-landing-system : lando
2019-01-25 19:58:42 +00:00
Michal Novotny
fcbc8b9cd2 Bug 1455723 - Firefox59 does not properly honor cache size set in autoconfig files, r=mayhemer
We keep old cache code in the tree only because of offline cache. We no longer allow using old disk or memory cache. This patch removes all preferences manipulation from old cache code that isn't used by offline cache. It removes also some related code (e.g. everything smart size related, unused defines etc.), but the goal wasn't to remove all unused code from the old cache.
2019-01-14 06:47:00 +02:00
Margareta Eliza Balazs
ca2235a67e Backed out 4 changesets (bug 1517025) for multiple failures e.g.: toolkit/components/telemetry/tests/unit/test_PingAPI.js CLOSED TREE
Backed out changeset 1e173178e49f (bug 1517025)
Backed out changeset c29889dea969 (bug 1517025)
Backed out changeset 48c7d643d2fa (bug 1517025)
Backed out changeset 419cb778d531 (bug 1517025)
2019-01-21 16:13:56 +02:00
Valentin Gosu
eaeb0a8a1c Bug 1517025 - Change default pref URLs to localhost instead of %(server) r=Gijs
We now disallow the % sign in the hostname of a URL.
If the app.normandy.api_url pref isn't set explicitly, it'll remain the default set in xpcshell/user.js: https://%(server)s/selfsupport-dummy/. As you can see, this one has a % sign in it; and the test will fail.
Otherwise, the error we catch is not a NormandyApi.InvalidSignatureError, but NS_ERROR_MALFORMED_URI.

Differential Revision: https://phabricator.services.mozilla.com/D16695

--HG--
extra : moz-landing-system : lando
2019-01-21 09:55:02 +00:00
Wes Kocher
7ffc8384e7 Bug 1485386 - Move feature-enabling preferences out of unittest/user.js into a separate file r=ahal
The unittest/user.js file contained a mix of preferences that ensure tests can run (switching web services to dummy servers to prevent hitting networks, etc) and preferences that enable features that aren't shipping by default (turning on touch events, enabling experimental css features, etc).

In the future, we're going to want to run tests of only the features that are being shipped in release builds (or in beta builds, or in esr builds, etc), so we need to move feature-enabling preferences into a different file to make it possible to run tests with various sets of features enabled.

This commit just moves feature-enabling prefs into a new file and then includes that file everywhere unittest prefs were already being included, so it should have no functional difference in the set of preferences being set in test runs. It also renames  the unittest profile to clarify its purpose, and adds pointers to each profile from the other, and adds comments explaining what they're used for.

Differential Revision: https://phabricator.services.mozilla.com/D16123

--HG--
rename : testing/profiles/unittest/extensions/README.txt => testing/profiles/unittest-features/extensions/README.txt
rename : testing/profiles/unittest/extensions/README.txt => testing/profiles/unittest-required/extensions/README.txt
rename : testing/profiles/unittest/user.js => testing/profiles/unittest-required/user.js
extra : moz-landing-system : lando
2019-01-18 00:35:43 +00:00
Rob Wood
3226dda355 Bug 1518479 - Add Firefox FirstContentfulPaint measurement to raptor tests (on behalf of :jesup); r=davehunt
Differential Revision: https://phabricator.services.mozilla.com/D16599

--HG--
extra : moz-landing-system : lando
2019-01-17 20:00:07 +00:00
Cosmin Sabou
a37bc9edf9 Backed out changeset b9ab3e3e109a (bug 1485386) for causing mass mochitest failures. CLOSED TREE
--HG--
rename : testing/profiles/unittest-stability/extensions/README.txt => testing/profiles/unittest/extensions/README.txt
rename : testing/profiles/unittest-stability/user.js => testing/profiles/unittest/user.js
2019-01-17 00:55:23 +02:00
Wes Kocher
297d396732 Bug 1485386 - Move feature-enabling preferences out of unittest/user.js into a separate file r=ahal
The unittest/user.js file contained a mix of preferences that ensure tests can run (switching web services to dummy servers to prevent hitting networks, etc) and preferences that enable features that aren't shipping by default (turning on touch events, enabling experimental css features, etc).

In the future, we're going to want to run tests of only the features that are being shipped in release builds (or in beta builds, or in esr builds, etc), so we need to move feature-enabling preferences into a different file to make it possible to run tests with various sets of features enabled.

This commit just moves feature-enabling prefs into a new file and then includes that file everywhere unittest prefs were already being included, so it should have no functional difference in the set of preferences being set in test runs.

Differential Revision: https://phabricator.services.mozilla.com/D16123

--HG--
rename : testing/profiles/unittest/extensions/README.txt => testing/profiles/unittest-features/extensions/README.txt
rename : testing/profiles/unittest/extensions/README.txt => testing/profiles/unittest-stability/extensions/README.txt
rename : testing/profiles/unittest/user.js => testing/profiles/unittest-stability/user.js
extra : moz-landing-system : lando
2019-01-16 22:15:18 +00:00
Mike Conley
7a22f565dc Bug 1503003 - Disable the process priority manager when running xpcshell tests. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D16604

--HG--
extra : moz-landing-system : lando
2019-01-16 13:20:00 +00:00
Jan Henning
f6055526b4 Bug 1498812 - Part 7: Generally enable Visual Viewport for Mochitests. r=botond
Easier than separately enabling it for each test in turn, and shouldn't have any
bad side effects on tests that don't care about it, as this only exposes the new
Window.visualViewport object, but doesn't change anything else.

Differential Revision: https://phabricator.services.mozilla.com/D15688

--HG--
extra : moz-landing-system : lando
2019-01-11 19:49:41 +00:00
James Graham
05a1d0ad3a Bug 1510254 - Remove custom FirefoxRunner subclass, r=gbrown,KWierso
This was only being used to set prefs and most prefs are either
already set in
testing/profiles/[common|unittest|web-platform-tests].js or can be set
there so they apply to desktop too.

Differential Revision: https://phabricator.services.mozilla.com/D13088

--HG--
extra : moz-landing-system : lando
2018-11-30 15:31:46 +00:00
Robert Strong
ce780910f7 Bug 1506917 - Don't attempt to check for updates from Firefox's nsBrowserGlue.js when running tests. r=ted
This adds the app.update.checkInstallTime pref with a value of false in all tests that have the app.update.disabledForTesting pref except for geckodriver which is covered by bug 1508283.
2018-11-19 07:33:33 -08:00
Andrea Marchesini
c0950f9d8a Bug 1480544 - Allow Console API to log messages on stdout, r=bgrins
This patch introduces 2 new prefs:
- devtools.console.stdout.chrome: if true, console API writes on stdout when
                                  used by chrome code
- devtools.console.stdout.content: console API write on stdout when used by
                                   content code.
2018-11-15 21:47:58 +01:00
arthur.iakab
c0b26c4076 Merge inbound to mozilla-central a=merge 2018-11-15 11:54:15 +02:00
Timothy Guan-tin Chien
af2973ef61 Bug 1503019 - Part II, Remove dom.webcomponents.customelements.enabled pref r=smaug
This patch removes the following functions:

* nsContentUtils::IsCustomElementsEnabled()
* CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
* CustomElementRegistry::IsCustomElementEnabled(nsIDocument* aDoc)

and all references of the pref.

Depends on D11183

Differential Revision: https://phabricator.services.mozilla.com/D11249

--HG--
extra : moz-landing-system : lando
2018-11-15 06:52:01 +00:00
Timothy Guan-tin Chien
2b5881e46b Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug
This patch removes the dom.webcomponents.shadowdom.enabled pref and all its
references, including the following functions:

* nsContentUtils::IsShadowDOMEnabled()
* nsIDocument::IsShadowDOMEnabled()
* nsDocument::IsShadowDOMEnabled(JSContext* aCx, JSObject* aGlobal)
* nsDocument::IsShadowDOMEnabled(const nsINode* aNode)
* nsTextNode::IsShadowDOMEnabled(JSContext* aCx, JSObject* aObject)

This function is renamed and updated to nsDocument::IsCallerChromeOrAddon():

* nsDocument::IsShadowDOMEnabledAndCallerIsChromeOrAddon(JSContext* aCx, JSObject* aObject)

I didn't change the tests that load Shadow DOM tests in an iframe, in the interest of keeping hg annotation history.

Differential Revision: https://phabricator.services.mozilla.com/D11183

--HG--
extra : moz-landing-system : lando
2018-11-15 06:51:07 +00:00
Andreea Pavel
d51566f085 Backed out 2 changesets (bug 1503019) for failing crashtests at dom/base/crashtests/1505811.html on a CLOSED TREE
Backed out changeset 06b12fd41ff1 (bug 1503019)
Backed out changeset 7b845eac9dd7 (bug 1503019)
2018-11-15 01:52:30 +02:00
Timothy Guan-tin Chien
c69315234b Bug 1503019 - Part II, Remove dom.webcomponents.customelements.enabled pref r=smaug
This patch removes the following functions:

* nsContentUtils::IsCustomElementsEnabled()
* CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
* CustomElementRegistry::IsCustomElementEnabled(nsIDocument* aDoc)

and all references of the pref.

Depends on D11183

Differential Revision: https://phabricator.services.mozilla.com/D11249

--HG--
extra : moz-landing-system : lando
2018-11-14 19:37:42 +00:00
Timothy Guan-tin Chien
c0cc4f74e7 Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug
This patch removes the dom.webcomponents.shadowdom.enabled pref and all its
references, including the following functions:

* nsContentUtils::IsShadowDOMEnabled()
* nsIDocument::IsShadowDOMEnabled()
* nsDocument::IsShadowDOMEnabled(JSContext* aCx, JSObject* aGlobal)
* nsDocument::IsShadowDOMEnabled(const nsINode* aNode)
* nsTextNode::IsShadowDOMEnabled(JSContext* aCx, JSObject* aObject)

This function is renamed and updated to nsDocument::IsCallerChromeOrAddon():

* nsDocument::IsShadowDOMEnabledAndCallerIsChromeOrAddon(JSContext* aCx, JSObject* aObject)

I didn't change the tests that load Shadow DOM tests in an iframe, in the interest of keeping hg annotation history.

Differential Revision: https://phabricator.services.mozilla.com/D11183

--HG--
extra : moz-landing-system : lando
2018-11-14 19:34:52 +00:00
shindli
1e51b7ee7c Merge inbound to mozilla-central. a=merge 2018-11-10 23:36:30 +02:00
Ed Lee
d94c11cf32 Bug 1506367 - Tests fail for network attempt to snippets.cdn.mozilla.net on Nightly builds r=r1cky
Differential Revision: https://phabricator.services.mozilla.com/D11561

--HG--
extra : moz-landing-system : lando
2018-11-10 18:23:05 +00:00