Граф коммитов

62304 Коммитов

Автор SHA1 Сообщение Дата
Andrea Marchesini 20b519a0c9 Bug 1635050 - Implement a whitelist system for cookieBehavior REJECT_FOREIGN with exceptions - tests, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D73616
2020-05-05 09:45:48 +00:00
Andrea Marchesini e38a64e486 Bug 1635050 - Implement a whitelist system for cookieBehavior REJECT_FOREIGN with exceptions, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D73615
2020-05-04 20:38:45 +00:00
Mark Banner 9532ec42eb Bug 1626410 - Simplify the isAppProvided check for the modern search configuration. r=daleharvey
Since distribution search engines have all moved into mozilla-central, so we no longer need to check the loadPath, which potentially wasn't reliable anyway.

Addtionally, we don't need to check `extensions.installedDistroAddon` since these are built-in add-ons, and distributions don't install search engines separately.

Differential Revision: https://phabricator.services.mozilla.com/D72743
2020-05-05 09:29:02 +00:00
Lina Cambridge 8caa2f7986 Bug 1634191 - Wire up Golden Gate to the new Rust extension storage interface. r=markh
This commit adds syncing support to the `StorageSyncArea` class, via
the Golden Gate library.

It also changes the `BridgedEngine` trait: `initialize` and `finalize`
haven't been useful in practice, since that's managed by the storage
service, and the `LazyStore` takes care of setting up the storage
connection on first use. But, what we do need is a way to signal a
sync is starting, so that the engine can set up temp tables. That's
handled by the new `sync_started`.

Finally, this commit changes `BridgedEngine::set_uploaded` to take a
`sync15_traits::Guid` instead of a `String`.

Differential Revision: https://phabricator.services.mozilla.com/D73415
2020-05-05 06:59:32 +00:00
Stephen A Pohl ee3fa26401 Bug 1616404: Change macOS version detection to accommodate major versions between 10 and 255 as well as minor and bugfix versions between 0 and 255. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D73180
2020-05-04 21:11:09 +00:00
Lina Cambridge 4eafc7c1a6 Bug 1634191 - Pass BSO fields along with Sync record payloads to bridged Rust engines. r=markh
This commit splits `CryptoWrapper` into a base `RawCryptoWrapper`
class, which only handles encryption and decryption without
parsing the cleartext's contents, and the existing `CryptoWrapper`
class, which works like before.

Our bridged engine subclasses `RawCryptoWrapper`, and
implements some methods to convert records to and from envelopes.
Envelopes are a concept we introduced in `sync15_traits` to pass
along metadata from the BSO wrapper (like the modified time from the
server, and ID, to ensure they match) in addition to the cleartext.
This lets us reuse `sync15_traits::Payload` to parse record payloads
in Rust, and avoids parsing the cleartext in JS, only to stringify it
again when we pass it to the bridged Rust engine.

Differential Revision: https://phabricator.services.mozilla.com/D73581
2020-05-04 22:25:00 +00:00
Mike Hommey e062c7cbfd Bug 1632723 - Update builders to rustc 1.43. r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D72771
2020-04-29 21:21:36 +00:00
Lina Cambridge 7783b7bc0b Bug 1634626 - Add interrupt support for `StorageSyncArea`. r=markh,tcsc
This commit adds a `mozIInterruptible` implementation to
`StorageSyncArea`, and changes `LazyStore` to get an a-s interrupt
handle and interrupt pending operations.

Differential Revision: https://phabricator.services.mozilla.com/D73414
2020-05-04 21:32:52 +00:00
Lina Cambridge a9b590300f Bug 1634626 - Refactor interruption in Golden Gate. r=markh,tcsc
This commit removes the `nsICancelable` return values from all
`mozIBridgedSyncEngine` methods, and replaces them with a
`mozIInterruptible` interface that can be implemented by store
classes that support interrupting.

The `nsICancelable` pattern was intended to make each operation
interruptible, without affecting the others. But we can't guarantee
that with SQLite, because it only has a way to interrupt all
running statements on a connection, not specific ones. Further,
this pattern doesn't match what we currently do in a-s, where we
create an internal "interrupt scope" for each operation, and hand
out an "interrupt handle" for interrupting all in-progress
operations.

Storage classes like `StorageSyncArea` can opt in to interruption
by implementing `mozIInterruptible`. It's a separate interface to
protect against accidental misuse: because it interrupts all
statements on the connection, it might lose writes if the current
operation is a `set`, for example. But it's useful for testing and
debugging, so we still expose it.

This commit also changes Golden Gate ferries to hold weak references to
the `BridgedEngine`, so that they don't block teardown.

Differential Revision: https://phabricator.services.mozilla.com/D73413
2020-05-04 21:32:29 +00:00
Nicholas Nethercote 0c24037d04 Bug 1634987 - Fix broken about:memory tests. r=dragana
Three of the about:memory tests have failures when they are run locally. In all
three cases it is due to the tests expecting a socket process that isn't
present. On automation the tests succeed with or without the socket process
code.

Bug 1515390 introduced the socket process code. These tests now run as "1proc"
tests, which might explain why this socket process code is no longer necessary.

This commit removes the socket process code, which means the tests now succeed
when run locally. No change is seen on automation, where the tests still pass.

Differential Revision: https://phabricator.services.mozilla.com/D73582
2020-05-04 15:03:24 +00:00
Dorel Luca f78087a491 Backed out changeset 510109ce274e (bug 1626410) for browser-chrome failures in test/browser/browser_ContentSearch.js. CLOSED TREE 2020-05-05 00:06:49 +03:00
Dorel Luca 370459bbe6 Backed out 2 changesets (bug 1635050) for XPCshell failures in /xpcshell/test_rejectForeignAllowList.js . CLOSED TREE
Backed out changeset fff7bc5ac710 (bug 1635050)
Backed out changeset 451a90be5f40 (bug 1635050)
2020-05-04 23:35:26 +03:00
Mark Banner 2e563e1686 Bug 1626410 - Simplify the isAppProvided check for the modern search configuration. r=daleharvey
Since distribution search engines have all moved into mozilla-central, so we no longer need to check the loadPath, which potentially wasn't reliable anyway.

Addtionally, we don't need to check `extensions.installedDistroAddon` since these are built-in add-ons, and distributions don't install search engines separately.

Differential Revision: https://phabricator.services.mozilla.com/D72743
2020-05-04 18:46:08 +00:00
Andrea Marchesini 9f1bb7e35f Bug 1635050 - Implement a whitelist system for cookieBehavior REJECT_FOREIGN with exceptions - tests, r=dimi
Depends on D73615

Differential Revision: https://phabricator.services.mozilla.com/D73616
2020-05-04 18:22:57 +00:00
Andrea Marchesini 34e8cc235b Bug 1635050 - Implement a whitelist system for cookieBehavior REJECT_FOREIGN with exceptions, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D73615
2020-05-04 19:00:50 +00:00
Emilio Cobos Álvarez 761e9dfe4c Bug 1635094 - Cleanup the ReferrerInfo code. r=ckerschb
The cast in InitWithNode is wrong. AsElement() asserts instead of
checking the flag, so we always pass an element (and if we didn't we'd
have type confusion problems). I audited the callers and we're fine.

Anyhow, always require an element, and add two convenience constructors
for C++ code.

Differential Revision: https://phabricator.services.mozilla.com/D73636
2020-05-04 18:50:20 +00:00
Michael Cooper 8e29cbfa10 Bug 1630420 - Check last build from appinfo instead of tracking it manually in Normandy r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D72024
2020-05-04 18:27:40 +00:00
Jared Wein df7ae5880a Bug 1634844 - Add missing 'other' label to PDF_VIEWER_DOCUMENT_GENERATOR_2. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D73536
2020-05-04 18:24:42 +00:00
Jared Wein 4174134873 Bug 1634843 - Include the invalid label when printing to the console that an invalid Telemetry label was used. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D73535
2020-05-04 18:03:00 +00:00
Toshihito Kikuchi 370b0408dc Bug 1620118 - Part 2: Add isDependent field to the third-party-modules ping. r=chutten
This patch adds an optional boolean field `isDependent`
to the third-party-modules ping whose value is copied
from `ProcessedModuleLoadEvent::mIsDependent`.

Differential Revision: https://phabricator.services.mozilla.com/D67883
2020-05-04 17:21:14 +00:00
Toshihito Kikuchi 62788db1e7 Bug 1620118 - Part 1: Add ProcessedModuleLoadEvent::mIsDependent. r=aklotz
This patch adds a boolean field `mIsDependent` indicating whether a module was
loaded via the executable's Import Directory Table or not.

This patch also partially reverts Bug 1587539, moving a logic to detect Import
Directory tampering to `PEHeaders`'s ctor.  With this, we can skip generating
a map of the executable's dependent modules if no tampering is detected.

Differential Revision: https://phabricator.services.mozilla.com/D66274
2020-05-04 17:20:51 +00:00
Cosmin Sabou 71a40eae48 Backed out 2 changesets (bug 1635094) for build bustages on nsMacShellService.cpp. CLOSED TREE
Backed out changeset 0a2b0c6ea19a (bug 1635094)
Backed out changeset ead4f26f76ee (bug 1635094)
2020-05-04 20:04:06 +03:00
Jon Coppeard f76ace3dcd Bug 1634435 - Rename AutoValueArray to RootedValueArray everywhere for consistency with other rooted things r=jandem,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D73295
2020-05-04 16:50:59 +00:00
Emilio Cobos Álvarez 6dde680742 Bug 1635094 - Cleanup the ReferrerInfo code. r=ckerschb
The cast in InitWithNode is wrong. AsElement() asserts instead of
checking the flag, so we always pass an element (and if we didn't we'd
have type confusion problems). I audited the callers and we're fine.

Anyhow, always require an element, and add two convenience constructors
for C++ code.

Differential Revision: https://phabricator.services.mozilla.com/D73636
2020-05-04 16:26:51 +00:00
Liang-Heng Chen bed8da99c6 Bug 1634304 - Part 1: use storage principal in session store; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D73474
2020-05-04 04:18:45 +00:00
Mirko Brodesser b547d18451 Bug 1634663: part 5) Declare callers of `Selection::GetRangeAt` around toolkit/components/find `const`. r=masayuki
Depends on D73447

Differential Revision: https://phabricator.services.mozilla.com/D73448
2020-05-02 23:48:06 +00:00
Andreea Pavel 81629d9476 Backed out changeset fc265b3a728e (bug 1625696) for causing bug 1634877 and bug 1634916 2020-05-03 05:22:37 +03:00
Dão Gottwald 84553118c4 Bug 1634865 - Backed out bug 1625720 and bug 1625721. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D73542
2020-05-02 13:16:31 +00:00
Mark Banner 8904c372ca Bug 1634340 - Add logging to search service for when a background update is received and happens. r=daleharvey
Also move SearchEngineSelector to use console.createInstance as that's nicer.

Differential Revision: https://phabricator.services.mozilla.com/D73248
2020-05-02 11:30:48 +00:00
Mike Hommey 137394d5a2 Bug 1625696 - Update winchecksec and build/use it natively for Linux. r=dmajor
Now that upstream winchecksec builds and works natively on Linux, use
that. That should solve the random crashes under Wine. If random crashes
still happen, it will be easier to debug anyways.
We bump to the last version that doesn't use vcpkg because vcpkg makes
things more difficult.

Differential Revision: https://phabricator.services.mozilla.com/D73405
2020-05-02 06:19:25 +00:00
Matthew Noorenberghe d3465f470a Bug 1633351 - Revert doorhanger field clearing part of bug 1629174. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D73471
2020-05-01 20:59:18 +00:00
Nihanth Subramanya 7745d09edf Bug 1631822 - Implement multiple TRR selection dry-run. r=valentin,johannh
This patch uses TRRPerformance.jsm to get the fastest TRR and store it in a pref
before running DoH heuristics. The chosen TRR URI is sent in a telemetry event.

Differential Revision: https://phabricator.services.mozilla.com/D72790
2020-05-01 20:05:15 +00:00
Andrea Marchesini 66722b7b39 Bug 1629436 - requests with webExtension loading principal are not 3rd party - tests, r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D73028
2020-05-01 22:59:37 +00:00
Bogdan Tara f137fa0613 Backed out 6 changesets (bug 1632916, bug 1599658, bug 1633037, bug 1633039, bug 1633016, bug 1632920) for SA bustages CLOSED TREE
Backed out changeset 332ce0963b4e (bug 1633039)
Backed out changeset a9904cbc40d9 (bug 1633037)
Backed out changeset d06b0ec349f8 (bug 1599658)
Backed out changeset 8fd300cad80f (bug 1633016)
Backed out changeset f8820941c703 (bug 1632916)
Backed out changeset ac9c2c8746ed (bug 1632920)
2020-05-02 01:49:29 +03:00
Ciure Andrei 48a808ecf8 Backed out 3 changesets (bug 1602075) for causing dt failures CLOSED TREE
Backed out changeset 2df583e25890 (bug 1602075)
Backed out changeset fa77554062c7 (bug 1602075)
Backed out changeset 595a28396874 (bug 1602075)
2020-05-02 00:21:30 +03:00
Rob Wu f7f88112a2 Bug 1634671 - Add RS dump of addons-bloomfilters blocklist to Android r=agi
These support the new implementation of the addon blocklist (bug 1620621),
which is a more space-efficient way to represent the blocklist.

A comparison of file size was given in D73159. In short, 913KB for the
old JSON-based blocklist (addons.json), 64KB for the new one.

In practice, addons.json is 273KB compressed.

The new blocklist (addons-mlbf.bin) does not compress that well since it
is already an efficiently packed binary format.

Differential Revision: https://phabricator.services.mozilla.com/D73438
2020-05-01 19:36:43 +00:00
Ciure Andrei c7af299990 Backed out 2 changesets (bug 1629436) for causing test_chrome_ext_trackingprotection.html failures CLOSED TREE
Backed out changeset 18d21d5f63dd (bug 1629436)
Backed out changeset d14b4bb75db7 (bug 1629436)
2020-05-01 23:43:02 +03:00
Andrea Marchesini a22e6c201b Bug 1629436 - requests with webExtension loading principal are not 3rd party - tests, r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D73028
2020-05-01 17:29:41 +00:00
Yura Zenevich 9de5527ad8 Bug 1602075 - add an accessibility-panel-auto-init feature to control the panel auto enabling functionality. r=mythmon,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D71582
2020-05-01 19:03:56 +00:00
Rob Wu eb8be1efed Bug 1634700 - Always use latest generation_time in MLBF blocklist updates r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D73464
2020-05-01 17:58:20 +00:00
Rob Wu aa423d1002 Bug 1634700 - Treat signedDate as a Date instead of a number in the blocklist r=Gijs
Emphasize that `signedDate` is a `Date` instance instead of a number,
because this is the actual type of the addon wrappers exposed by the
AddonManager.

And replace check for signedState with signedDate, because the latter
captures my intent (the original implementation checked signedState
because signedDate used to unconditionally return a `Date` instance,
even for invalid dates, but that was changed in bug 1583844).

Differential Revision: https://phabricator.services.mozilla.com/D73463
2020-05-01 17:58:17 +00:00
Ricky Stewart 69685d8ab5 Bug 1633037 - Remove all remaining references to $(PYTHON) across Makefiles r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D72894
2020-05-01 16:19:21 +00:00
Ricky Stewart 0daacc12c3 Bug 1599658 - Delete previous definition of py_action in Makefiles. Now py_action calls into Python 3 and py3_action doesn't exist. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D72487
2020-04-30 15:27:13 +00:00
Ricky Stewart bb4e86d85a Bug 1633016 - Remove a bunch of references to PYTHON(2) in Makefiles r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D72479
2020-04-30 15:25:22 +00:00
Nan Jiang e4663bfda5 Bug 1471318 - Add reach ping for Messaging Experiments r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D72999
2020-05-01 11:53:41 +00:00
Emilio Cobos Álvarez 5ab0ed1477 Bug 1633828 - Check for empty text nodes in nsFind::PeekNextChar. r=jfkthame
This check was done in GetNextNonEmptyTextFragmentInSameBlock which I
removed in bug 1627643.

Hopefully the fuzzer finds an easy reduced test-case to land as a
crashtest, otherwise I can try to construct one.

Differential Revision: https://phabricator.services.mozilla.com/D72926
2020-05-01 14:26:25 +00:00
Emilio Cobos Álvarez f70c50d000 Bug 1634621 - Alternative approach: Make use of the member only for RDM. r=Gijs
That avoids having two sources of truth. This might be better, still
unsure how I feel about it compared to the current setup.

Differential Revision: https://phabricator.services.mozilla.com/D73427
2020-05-01 14:23:34 +00:00
Emilio Cobos Álvarez d8d80070e0 Bug 1634621 - Move _fullZoom initialization to resetFields() rather than the browser constructor. r=Gijs
Bug 1633938 re-introduced this field to handle full-zoom on RDM without
having to affect the actual content zoom, see related hacks that went
away in this push:

  9e6925ea79

But I added it to the browser element constructor, instead of to
resetFields(), which means that it's not properly reset when the
browsing context changes and thus it can get out of sync.

Move it to resetFields(), so that we properly detect that zoom has
changed. An alternative to this is to only use this._fullZoom when in
RDM instead.

This is where a similar field only used for remote browser used to live
before my Fission zoom changes:

https://searchfox.org/mozilla-central/rev/9642a113737b556750228965bb9cbd3aaa655e22/toolkit/content/widgets/browser-custom-element.js#346

Differential Revision: https://phabricator.services.mozilla.com/D73426
2020-05-01 14:23:34 +00:00
Travis Long 1ae754fb50 Bug 1632151 - Implement the labeled string metric type for Project FOG. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D73331
2020-05-01 12:42:26 +00:00
Brindusan Cristian a9f9ec7365 Bug 1623427 - disable test_ext_activityLog.html for frequent failures on linux. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D73420
2020-05-01 11:00:51 +00:00