694160 Commits

Author SHA1 Message Date
Kartikaya Gupta
d633586fcc Bug 1618545 - Delete obsolete/unused code relating to Fennec's experimental ui.zoomedview feature. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D65022

--HG--
extra : moz-landing-system : lando
2020-03-03 15:27:50 +00: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
Lina Cambridge
99282e0bd7 Bug 1613835 - Use a SQLite API call to check for in-progress transactions. r=mak
Previously, `mozIStorageConnection#transactionInProgress` returned true
only if a transaction was started via `beginTransaction()`. This meant
that manually executing `BEGIN`, as `Sqlite.jsm` and the Rust bindings
do, wouldn't accurately report if a transaction was in progress.
Similarly, the flag wasn't accurate in cases where SQLite automatically
rolled back a transaction.

Fortunately, SQLite provides the `sqlite3_get_autocommit()` function,
which we can use to determine if a transaction is open or not. This
commit refactors the `transactionInProgress` getter, along with all
`Connection` methods that depend on it, to use the SQLite API instead
of managing that state on the connection. `mozStorageTransaction` and
`Sqlite.jsm` still use their own flags to decide whether to commit
their transactions, for reasons explained in the IDL comment.

This commit also moves `transactionInProgress` to
`mozIStorageAsyncConnection`, so that `Sqlite.jsm` can use it, and
exposes it to Rust.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 15:24:06 +00:00
Kartikaya Gupta
8bd863a615 Bug 1619340 - ifdef out the individual gtests failing on Android. r=botond
Instead of skipping entire files, ifdef out the individual tests that are
failing. This allows us to audit them one at a time to re-enable, while
preventing regressions in tests in those files that are already passing.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 15:21:03 +00:00
Dzmitry Malyshau
53a10a49a5 Bug 1614703 - WebGPU render pipeline creation r=jgilbert,webidl,baku
Differential Revision: https://phabricator.services.mozilla.com/D64833

--HG--
extra : moz-landing-system : lando
2020-03-03 15:08:24 +00:00
Simon Giesecke
7017ded493 Bug 1617170 - Change signature of FileInfo::GetFileForFileInfo to accept const& instead of raw pointer. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D63680

--HG--
extra : moz-landing-system : lando
2020-03-03 13:51:52 +00:00
Simon Giesecke
fdc7f3d21a Bug 1617170 - Encapsulate members of MutableFile. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D63679

--HG--
extra : moz-landing-system : lando
2020-03-03 12:48:56 +00:00
Simon Giesecke
08e583f486 Bug 1617170 - Rename GetNewFileInfo to CreateFileInfo. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D63654

--HG--
extra : moz-landing-system : lando
2020-03-03 12:48:26 +00:00
Simon Giesecke
7162eefd5e Bug 1617170 - Reduce statefulness of CreateFileOp. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D63653

--HG--
extra : moz-landing-system : lando
2020-03-03 12:48:01 +00:00
Simon Giesecke
107e3c732d Bug 1617170 - Encapsulate fields and reduce statefulness of DatabaseFile. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D63652

--HG--
extra : moz-landing-system : lando
2020-03-03 12:47:32 +00:00
Simon Giesecke
fa390c1cd5 Bug 1617170 - Encapsulate StoredFileInfo members. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D63651

--HG--
extra : moz-landing-system : lando
2020-03-03 12:06:05 +00:00
Marco Bonardo
960cb5e9f5 Bug 1614854 - Add UrlbarPrefs.set(). r=adw
Differential Revision: https://phabricator.services.mozilla.com/D64685

--HG--
extra : moz-landing-system : lando
2020-03-03 14:08:54 +00:00
Gijs Kruitbosch
9cafea2476 Bug 1619170 - remove useless argument to LinkHandlerChild constructor, r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D65116

--HG--
extra : moz-landing-system : lando
2020-03-03 14:52:20 +00:00
Jan de Mooij
b4a0eb65aa Bug 1618198 part 7 - Implement more branch instructions. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D64930

--HG--
extra : moz-landing-system : lando
2020-03-03 14:54:42 +00:00
Mark Banner
5dfd6de99c Bug 1619587 - Allow fallback to empty string when reading the geo pref in head_search.js. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D65103

--HG--
extra : moz-landing-system : lando
2020-03-03 14:49:32 +00:00
Theo Ottah
6256a406cf Bug 1613320 - Display tooltip when hovering over protection panel highlight area r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D65005

--HG--
extra : moz-landing-system : lando
2020-03-03 14:52:22 +00:00
Rob Lemley
27ef39e646 Bug 1615932 - Support building Thunderbird Snap packages with firefox-snap. r=jlorenzo
Changes to the firefox-snap Docker image to support building Thunderbird Snap
packages as well.
Replaced hardcoded "firefox" instances in runme.sh with $PRODUCT variable and
renamed "snapcraft.yaml.in" to "firefox.snapcraft.yaml.in".

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

--HG--
rename : taskcluster/docker/firefox-snap/snapcraft.yaml.in => taskcluster/docker/firefox-snap/firefox.snapcraft.yaml.in
extra : moz-landing-system : lando
2020-03-03 14:48:49 +00:00
Eitan Isaacson
13e435f85c Bug 1619442 - Style inactive status panel with visibility: hidden. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D65035

--HG--
extra : moz-landing-system : lando
2020-03-03 14:45:30 +00:00
Dão Gottwald
d547c0b8f2 Bug 1619537 - Remove obsolete title separator color override for selected rows. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D65081

--HG--
extra : moz-landing-system : lando
2020-03-03 14:36:21 +00:00
Sebastian Streich
ec2cb24435 Bug 1618194 - Refactor WorkerPrivate.cpp to use BasePrincipal r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D64364

--HG--
extra : moz-landing-system : lando
2020-03-03 14:26:38 +00:00
Dão Gottwald
2ba1d177b6 Bug 1619561 - Don't display Search Tips when when a high-priority notification bar is present. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D65093

--HG--
extra : moz-landing-system : lando
2020-03-03 14:35:18 +00:00
James Willcox
ccdbf46ac1 Bug 1618368 - Test Web Notifications with Service Workers in GV r=geckoview-reviewers,droeh
Differential Revision: https://phabricator.services.mozilla.com/D64475

--HG--
extra : moz-landing-system : lando
2020-03-02 21:50:07 +00:00
Sebastian Streich
882cb13c7b Bug 1611160 - Add Clang Plugin for nsIPrincipal r=ckerschb,andi
Differential Revision: https://phabricator.services.mozilla.com/D63082

--HG--
extra : moz-landing-system : lando
2020-03-03 14:30:36 +00:00
Andrew Osmond
5ee82cb26c Bug 1615394 - Add color management support to the BMP decoder. r=tnikkel
This patch adds support for color management in BMPs added in
BITMAPV4HEADER and BITMAPV5HEADER. While display of BMPs is relatively
rare this comes in handy when interacting with the Windows clipboard.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 14:16:00 +00:00
Mirko Brodesser
939aa616ca Bug 1617141: part 2) Add MOZ_CAN_RUN_SCRIPT to Selection::MaybeAddTableCellRange. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D63645

--HG--
extra : moz-landing-system : lando
2020-03-03 13:42:56 +00:00
Mirko Brodesser
f1f584f689 Bug 1617141: part 1) Simplify code around Selection::MaybeAddTableCellRange. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D63644

--HG--
extra : moz-landing-system : lando
2020-03-03 13:42:49 +00:00
Mirko Brodesser
efbaffc13c Bug 1615581: part 19) Decouple UpdateSelectionCacheOnRepaintSelection from nsFrameSelection. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D63482

--HG--
extra : moz-landing-system : lando
2020-03-03 09:15:22 +00:00
Jan Varga
8d7317acf3 Bug 1619325 - IDB: Proper storage initialization before idle maintenance; r=dom-workers-and-storage-reviewers,ttung,sg
Differential Revision: https://phabricator.services.mozilla.com/D64967

--HG--
extra : moz-landing-system : lando
2020-03-03 13:28:29 +00:00
Kershaw Chang
fb1afad459 Bug 1615335 - Add TRR Background to ThreadAllows.txt r=valentin,andi
Differential Revision: https://phabricator.services.mozilla.com/D64950

--HG--
extra : moz-landing-system : lando
2020-03-03 13:16:21 +00:00
Kershaw Chang
35504106b4 Bug 1615335 - Use SimpleHttpChannel to fetch TRR data r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D63646

--HG--
extra : moz-landing-system : lando
2020-03-03 13:16:21 +00:00
Sebastian Streich
de4695b650 Bug 1615259 - Refactor GetUri in WorkerLoadInfo.cpp r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D62737

--HG--
extra : moz-landing-system : lando
2020-03-03 12:58:38 +00:00
Mihai Alexandru Michis
27d7312e19 Backed out changeset 469d7894f720 (bug 1618545) for causing bustages in src/layout/base/PositionedEventTargeting.cpp
CLOSED TREE
2020-03-03 14:52:13 +02:00
Frederic Wang
f70d494fe7 Bug 1617154 - [intersection-observer] Accept a Document as an explicit root. r=emilio,bzbarsky
This patch allows users to specify a Document as an explicit root of an
intersection observer. For rationale, see the intent-to thread:
https://groups.google.com/forum/#!topic/mozilla.dev.platform/64nDLTAZGzY

It is implemented under a preference option enabled in Nightly:
dom.IntersectionObserverExplicitDocumentRoot.enabled
When disabled, the current TypeError exception is preserved so that
people can continue to feature detect the support.

The enhancement is tested by and enabled for the following test:
https://w3c-test.org/intersection-observer/document-scrolling-element-root.html

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

--HG--
extra : moz-landing-system : lando
2020-03-03 12:25:30 +00:00
Kartikaya Gupta
41606ddbd6 Bug 1619293 - Re-enable rust flags in github CI. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65007

--HG--
extra : moz-landing-system : lando
2020-03-02 23:56:27 +00:00
Kartikaya Gupta
432394ae9f Bug 1618545 - Delete obsolete/unused code relating to Fennec's experimental ui.zoomedview feature. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D65022

--HG--
extra : moz-landing-system : lando
2020-03-02 21:53:50 +00:00
Andrei Oprea
cc2482d295 Bug 1618356 - Implement fetching flowparams for sync card entry point from about:welcome r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D64960

--HG--
extra : moz-landing-system : lando
2020-03-03 10:59:28 +00:00
Jan de Mooij
44a9a9eb42 Bug 1618198 part 9 - Implement GetArg and SetArg. r=iain
This is based on the IonBuilder code that was tidied up last week in
bug 1380281 and bug 1478350.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 12:08:41 +00:00
Jan de Mooij
48d68050df Bug 1618198 part 8 - Implement more arithmetic/bitwise ops. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D64975

--HG--
extra : moz-landing-system : lando
2020-03-02 16:57:19 +00:00
Tom Schuster
6fe5169e62 Bug 1615761 - Fix browser.find.highlightResults without a rangeIndex parameter. r=mixedpuppy
This code didn't handle the missing optional rangeIndex parameter correctly.
Probably because all tests for highlightResults used a rangeIndex.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 19:04:40 +00:00
André Bargull
5ee4b6894b Bug 1619336: Remove no longer used PopVarEnv bytecode. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D64974

--HG--
extra : moz-landing-system : lando
2020-03-03 11:46:10 +00:00
André Bargull
55207cb217 Bug 1619205: Mark return-value as being used in jsop_checkreturn. r=jandem
If we don't mark the return-value as being used, it may get optimised out.
When we then re-execute `JSOp::CheckReturn` in baseline after a bailout, we may
get `JS_OPTIMIZED_OUT`, which is unexpected at this point.

Drive-by fix:
Only call `arr.setImplicitlyUsedUnchecked()` in `jsop_optimize_spreadcall` when
`arr` isn't used.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 11:43:27 +00:00
Dorel Luca
284433eb29 Backed out changeset 388ac5609ceb (bug 1615394) for MinGW build bustage. CLOSED TREE
--HG--
extra : amend_source : cf3cec59ae1efd99b9de0d19b7a09c135138daf5
2020-03-03 13:02:04 +02:00
Andrew Osmond
97a2bca5b9 Bug 1615394 - Add color management support to the BMP decoder. r=tnikkel
This patch adds support for color management in BMPs added in
BITMAPV4HEADER and BITMAPV5HEADER. While display of BMPs is relatively
rare this comes in handy when interacting with the Windows clipboard.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 23:49:37 +00:00
Mihai Alexandru Michis
f049ee5a93 Backed out 4 changesets (bug 1589493) for causing failures in test_process_error_oom.xhtml
CLOSED TREE

Backed out changeset d914e968de2c (bug 1589493)
Backed out changeset 2c23fed6b2ff (bug 1589493)
Backed out changeset 416b95911b6d (bug 1589493)
Backed out changeset 47e745b389d0 (bug 1589493)
2020-03-03 12:21:11 +02:00
dw-dev
3ad6458b99 Bug 1483590 support passing a filename to saveAsPDF r=mixedpuppy
Add optional 'toFileName' property to the 'pageSettings' object
passed into tabs.saveAsPDF().

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

--HG--
extra : moz-landing-system : lando
2020-03-03 09:14:54 +00:00
Mihai Alexandru Michis
a9380dc4f1 Backed out changeset cf410c350fe7 (bug 1614854) for causing xpcshell failures in test_UrlbarPrefs.js
CLOSED TREE

--HG--
extra : amend_source : c322fea4b2e87be04d4e6a4615936b3d8b896dd1
2020-03-03 12:08:56 +02:00
Simon Fraser
9415049f64 Bug 1615311 Add merge day action r=mtabara
Calling the merge day automation requires an action so that we can pass in parameters such as source and destination repository and branch.

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

--HG--
extra : moz-landing-system : lando
2020-02-25 10:48:54 +00:00
Sylvestre Ledru
8afe4a17d7 Bug 1578058 - Disable the yaml test on Mac r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D63029

--HG--
extra : moz-landing-system : lando
2020-02-21 17:06:14 +00:00
Kershaw Chang
47c554f926 Bug 1613873 - P7: Dispatch proxy resolution to main thread r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D63505

--HG--
extra : moz-landing-system : lando
2020-03-03 09:43:46 +00:00
Kershaw Chang
0939061ba0 Bug 1613873 - P6: Support calling nsHttpConnectionMgr::SpeculativeConnect off main thread r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D62921

--HG--
extra : moz-landing-system : lando
2020-03-02 12:38:33 +00:00