Commit Graph

710256 Commits

Author SHA1 Message Date
Neil Deakin
7b6180750d Bug 1640943, remove message manger and frame scripts from browser_accesskeys.js, r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D76865
2020-05-27 20:12:34 +00:00
Razvan Maries
5c6bd8bcfd Backed out changeset 2a44daf61d7f (bug 1640479) for build bustages on bug1640479.js. CLOSED TREE 2020-05-27 23:20:51 +03:00
Rob Wu
e7258ec672 Bug 1640291 - Account for last_modified in attachment downloader r=leplatrem
Differential Revision: https://phabricator.services.mozilla.com/D76963
2020-05-27 11:28:27 +00:00
Rob Wu
0ceb5a55a2 Bug 1640291 - Read RemoteSettings dump before cache, and minimize unnecessary reads r=leplatrem
This commit does the following:

- Feature / Optimization: Check the dump before the cache, instead of
  the reverse. The dump is expected to match the requested attachment in
  the common case, and checking it first helps with ensuring that the
  expected (packaged dump) is used when available.

- Optimization: Defer reading the cached attachment until it's needed.

- Refactor / Feature: Treat a missing `.meta.json` file as a sign that
  the attachment dump does not exist, rather than an error.
  Previously, if an attachment cannot be downloaded from the network,
  that error would be replaced with a generic `DownloadError` (from the
  missing `.meta.json` file). This is mostly relevant for telemetry.

- Refactor / Maintainability: Create helper to manage lazy access to the
  record and attachment, to ensure that the record and attachment is
  only read on demand, and at most once.

- Refactor / Readability: Move the common return value generation logic
  to the helper as `getResult`, to avoid the verbose duplication of the
  logic. Now the return value fits in one line instead of 5-6 lines.

- Fix test: Rename filename-of-dump.meta.json and fix test expectation
  to ensure that the test checks the absence of the file content,
  rather than the absence of the meta data file.

Differential Revision: https://phabricator.services.mozilla.com/D76962
2020-05-27 08:00:43 +00:00
Rob Wu
e609ad7d6f Bug 1640291 - Add test coverage for corrupted cache r=leplatrem
In practice, the cache of the attachment downloader can become corrupt
and unusable when IndexedDB breaks. The implementation correctly handled
this case, but there were no tests that verified that it did.

This patch adds test coverage for the scenario of a broken cache,
to ensure that the implementation continues to behave in a sane way.

Differential Revision: https://phabricator.services.mozilla.com/D76961
2020-05-27 07:50:12 +00:00
Rob Wu
680ed7bd7e Bug 1640292 - Move RemoteSettingsWorker.checkContentHash to main thread r=leplatrem
The crypto API does most of its work on the background thread. There is
no benefit in posting the buffer to a worker thread.

Differential Revision: https://phabricator.services.mozilla.com/D76960
2020-05-27 13:54:37 +00:00
Michael Kaply
81a969c1f1 Bug 1637716 - Shutdown AddonManager at end of test. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D76787
2020-05-27 19:57:05 +00:00
Razvan Maries
0b581d46a0 Backed out changeset 156d42f01488 (bug 1624909) for build bustages on Pivot.h. CLOSED TREE 2020-05-27 22:49:22 +03:00
Razvan Maries
1e190c341b Backed out changeset b4c531b04559 (bug 1640475) for SM bustages on bug1640475.js. CLOSED TREE 2020-05-27 22:45:38 +03:00
Emilio Cobos Álvarez
13e0b9c0b5 Bug 1641310 - Add a whitelist entry to browser_parsable_css.js to account for ::file-chooser-button.
Differential Revision: https://phabricator.services.mozilla.com/D77133
2020-05-27 19:18:41 +00:00
Emilio Cobos Álvarez
e3ea22d103 Bug 1641318 - Add appropriate metadata for a file-chooser-button test.
Differential Revision: https://phabricator.services.mozilla.com/D77134
2020-05-27 19:29:02 +00:00
Jamie Nicol
7aabe03a28 Bug 1635406 - Snap reference frame transforms if animated or zooms. r=aosmond
Bug 1620014 attempted to fix an issue where an animated visual
viewport offset (eg due to scrolling while being zoomed in) was
causing the fractional offset of a descendant scroll frame's content
transform to change, causing too much picture cache invalidation.

It did so by snapping the coordinate-system-relative offset when using
it to calculate the content_transform. This value of course includes
the animated visual viewport offset (as the axis-aligned zoom
transform cannot reset the coordinate system). However, it also
includes non-animated offsets, which were now being incorrectly
snapped, causing blurry/clipped text.

This change reverts that original fix. And instead, it snaps the
source_transform of the reference frame itself when it is sampled,
rather than the accumulated coordinate-system-relative scale_offset of
the scroll frame. Additionally, it only snaps the offset if it is an
animation (including zoom), and static offsets are left unsnapped.

Differential Revision: https://phabricator.services.mozilla.com/D76298
2020-05-27 13:45:08 +00:00
Morgan Reschenberg
c29473e265 Bug 1624909: Create and maintain radio siblings array for position information. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D72751
2020-05-27 19:23:32 +00:00
Bob Clary
4ae8d3eb0e Bug 1638956 - enable mach crashtest to run with Python 3. r=gbrown
Depends on D76651

Differential Revision: https://phabricator.services.mozilla.com/D76866
2020-05-26 19:38:47 +00:00
Bob Clary
41921fd954 Bug 1638973 - enable mach marionette-test to run with Python 3. r=marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D76651
2020-05-26 15:54:07 +00:00
Bob Clary
6a0aed7b99 Bug 1638981 - enable mach reftests to run with Python 3. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D76650
2020-05-27 13:07:07 +00:00
Bob Clary
ba6fe87dce Bug 1638972 - enable mach jstests to run with Python 3. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D76649
2020-05-26 15:53:52 +00:00
Bob Clary
684bd88a60 Bug 1640249 - Make marionette Python2/Python3 compatible. r=marionette-reviewers,maja_zf,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D76648
2020-05-27 19:21:07 +00:00
Bob Clary
ac2fe501e3 Bug 1595814 - work around marionette dependency on private classes in Python2 unittest/case.py, r=whimboo,marionette-reviewers,maja_zf.
Differential Revision: https://phabricator.services.mozilla.com/D76494
2020-05-27 05:19:46 +00:00
egao
1f90bf661e Bug 1637463 - update manifest runtime information with web-platform-tests-reftest information r=jmaher
Changes:

The previous update to this file did not contain web-platform-tests-reftest information.

Differential Revision: https://phabricator.services.mozilla.com/D77132
2020-05-27 19:21:00 +00:00
Iain Ireland
df802d0e55 Bug 1640479: Don't set kind if initializeNamedCaptures fails r=mgaudet
If we throw an OOM in initializeNamedCaptures for a RegExpShared, we will set kind to RegExp, but not initialize the named captures data. If we recover from the OOM and then execute the same regexp, the cached RegExpShared will not be reparsed, and we won't create named captures for it.

The fix is to reorder CompilePattern so that we only change the state of the RegExpShared after all of the initialization has succeeded. initializeNamedCaptures already avoids this problem by saving the updates until the end.

Differential Revision: https://phabricator.services.mozilla.com/D76957
2020-05-27 19:20:26 +00:00
Mark Banner
7a697cb38b Bug 1641254 - Add another prefix to the Search Telemetry provider info list. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D77087
2020-05-27 16:22:09 +00:00
Jamie Nicol
bfd4af6e88 Bug 1585050 - Run mochitests on android emulator with webrender enabled. r=ktaeleman
Differential Revision: https://phabricator.services.mozilla.com/D77000
2020-05-27 16:43:48 +00:00
Iain Ireland
1ac5c6096a Bug 1640475: Report OOM in initializeNamedCaptures r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D76956
2020-05-27 01:34:57 +00:00
Razvan Maries
1b7a9f16ce Backed out changeset 8ee1fd064263 (bug 1640403) for perma failures on browser_parsable_css. CLOSED TREE 2020-05-27 22:11:28 +03:00
Razvan Maries
f2ef387aa5 Backed out changeset 396da163d87a (bug 1627541) for perma failures on test_geodefaults.js. CLOSED TREE 2020-05-27 21:59:51 +03:00
Emilio Cobos Álvarez
70ab539dc0 Bug 1641245 - Fix silly windows build bustage.
MANUAL PUSH: bustage on a CLOSED TREE.
2020-05-27 21:05:25 +02:00
Eitan Isaacson
b0be864424 Bug 1641002 - Map NSAccessibility API to MOXAccessible protocol. r=morgan
Add most attributes getters, setters and actions to prottocol,
autogenerate objective c dictionaries, and implement forwarding
logic from NSAccessibility methods.

Differential Revision: https://phabricator.services.mozilla.com/D76921
2020-05-27 17:26:38 +00:00
Eitan Isaacson
553616aa05 Bug 1641002 - Introduce MOXAccessible protocol and MOXAccessibleBase. r=morgan
This sets up the possibility of moving most non-gecko things to a base class, and
start a protocol to add for all the subclasses to implement as needed.

Differential Revision: https://phabricator.services.mozilla.com/D76920
2020-05-27 17:24:44 +00:00
Artem
30dba11bdd Bug 1609556 - Migrate toolbar-context-menu to Fluent r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D76016
2020-05-27 18:09:40 +00:00
Emilio Cobos Álvarez
54fd961a29 Bug 1641245 - Make string comparators not virtual. r=froydnj,necko-reviewers,geckoview-reviewers,jgilbert,agi,valentin
There's no use case for stateful comparators, so they can be just plain
function pointers.

This is used in some hot places like CSS selector matching.

Differential Revision: https://phabricator.services.mozilla.com/D77084
2020-05-27 18:11:12 +00:00
Anny Gakhokidze
28243d5736 Bug 1630323 - Do not override user preferences when clicking on a service worker notification to open a new document, r=Gijs,nika,geckoview-reviewers,snorp
In Bug 1622749 a user preference for where to open new documents (from a
service worker notification) was temporarily overriden in order to quickly fix
a crash that was happening in mozilla::dom::ClientOpenWindow. The crash was
ocurring when the pref "browser.link.open_newwindow" was set to 2, meaning new
documents are opened in a new window, instead of a new tab. The reason the
browser crashed is because the path for opening a new document is different
depending on the current user setting, and in NEWWINDOW case we did not get a
browsing context returned when calling mozilla::dom::OpenWindow which resulted
in a failed assertion.

The solution is to pass in a callback to mozilla::dom::OpenWindow as part of
nsOpenWindowInfo object, and invoke that callback with a corresponding
BrowsingContext in nsFrameLoader when that browsing context is ready.

After we call mozilla::dom::OpenWindow, we wait on a promise, that will be
resolved when the callback is invoked, before executing the rest of the code
that depends on the browsing context for a newly opened document being
available.

Differential Revision: https://phabricator.services.mozilla.com/D72745
2020-05-27 18:15:36 +00:00
Ben Hearsum
34915064c5 Bug 1637542: Disable {linux64,win32,win64} opt and linux64 artifact builds on autoland. r=jmaher
The opt builds were originally disabled in bug 1522111, but were re-enabled when webgpu was added.

Differential Revision: https://phabricator.services.mozilla.com/D76906
2020-05-27 17:53:38 +00:00
Razvan Maries
06a194ef3b Backed out changeset 5b97f74fb6fd (bug 1629113) for perma failures on test_keycodes.xhtml. CLOSED TREE 2020-05-27 21:16:13 +03:00
Razvan Maries
e44db87b99 Backed out changeset b4c58d9afd4b (bug 1624909) for build bustages on Pivot.h. CLOSED TREE 2020-05-27 21:04:58 +03:00
Mitchell Hentges
0482fe58ed Bug 1641073: improve BaseFile.copy() performance r=rstewart
Arrays are mutable, so appending each substring at a time and joining at the endis much faster than re-allocating
a new string on each loop.

Differential Revision: https://phabricator.services.mozilla.com/D76945
2020-05-27 16:52:51 +00:00
Morgan Reschenberg
812a214eeb Bug 1624909: Create and maintain radio siblings array for position information. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D72751
2020-05-27 17:51:30 +00:00
Miko Mynttinen
6013e7cd95 Bug 1640457 - Discard pending WR display items if the Gecko item will be pushed as an image r=jrmuizel
If |nsDisplayItem::CreateWebRenderCommands()| returns false, the items that have been pushed to |DisplayListBuilder::pending_chunk| need to be cleared, because the item will be pushed as an image instead. This happens, for example, when nsDisplayText encounters unsupported features.

Differential Revision: https://phabricator.services.mozilla.com/D77095
2020-05-27 16:45:08 +00:00
Dzmitry Malyshau
abaaa872a5 Bug 1634425 - Integrate WebGPU API tracing r=jgilbert
This is the logic of tracing the WebGPU API calls at the level of wgpu-core,
serialized into a folder of choosing on the user drive. Traces are extremely portable,
they can be shared (on BugZilla) and then replayed on the developer machine,
which can have a different architecture from the users machine.

The standalone player is introduced in `gfx/wgpu/player`, similar to WebRender's Wrench.

The output dir is controlled by "dom.webgpu.traceDir" pref. No tracing happens if it's empty.

Differential Revision: https://phabricator.services.mozilla.com/D73333
2020-05-27 16:49:03 +00:00
Marco Bonardo
e8fd1b7c50 Bug 1398567 - Invert URIFixup default behavior to search unless the string looks like a URI. r=Gijs
With recent fixes that can properly identify whitelisted domains, whitelisted
domain suffixed, valid known public suffixes, and forcing to visit URI-like
strings that end with a slash, it's time to re-evaluate the URIFixup behavior.
Until now URIFixup considered everything a URI unless it had specific search
characteristics, this patch inverts that behavior.
The scope of this change is to improve the urlbar behavior as the main Search
Access Point, since that's the direction we're moving towards.

This lands with a temporary hidden feature pref browser.fixup.defaultToSearch,
that will be removed once the feature has been released.

Differential Revision: https://phabricator.services.mozilla.com/D76852
2020-05-27 16:55:14 +00:00
Harry Twyford
bec092afba Bug 1627989 - Remove the browser.urlbar.openViewOnFocus pref. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D76247
2020-05-27 16:46:43 +00:00
Harry Twyford
ce4271d662 Bug 1627858 - Add a user visible preference to disable Top Sites on focus. r=dao,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D76246
2020-05-27 16:45:47 +00:00
Harry Twyford
e671b8b516 Bug 1623666 - Always show Top Sites in the Urlbar on empty searches. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D76245
2020-05-27 15:08:07 +00:00
Harry Twyford
166994cf8b Bug 1634279 - Allow accessing the TopSites feed even if Top Sites are hidden on the new tab page. r=dao,thecount,mixedpuppy
Creates a new pref, "...activity-stream.feeds.system.topsites" to control whether TopSitesFeed is enabled. The existing "...activity-stream-feeds.topsites" pref is kept to allow users to downgrade and to ensure that people who disabled Top Sites in the past will continue to not see Top Sites on the New Tab Page -- the difference being that Top Sites will now be generated for those users.

Differential Revision: https://phabricator.services.mozilla.com/D75603
2020-05-27 16:38:03 +00:00
Morgan Reschenberg
6b03f5994e Bug 1632252: Replace constructor with AccOrProxy, adjust native getter. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D75354
2020-05-27 15:50:47 +00:00
Dale Harvey
ac889ccf75 Bug 1627541 - Move pref handling into Region.jsm r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D75719
2020-05-27 16:26:28 +00:00
Dorel Luca
99ddf6cdc5 Backed out 2 changesets (bug 1366645) for Browser-chrome failures in uriloader/exthandler/tests/mochitest/browser_download_open_with_internal_handler.js. CLOSED TREE
Backed out changeset cdfedc4707bd (bug 1366645)
Backed out changeset 666659de5856 (bug 1366645)
2020-05-27 19:25:57 +03:00
Andrew Halberstadt
a829c1fad0 Bug 1640382 - [taskgraph] Don't try to set 'schedules-component' on tasks that use 'when.files-changed', r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D76979
2020-05-27 14:37:37 +00:00
Drew Willcoxon
e9b32a80a2 Bug 1635622 - Don't notify urlbar consumers when there aren't any results in a search. r=mak
See https://bugzilla.mozilla.org/show_bug.cgi?id=1635622#c14

Differential Revision: https://phabricator.services.mozilla.com/D77012
2020-05-27 16:16:38 +00:00
Benjamin Beurdouche
98c6aea04e Bug 1639475 - Fix incomplete documentation of TLS key exchange algorithms in telemetry. r=mt
Differential Revision: https://phabricator.services.mozilla.com/D76105
2020-05-27 15:27:33 +00:00