659403 Commits

Author SHA1 Message Date
André Bargull
ae3180c00d Bug 1473229 - Part 3: Add support for "formatToParts" to Intl.RelativeTimeFormat. r=jwalden
- The new formatted-value API is still draft-only, so extra U_HIDE_DRAFT_API guards
  are currently needed.
- Also moves steps 4-5 of PartitionRelativeTimePattern to native code to reduce code
  duplication.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 10:04:45 +00:00
André Bargull
014810afe4 Bug 1473229 - Part 2: Make it possible to reuse the number-formatter parts generator code. r=jwalden
Add js::intl::NumberFormatFields containing the two methods:
- `append`: To append a number format field
- `toArray`: To construct the result Array object

The `unitType` argument for NumberFormatFields::toArray will be used in part 3.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 10:04:20 +00:00
André Bargull
2268647965 Bug 1473229 - Part 1: Bump minimum required ICU version to 64.1. r=jwalden
- Part 3 uses functions added in ICU 64, so we need to bump the version requirement.
- Also remove a version check which is now true be default.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 10:04:06 +00:00
Gijs Kruitbosch
ac69ec3d6a Bug 1559195 - clean up PdfJs enabled checking code, r=bdahl
Differential Revision: https://phabricator.services.mozilla.com/D36771

--HG--
extra : moz-landing-system : lando
2019-07-09 11:34:19 +00:00
Florens Verschelde
e1899f230d Bug 1564267 - Fix console line-height for large text; r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D37367

--HG--
extra : moz-landing-system : lando
2019-07-09 11:16:34 +00:00
Alexandre Poirot
9c99764b14 Bug 1563685 - Rename WebSocketDebuggerTransport class to match its JSM file name. r=remote-protocol-reviewers,jdescottes,ato
Differential Revision: https://phabricator.services.mozilla.com/D37040

--HG--
extra : moz-landing-system : lando
2019-07-09 09:36:16 +00:00
Alexandre Poirot
6713234855 Bug 1563685 - Rename WebSocket.jsm and drop unused accept method. r=remote-protocol-reviewers,jdescottes,ato
Differential Revision: https://phabricator.services.mozilla.com/D37039

--HG--
rename : remote/server/WebSocket.jsm => remote/server/WebSocketHandshake.jsm
extra : moz-landing-system : lando
2019-07-09 09:36:14 +00:00
Mihai Alexandru Michis
b6ef132da1 Backed out changeset 04d628f57730 (bug 1562145) for bc failures in browser_bug1261299.js 2019-07-09 13:56:29 +03:00
Csoregi Natalia
d574162f0d Backed out changeset fb76e4e1d9e0 (bug 1563996) for crashes on consoleservice.logcat. CLOSED TREE 2019-07-09 13:26:14 +03:00
Sylvestre Ledru
d013672392 Bug 1562645 - Extend mozlint to have license check r=ahal
The goal is to have something simple and not relying on other tools.
I tried with licensecheck and licensee but, with if we use a different
wording to declare "public domain" (as example), they might not
catch it. Requiring to contribute upstream, etc

Instead, I just create a list of line of license to catch it.
From my trials, it works well enough and it is trivial python.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 10:07:37 +00:00
Gurzau Raul
1e8901d20d Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-07-09 12:57:07 +03:00
Gurzau Raul
40ef220809 Merge inbound to mozilla-central. a=merge 2019-07-09 12:53:21 +03:00
Nicholas Nethercote
039d3b78bd Bug 1563996 - Make dom.ipc.useNativeEventProcessing.content. r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D37205

--HG--
extra : moz-landing-system : lando
2019-07-09 08:00:51 +00:00
Nicholas Nethercote
4c427b464f Bug 1563996 - Make layout.show_previous_page a static pref. r=bzbarsky
This is a weird pref.

First, it is VarCached into two different global variables, one in
nsSubDocumentFrame.cpp, and the other in nsView.cpp.

Second, the pref is not defined by default. When the VarCache variables are
initialized they are therefore set to the default value provided to the
`AddBoolVarCache()` call, which in both cases is `true`. This semantics isn't
possible with `StaticPrefs`, so the patch defines the pref as true by default.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 07:59:55 +00:00
Nicholas Nethercote
508aad2c70 Bug 1563996 - Make consoleservice.logcat a static pref. r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D37203

--HG--
extra : moz-landing-system : lando
2019-07-09 07:59:41 +00:00
Nicholas Nethercote
2a0a298b36 Bug 1563996 - Make privacy.trackingprotection.{pbmode.,}enabled static prefs. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D37202

--HG--
extra : moz-landing-system : lando
2019-07-09 07:59:22 +00:00
Nicholas Nethercote
7c43c6f952 Bug 1563996 - Make browser.xul.error_pages.enabled a static pref. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D37201

--HG--
extra : moz-landing-system : lando
2019-07-09 07:59:03 +00:00
Nicholas Nethercote
544a779566 Bug 1563996 - Make three VarCache prefs in nsDefaultURIFixup.cpp into static prefs. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D37200

--HG--
extra : moz-landing-system : lando
2019-07-09 07:58:44 +00:00
Nicholas Nethercote
5ee5242716 Bug 1563996 - Make dom.ipc.cpows.log.{enabled,stack} static prefs. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D37199

--HG--
extra : moz-landing-system : lando
2019-07-09 07:58:24 +00:00
Nicholas Nethercote
bfcc467859 Bug 1563996 - Make dom.ipc.cpows.forbid-unsafe-from-browser a static pref. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D37198

--HG--
extra : moz-landing-system : lando
2019-07-09 07:58:02 +00:00
Kris Maglione
e879a812cc Bug 1563632: Fix font restyle races better. r=bustage,test-only
--HG--
extra : rebase_source : b2cace3ce67741869db6a891b9ec39213de60b2e
2019-07-08 22:02:31 -07:00
Narcis Beleuzu
aebbfd69ea Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-07-09 06:53:54 +03:00
Narcis Beleuzu
59c3fccd33 Merge inbound to mozilla-central. a=merge 2019-07-09 06:45:48 +03:00
Narcis Beleuzu
8478c8b076 Merge autoland to mozilla-central. a=merge 2019-07-09 06:43:17 +03:00
Jeff Gilbert
a8530d0dbd Bug 1535373 - IsContextLost() before early-out. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D37350

--HG--
extra : moz-landing-system : lando
2019-07-09 02:36:52 +00:00
Narcis Beleuzu
4b16f12a07 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-07-09 06:51:10 +03:00
shindli
f5dea34efe Backed out 5 changesets (bug 1421938) for bustages in /builds/worker/workspace/build/src/layout/base/nsQuoteList.cpp CLOSED TREE
Backed out changeset 4e25a6db1f5b (bug 1421938)
Backed out changeset 11a8f9bc0418 (bug 1421938)
Backed out changeset f27980997dc5 (bug 1421938)
Backed out changeset adb2e2714c14 (bug 1421938)
Backed out changeset 33e38a62b400 (bug 1421938)
2019-07-09 02:52:38 +03:00
Nicholas Nethercote
abf15f999d Bug 1560530 - Split StaticPrefs_accessibility.h from StaticPrefs.h. r=froydnj
This implements the machinery for the splitting of static prefs headers, and
uses it for a single header. #includes are used in such a way that the amount
of boilerplate for each static prefs header file is minimal.

Future patches will split the remaining prefs into more header files.

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

--HG--
rename : modules/libpref/StaticPrefs.h => modules/libpref/StaticPrefsBase.h
rename : modules/libpref/StaticPrefs.h => modules/libpref/init/StaticPrefListBegin.h
extra : moz-landing-system : lando
2019-07-08 23:40:39 +00:00
Ehsan Akhgari
dd91eeb9c9 Bug 1564241 - Remove the contentblocking.exceptions scalar probe since it's expired. a=permafail-fix
Differential Revision: https://phabricator.services.mozilla.com//D37330

--HG--
extra : amend_source : 2640c821301ccbfe21e301c22dc4d51a5294ab97
2019-07-08 23:29:02 +02:00
Agi Sferro
68d3e0d0c1 Bug 1553515 - Always send navigation events for about:blank. r=snorp
Some background information on this change:

DocShell loads about:blank when first starting up. This initial load can be
avoided by setting `nodefaultsrc` on the browser element, but this will still
cause some load events related to `about:blank` to fire anyway, as they are
specified in the DOM spec (see e.g. bz's Comment #2 Bug 1447406). In particular
`onSecurityChange` and `onLocationChange` are still fired, `onPageStart` and
onPageStop` are not.

These messages are unreliable and sometimes do not fire, to unrestand why it's
helpful to look at a timeline of the events when starting up a GeckoSession.

page           about:blank ---------------------------------------------------------

nsDocShell     --- startup --- onPageStart --- onLocationChange --- onPageStop -----

busyState      idle ---------- busy ------------------------------------------ idle-
                ^           ^               ^                    ^               ^
geckoview.js   (0)         (1)             (2)                  (3)             (4)

geckoview.js loads in parallel with nsDocShell startup process (and loading of
about:blank). This means that consumers of GeckoView might start receiving
navigation events at any of the points marked with (0) - (4). E.g. if geckoview
starts up at (4) a consumer waiting for onPageStop for `about:blank` will
actually wait forever (this is what happens before this change for our tests).

As it can be seen there's not really a way to detect in which of the (0) - (4)
state DocShell is when starting up geckoview.js. Checking for the busy state is
not enough as an `idle` busy state might mean that we're in (0) or (4).
Furthermore a consumer of geckoview has no way to know which onPageStop
messages to wait for after an initial loadUri as e.g. the following is what
would happen if geckoview.js happens to startup at (3):

- loadUri(hello.html)
- onPageStop (for about:blank)
- onLoadRequest (for hello.html)

which confuses any code that just waits for onPageStop.

Desktop deals with this in `TabProgressListener.onStateChange` where the
initial `about:blank` navigation is ignored and fake events are triggered at a
convenient time.

To patch implements a very similar behavior for geckoview, we ignore the
initial `about:blank` `onLoadRequest` call, set `nodefaultsrc` so `onPageStart`
and `onPageStop` events don't fire and fire the above calls when the
`GeckoViewProgress` module has finished loading.

This makes `about:blank` events deterministic with the exception of reloading
an empty `GeckoSession`, which will often not fire any extra events. To account
for that we load a dummy html page before the tests that used to rely on this
behavior (which would actually fail occasionally due to the startup race
condition explained above).

This makes the tests pass reliably on x86_64 (20/20 runs passed in try).

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

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:32 +00:00
Agi Sferro
c33d97d67e Bug 1553515 - Re-enable geckoview-junit on x86_64. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D35949

--HG--
extra : moz-landing-system : lando
2019-07-09 00:13:28 +00:00
Agi Sferro
faad566428 Bug 1551278 - Make WebExtension listeners per-extension. r=snorp
Right now listeners for a given native app receive messages from all
WebExtensions. This is wrong as listeners should be extension specific so that
only the intended extension can send messages to the app.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:15 +00:00
Agi Sferro
32c65ee29f Bug 1553515 - Wait for link color in HistoryDelegateTest.getVisited. r=snorp
This helps making this test more reliable.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:29 +00:00
Agi Sferro
f7f8ee977b Bug 1553515 - Remove all remaining bits of RDP for tests. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32594

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:22 +00:00
Agi Sferro
53e4399d87 Bug 1553515 - Move getLinkColor to WebExtension. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32593

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:20 +00:00
Agi Sferro
0f3dc76ea8 Bug 1553515 - Use WebExtension to set prefs in tests. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32592

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:18 +00:00
Agi Sferro
47985d1c39 Bug 1553515 - Fix for ContentDelegateTest.autoFill_navigation. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32591

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:16 +00:00
Agi Sferro
9c675d278a Bug 1553515 - Add GeckoSessionTestRule.createFromParcel. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32590

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:14 +00:00
Agi Sferro
e022f20c31 Bug 1553515 - Use .equals instead of == for GeckoSession. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32589

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:07 +00:00
Agi Sferro
5364996b9f Bug 1553515 - Use WebExtension to run content javascript in tests. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32587

--HG--
extra : moz-landing-system : lando
2019-07-08 21:08:05 +00:00
Sebastian Hengst
71a5bf7e4f Bug 1553273 - Disable TelemetryGeckoViewFixture.PendingOperationsHighWater until decision about telemetry probe has been made. a=permafail 2019-07-08 23:05:03 +02:00
Agi Sferro
55537adc42 Bug 1553515 - Make sure runtime has started before running tests. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32584

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:44 +00:00
Agi Sferro
f23e6ab814 Bug 1553515 - Replace loopUntilIdle -> waitForCondition. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32583

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:42 +00:00
Agi Sferro
c54dc66a26 Bug 1553515 - Add GeckoResult.accept. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32582

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:35 +00:00
Agi Sferro
f3c69e1f87 Bug 1553515 - Add waitForCondition. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32581

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:33 +00:00
Agi Sferro
7371119f56 Bug 1553515 - Use lambads in GeckoResultTest for readability. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32580

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:31 +00:00
Agi Sferro
2948bcd9a2 Bug 1553515 - Add FOREGROUND_SERVICE for CrashTest. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32579

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:29 +00:00
Agi Sferro
346d13b264 Bug 1553515 - Never reuse session. r=snorp
Reusing sessions doesn't actually save that much time and avoids a lot of
hard-to-debug intermittents.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:27 +00:00
Agi Sferro
ba4c3abb36 Bug 1553515 - Use javascript to track scrolling instead of ScrollDelegate. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32577

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:25 +00:00
Agi Sferro
a9366e6af5 Bug 1553515 - Account for errors in PermissionDelegateTest.geolocation. r=snorp
Sometime the geolocation test fails because the position is not retrieved
quickly enough, this is OK as we're just trying to make sure that the
permission is correct.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 20:48:23 +00:00