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

5154 Коммитов

Автор SHA1 Сообщение Дата
jayati 7b5b3c8ae8 Bug 1557551 - Disqualify invalid items in the bookmarks mirror from deduping. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D69684

--HG--
extra : moz-landing-system : lando
2020-04-09 20:44:23 +00:00
Lina Cambridge f9abd62b34 Bug 1596322 - Add XPCOM bindings for Rust Sync engines. r=markh,tcsc,LougeniaBailey
This commit adds a new crate for bridging Rust Sync engines to Desktop,
and a `mozIBridgedSyncEngine` for accessing the bridge via JS.
Naturally, the bridge is called Golden Gate. 😊 For more information
on how to use it, please see `golden_gate/src/lib.rs`.

Other changes include:

* Ensuring the test Sync server uses UTF-8 for requests and responses.
* Renaming `mozISyncedBookmarksMirrorLogger` to `mozIServicesLogger`,
  and moving it into the shared Sync interfaces.

The `BridgedEngine` trait lives in its own crate, called
`golden_gate_traits`, to make it easier to eventually move into a-s.
`Interruptee` and `Interrupted` already exist in a-s, and are
duplicated in this crate for now.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 15:45:37 +00:00
Bogdan Tara 5dcf5dcc85 Backed out changeset d8ef791a2165 (bug 1596322) for browser_all_files_referenced.js failures CLOSED TREE 2020-04-09 13:17:04 +03:00
Lina Cambridge fcb1f70a45 Bug 1596322 - Add XPCOM bindings for Rust Sync engines. r=markh,tcsc,LougeniaBailey
This commit adds a new crate for bridging Rust Sync engines to Desktop,
and a `mozIBridgedSyncEngine` for accessing the bridge via JS.
Naturally, the bridge is called Golden Gate. 😊 For more information
on how to use it, please see `golden_gate/src/lib.rs`.

Other changes include:

* Ensuring the test Sync server uses UTF-8 for requests and responses.
* Renaming `mozISyncedBookmarksMirrorLogger` to `mozIServicesLogger`,
  and moving it into the shared Sync interfaces.

The `BridgedEngine` trait lives in its own crate, called
`golden_gate_traits`, to make it easier to eventually move into a-s.
`Interruptee` and `Interrupted` already exist in a-s, and are
duplicated in this crate for now.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 07:32:52 +00:00
Brindusan Cristian bb29753b0d Backed out changeset 2b02e71f1780 (bug 1596322) for multiple xpcshell failures. CLOSED TREE 2020-04-09 03:39:56 +03:00
Lina Cambridge 186b7665c4 Bug 1596322 - Add XPCOM bindings for Rust Sync engines. r=markh,tcsc,LougeniaBailey
This commit adds a new crate for bridging Rust Sync engines to Desktop,
and a `mozIBridgedSyncEngine` for accessing the bridge via JS.
Naturally, the bridge is called Golden Gate. 😊 For more information
on how to use it, please see `golden_gate/src/lib.rs`.

Other changes include:

* Ensuring the test Sync server uses UTF-8 for requests and responses.
* Renaming `mozISyncedBookmarksMirrorLogger` to `mozIServicesLogger`,
  and moving it into the shared Sync interfaces.

The `BridgedEngine` trait lives in its own crate, called
`golden_gate_traits`, to make it easier to eventually move into a-s.
`Interruptee` and `Interrupted` already exist in a-s, and are
duplicated in this crate for now.

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

--HG--
extra : moz-landing-system : lando
2020-04-08 20:18:37 +00:00
Emilio Cobos Álvarez 96fed90622 Bug 1627644 - Handle null loading principal in page-icon protocol handler. r=mak
This restores previous behavior. Will file a bug for the debug-build crash and
so on.

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

--HG--
extra : moz-landing-system : lando
2020-04-06 19:32:04 +00:00
Emilio Cobos Álvarez 4b9fdf3d73 Bug 1627707 - Rename LoadInfo::LoadingPrincipal to GetLoadingPrincipal as it can return null. r=ckerschb
Mostly a matter of:

  rg -l '\->LoadingPrincipal' | xargs sed -i 's/->LoadingPrincipal/->GetLoadingPrincipal/g'

And then clang-format. But I tweaked manually nsHttpChannelAuthProvider (move
the variable where it's used, don't take a useless strong ref),
AddonContentPolicy (move the declaration of the variable to the if condition),
and BackgroundUtils (same).

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

--HG--
extra : moz-landing-system : lando
2020-04-06 18:57:36 +00:00
Cosmin Sabou d557e2ed22 Backed out 3 changesets (bug 1627707) for build bustages @ mozilla::net::LoadInfo.
Backed out changeset 65d6a90651ce (bug 1627707)
Backed out changeset 378ec30d9979 (bug 1627707)
Backed out changeset 058a19e11b06 (bug 1627707)
2020-04-06 20:07:04 +03:00
Emilio Cobos Álvarez 97872f2fee Bug 1627707 - Rename LoadInfo::LoadingPrincipal to GetLoadingPrincipal as it can return null. r=ckerschb
Mostly a matter of:

  rg -l '\->LoadingPrincipal' | xargs sed -i 's/->LoadingPrincipal/->GetLoadingPrincipal/g'

And then clang-format. But I tweaked manually nsHttpChannelAuthProvider (move
the variable where it's used, don't take a useless strong ref),
AddonContentPolicy (move the declaration of the variable to the if condition),
and BackgroundUtils (same).

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

--HG--
extra : moz-landing-system : lando
2020-04-06 16:00:43 +00:00
sonakshi a6f08454e0 Bug 1622619 - Replace URIParams with nsIURI in PContent.ipdl r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D67729

--HG--
extra : moz-landing-system : lando
2020-03-31 18:47:30 +00:00
Razvan Maries 40412d7928 Backed out changeset 2515c5b5a0d2 (bug 1622619) for build bustages. CLOSED TREE 2020-03-31 17:18:38 +03:00
sonakshi fc4a38cd03 Bug 1622619 - Replace URIParams with nsIURI in PContent.ipdl r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D67729

--HG--
extra : moz-landing-system : lando
2020-03-31 13:38:55 +00:00
MahakBansal b51565663a Bug 1622600 - Replace URIParams with nsIURI in PBrowser.ipdl.r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D66888

--HG--
extra : moz-landing-system : lando
2020-03-29 13:56:16 +00:00
Harry Twyford 421b78d117 Bug 1624704 - Part 2 - Remove references to previousResult in UnifiedComplete. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D68099

--HG--
extra : moz-landing-system : lando
2020-03-25 22:40:11 +00:00
Harry Twyford b5ec718191 Bug 1624704 - Part 1 - Remove UrlbarUtils.INSERTMETHOD. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D68098

--HG--
extra : moz-landing-system : lando
2020-03-25 17:09:59 +00:00
Harry Twyford cdcff8e030 Bug 1046074 - Improve post-filtering of dupes in UnifiedComplete. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D66674

--HG--
extra : moz-landing-system : lando
2020-03-23 19:18:41 +00:00
Razvan Maries ec49a68223 Backed out changeset 604ae25cad30 (bug 1046074) for Lint failure on test_swap_protocol.js. CLOSED TREE 2020-03-23 21:09:35 +02:00
Harry Twyford 7390b3dca3 Bug 1046074 - Improve post-filtering of dupes in UnifiedComplete. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D66674

--HG--
extra : moz-landing-system : lando
2020-03-23 18:50:47 +00:00
Masatoshi Kimura 3df19bc1d4 Bug 1623222 - Remove the charset parameter from nsITextToSubURI::UnEscapeURIForUI. r=hsivonen
Only 3 callers are using a non-UTF-8 charset as the first parameter.
* MediaDocument.cpp: This does not make sense because the "filename" part of
  URLs will always be encoded with UTF-8.
* nsContextMenu.js: This is wrong because "mailto:" URLs don't care about the
  document charset.
* Finder.jsm: This caused bug 1623222.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 10:45:28 +00:00
Harry Twyford 11166adcce Bug 1620131 - Generalize search suggestion restrictions. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D66982

--HG--
extra : moz-landing-system : lando
2020-03-17 12:49:33 +00:00
Chris Fronk d5b004443b Bug 1143478 - Rename mozilla::Pair to CompactPair. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D64511

--HG--
rename : mfbt/Pair.h => mfbt/CompactPair.h
extra : moz-landing-system : lando
2020-03-17 12:42:12 +00:00
Ed Lee acb960676c Bug 1620556 - Automatic code fixes for Prettier 1.19.1 upgrade. r=Standard8,remote-protocol-reviewers,marionette-reviewers,webcompat-reviewers,perftest-reviewers,sparky,whimboo,denschub
Differential Revision: https://phabricator.services.mozilla.com/D66128

--HG--
extra : moz-landing-system : lando
2020-03-13 23:38:52 +00:00
Harry Twyford 5c459c151b Bug 1617333 - Show appropriately-sized favicons in the Urlbar for Top Sites with history visits. r=mak,Mardak
Differential Revision: https://phabricator.services.mozilla.com/D64653

--HG--
extra : moz-landing-system : lando
2020-03-12 13:31:19 +00:00
shindli b02b3a6e1a Backed out changeset a08637fb30c8 (bug 1143478) for causing bustages in /builds/worker/checkouts/gecko/ipc/mscom/Registration.cpp CLOSED TREE
--HG--
rename : mfbt/CompactPair.h => mfbt/Pair.h
2020-03-11 14:30:54 +02:00
Chris Fronk a27e438c2d Bug 1143478 - Rename mozilla::Pair to CompactPair. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D64511

--HG--
rename : mfbt/Pair.h => mfbt/CompactPair.h
extra : moz-landing-system : lando
2020-03-11 12:18:13 +00:00
Daniel Varga 7ef794c3b8 Backed out changeset 52947d2e8692 (bug 1617333) for causing xpcshell failures at gre/modules/NewTabUtils.jsm
CLOSED TREE
2020-03-10 23:04:49 +02:00
Harry Twyford 4601f6b5bc Bug 1617333 - Show appropriately-sized favicons in the Urlbar for Top Sites with history visits. r=mak,Mardak
Differential Revision: https://phabricator.services.mozilla.com/D64653

--HG--
extra : moz-landing-system : lando
2020-03-10 14:17:16 +00:00
Simon Giesecke 8ad76c7e47 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in toolkit. r=mossop
Depends on D66008

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

--HG--
extra : moz-landing-system : lando
2020-03-10 08:48:24 +00:00
Brindusan Cristian d48e9e3ed5 Backed out 2 changesets (bug 1617333) for xpcshell failures at test_NewTabUtils.js. CLOSED TREE
Backed out changeset 63dc7cf61aab (bug 1617333)
Backed out changeset b8cdd28b8b7d (bug 1617333)
2020-03-09 21:05:02 +02:00
Harry Twyford a72eff55f9 Bug 1617333 - Show appropriately-sized favicons in the Urlbar for Top Sites with history visits. r=mak,Mardak
Differential Revision: https://phabricator.services.mozilla.com/D64653

--HG--
extra : moz-landing-system : lando
2020-03-09 17:36:55 +00:00
Mark Banner 2c4e35b0a6 Bug 1620218 - Automatic code fixes for Prettier 1.18.2 upgrade. r=mossop,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D65509

--HG--
extra : moz-landing-system : lando
2020-03-08 21:45:16 +00:00
Mark Banner 15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Marco Bonardo 7f9b896113 Bug 1592976 - Expire some favicons more aggressively. r=Standard8
Expire favicons older than 6 months when:
 * they are for permanently redirecting urls, that are unlikely to receive
   updated favicons
 * they are for urls with refs (often mail, docs) that have a fallback root
   favicon for their origin

Expiration happens in chunks, mostly on idle-daily.

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

--HG--
extra : moz-landing-system : lando
2020-03-06 15:39:39 +00:00
Cosmin Sabou 9ec8941cd4 Backed out 2 changesets (bug 1603703) for xpc failures on test_storage_aggregates.js. CLOSED TREE
Backed out changeset 05dbbf7c379f (bug 1603703)
Backed out changeset a1e723439116 (bug 1603703)

--HG--
extra : rebase_source : 65d834f15b63fdd0ce5c90d2efd080e4841777aa
2020-03-05 19:37:32 +02:00
Simon Giesecke 9e296ae57f Bug 1603703 - Part 2: Rename CreateFunction/RemoveFunction to RegisterFunction/UnregisterFunction. r=mak
Depends on D57089

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

--HG--
extra : moz-landing-system : lando
2020-03-05 15:14:56 +00:00
Simon Giesecke e6cae211c4 Bug 1603703 - Part 1: Change mozIStorageAsyncConnection::CreateFunction to accept a nsCOMPtr rather than a raw pointer. r=asuth,mak
Differential Revision: https://phabricator.services.mozilla.com/D57089

--HG--
extra : moz-landing-system : lando
2020-03-05 16:51:14 +00:00
Marco Bonardo a8354f1215 Bug 555694 - Address bar should not suggest switching to the current tab. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D65408

--HG--
extra : moz-landing-system : lando
2020-03-05 09:12:44 +00:00
Lina Cambridge bcd8f1f81a Bug 1613835 - Don't try to merge synced bookmarks if a transaction is already open. r=markh
Occasionally, we might try to apply synced bookmarks when a transaction
is already in progress. Consider something like this:

1. The user clicks the star button, which adds a bookmark to the
   default folder. Under the hood, this runs a transaction to
   completion—`BEGIN`, some `INSERT`s and `UPDATE`s, then `COMMIT`.
2. The `item-added` observer notification kicks off a sync.
3. The user, with the star UI still open, picks a new folder for the
   bookmark. This moves the bookmark under the hood.
4. To move the bookmark, we run `BEGIN` on the Places connection's
   async thread. Remember, `Sqlite.jsm` runs async statements one at a
   time.
5. Concurrently, the merge runnable is scheduled on the async thread.
   It's not aware of the `Sqlite.jsm` transaction queue, and doesn't
   know that a transaction for the move is already open.
6. The merger tries to open its own transaction with `BEGIN`, fails
   noisly, and returns a "cannot start a transaction within a
   transaction" error back to the main thread.
7. The move transaction started in (4) runs to completion, updating
   the new bookmark's parent and committing the changes.

This is a case of bad timing—retrying the sync once the user finishes
making changes will work—but reports errors in telemetry and logs.
This commit downgrades those to warnings.

Depends on D63732

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

--HG--
extra : moz-landing-system : lando
2020-03-03 22:58:07 +00:00
shindli db1eff80fd Backed out 2 changesets (bug 1613835) for causing very frequent xpcshell failures in netwerk/test/unit/test_cookies_async_failure.js CLOSED TREE
Backed out changeset 4d2e14adc96b (bug 1613835)
Backed out changeset 61fb3c36ea92 (bug 1613835)
2020-03-03 20:44:17 +02:00
Lina Cambridge 8b6d727347 Bug 1613835 - Don't try to merge synced bookmarks if a transaction is already open. r=markh
Occasionally, we might try to apply synced bookmarks when a transaction
is already in progress. Consider something like this:

1. The user clicks the star button, which adds a bookmark to the
   default folder. Under the hood, this runs a transaction to
   completion—`BEGIN`, some `INSERT`s and `UPDATE`s, then `COMMIT`.
2. The `item-added` observer notification kicks off a sync.
3. The user, with the star UI still open, picks a new folder for the
   bookmark. This moves the bookmark under the hood.
4. To move the bookmark, we run `BEGIN` on the Places connection's
   async thread. Remember, `Sqlite.jsm` runs async statements one at a
   time.
5. Concurrently, the merge runnable is scheduled on the async thread.
   It's not aware of the `Sqlite.jsm` transaction queue, and doesn't
   know that a transaction for the move is already open.
6. The merger tries to open its own transaction with `BEGIN`, fails
   noisly, and returns a "cannot start a transaction within a
   transaction" error back to the main thread.
7. The move transaction started in (4) runs to completion, updating
   the new bookmark's parent and committing the changes.

This is a case of bad timing—retrying the sync once the user finishes
making changes will work—but reports errors in telemetry and logs.
This commit downgrades those to warnings.

Depends on D63732

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

--HG--
extra : moz-landing-system : lando
2020-03-03 15:24:42 +00:00
Andrew Osmond 127fcd7b52 Bug 1255105 - Use SurfacePipe in the BMP decoder. r=tnikkel
This patch converts the BMP decoder to use SurfacePipe instead of using
AllocateFrame and Downscaler directly. As a result, it now uses the
accelerated premultiplication path, honours the
SurfaceFlags::NO_PREMULTIPLY_ALPHA flag, and allows for a path forward
to support color management and clipboard better.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 23:24:12 +00:00
Lina Cambridge be55ac8482 Bug 1615931 - Handle invalid bookmark URLs in new bookmark sync. r=markh,LougeniaBailey
This commit changes `Store::local_row_to_item` to validate local URLs,
and flags items with malformed URLs as invalid. These items are either
replaced with valid remote copies, if they exist, or deleted if not.
Additionally, `BaseBookmarksStore#_calculateIndex` no longer throws
when determining the sort index for an item with an invalid URL.

As an aside, we use the `url` crate to parse URLs. This is the same
crate as used by `MozURL`, which, in turn, backs the JS `URL`
constructor...so URLs should be validated the same way in Rust and JS.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 02:11:13 +00:00
Kris Maglione c31aa68fb4 Bug 1535617: Part 2 - Clear weak references for most cycle collected objects on unlink. r=mccr8
This covers most cycle collected objects which support weak references, but
not the ones which inherit from a cycle collected class and don't do any cycle
collection on their own.

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

--HG--
extra : moz-landing-system : lando
2020-02-25 19:44:39 +00:00
Eric Rahm b224a7461c Bug 1617334 - Remove nsAutoPtr usage from toolkit. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D63746

--HG--
extra : moz-landing-system : lando
2020-02-22 14:50:52 +00:00
Mark Hammond abd34a6793 Bug 1605881 - have Sync not send batch notifications to places to avoid spurious bookmark moves. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D62668

--HG--
extra : moz-landing-system : lando
2020-02-17 15:35:13 +00:00
Lina Cambridge 4849d3b883 Bug 1607341 - Ensure the bookmarks mirror passes millisecond timestamps for `bookmark-added`. r=LougeniaBailey
The legacy `nsINavBookmarkObserver` notifications use microsecond
timestamps that are rounded to the nearest millisecond, while the
new `bookmark-added` Places event uses milliseconds directly. This
commit fixes that, and also changes the store to use the given
`localTimeSeconds` as the current time, instead of querying the
current system time. This, in turn, lets tests set deterministic
last modified times, which is useful for comparing `lastModified`
timestamps.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 20:04:56 +00:00
Emilio Cobos Álvarez b3fb41e3d3 Bug 1613524 - Rewrite PageIconProtocolHandler in C++ rather than Javascript. r=mak
I wanted to see how hard would it be, and the answer seems "not too much".

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

--HG--
extra : moz-landing-system : lando
2020-02-14 15:39:01 +00:00
Coroiu Cristina f5c5103075 Backed out changeset cb57df7ef0c2 (bug 1607341) for build bustage on a CLOSED TREE 2020-02-13 21:25:43 +02:00
Lina Cambridge cd37e1646e Bug 1607341 - Ensure the bookmarks mirror passes millisecond timestamps for `bookmark-added`. r=LougeniaBailey
The legacy `nsINavBookmarkObserver` notifications use microsecond
timestamps that are rounded to the nearest millisecond, while the
new `bookmark-added` Places event uses milliseconds directly. This
commit fixes that, and also changes the store to use the given
`localTimeSeconds` as the current time, instead of querying the
current system time. This, in turn, lets tests set deterministic
last modified times, which is useful for comparing `lastModified`
timestamps.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 18:54:23 +00:00