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

716085 Коммитов

Автор SHA1 Сообщение Дата
Edgar Chen fb63f237a9 Bug 1648630 - Part 1: Remove MultiTouchInput::ToWidgetMouseEvent; r=kats
This was used in B2G and no one uses it now.

Differential Revision: https://phabricator.services.mozilla.com/D81816
2020-07-02 19:27:51 +00:00
Gerald Squelart 69bf2a2f64 Bug 1650280 - Missing #include nsLiteralString.h in TestSubstringTuple.cpp - r=sg
Differential Revision: https://phabricator.services.mozilla.com/D82139
2020-07-03 07:27:06 +00:00
Cosmin Sabou e11d919cdc Backed out changeset 3d3f8e290aa6 (bug 1649802) for bc failures on browser_search_subdialogs_within_preferences_site_data.js. CLOSED TREE 2020-07-03 10:10:34 +03:00
Andrea Marchesini 793314fa54 Bug 1649802 - Expose cookie sameSite=lax-by-default as experimental feature, r=jaws,fluent-reviewers,mconca
Differential Revision: https://phabricator.services.mozilla.com/D81878
2020-07-03 05:00:58 +00:00
Kirk Steuber 6d3e7becdb Bug 1649975 - Assign Bugzilla component to WinToast library r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D82115
2020-07-02 22:34:29 +00:00
Jean-Yves Avenard e1424a9e65 Bug 1649977 - Use a nsThread for the VRService. r=kip
The logic was apparently initially copied from the compositor thread which too got migrated to nsThread in bug 1634253, so we re-use that same logic again.

This allows to remove all use of the Google's MessageLoop.

Differential Revision: https://phabricator.services.mozilla.com/D81974
2020-07-03 02:52:05 +00:00
Emilio Cobos Álvarez d8785e5e8d Bug 1648064 - Fix usage of printsettings in printpreview_helper. r=jwatt
For some reason that I don't want to dig into after a whole day of
debugging, nsDocumentViewer::GetGlobalPrintSettings always returns a new
object. Make sure to get a hand on the initial settings objects and use
that. That way we can remove the XXX comment, and use the print
settings as expected, which is useful because I'm going to add a test
whose reference is using background-color, and I need to change the
settings for us to print backgrounds.

Differential Revision: https://phabricator.services.mozilla.com/D81776
2020-07-02 22:49:55 +00:00
Keefer Rourke 16fbac6f70 Bug 1642454: Implement IOUtils read and writeAtomic methods r=barret,smaug,Gijs
This patch introduces a minimal, asynchronous Web IDL interface for
reading/writing whole files in privileged chrome code (main-thread and web
workers). All I/O is performed on a background thread. Pending I/O blocks
Firefox shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D78134
2020-07-02 22:32:03 +00:00
Keefer Rourke df2678e18f Bug 1642454: Promote worker testing functions to mochitest/tests/SimpleTest r=gbrown
This patch extracts some functions from OS.File tests to
mochitest/tests/SimpleTest to be more readily used by new code which needs to
run tests in ChromeWorkers.

Differential Revision: https://phabricator.services.mozilla.com/D80898
2020-07-02 22:30:53 +00:00
Keefer Rourke 6bab7cc369 Bug 1642454: Explicitly list copy and move assignment and ctor in PR_CloseDelete r=barret,smaug
Differential Revision: https://phabricator.services.mozilla.com/D80896
2020-07-02 22:30:12 +00:00
Keefer Rourke 5a86ee66cc Bug 1642454: Move PR_CloseDelete to dom/system r=barret,smaug
The class PR_CloseDelete is a useful deleter for automatically closing NSPR File
Descriptors when used with UniquePtr. This patch extracts this class from
nsTerminator.cpp to dom/system so it may easily be used by new Gecko code.

Differential Revision: https://phabricator.services.mozilla.com/D80719
2020-07-02 22:30:03 +00:00
Emilio Cobos Álvarez 2100f2c39b Bug 1650236 - Minor Document.cpp cleanups. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D82065
2020-07-02 22:27:45 +00:00
Robert Helmer 11d7706a25 Bug 1649899 - do not use Pioneer study add-on IDs for RS records r=mythmon
Differential Revision: https://phabricator.services.mozilla.com/D81923
2020-07-03 03:23:27 +00:00
Alphan Chen 4b0d7eb9e6 Bug 1644484 - Handle the TypeError and InvalidStateError when calling FullScreen.cleanupDomFullscreen() from DOMFullscreenParent.didDestroy() r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D81716
2020-07-03 03:00:53 +00:00
Dimi Lee ebbc5fdad6 Bug 1645777 - Add nullptr check after calling AntiTrackingUtils::GetPrincipal r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D82076
2020-07-03 01:30:12 +00:00
caroline cc1a884f82 Bug 1649913 - Part 2: Hook RateMyCacheIR to StructuredSpewer. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D81951
2020-07-02 23:05:52 +00:00
caroline 9f877b5f9a Bug 1649913 - Part 1: Add spew channel. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D81950
2020-07-02 22:39:08 +00:00
Narcis Beleuzu ad56850077 Backed out 2 changesets (bug 1622263) for bc failures on browser_locale_change.js . CLOSED TREE
Backed out changeset ebcad04b8151 (bug 1622263)
Backed out changeset e8290c6bfdaa (bug 1622263)
2020-07-03 03:36:48 +03:00
Narcis Beleuzu d720811f4c Backed out changeset 3c0f3e0e7df9 (bug 1647747) for mochitest failures on /FindSCCs.h . CLOSED TREE 2020-07-03 03:07:16 +03:00
Edwin Takahashi 3ae2d81379 Bug 1648674 - fix unary operator expected error in test-liux.sh r=glandium
Changes:
  - use parameter expansion to provide a default value of 'false' if `$NEED_COMPIZ` is not set.

Differential Revision: https://phabricator.services.mozilla.com/D81388
2020-07-02 23:03:49 +00:00
Jean-Yves Avenard 8fd158d479 Bug 1649684 - Use the current nsISerialEventTarget with the various process hosts. r=nika
In all those cases, the current nsISerialEventTarget is either the main thread or the MessageChannel's nsISerialEventTarget (since bug 1634846)

Differential Revision: https://phabricator.services.mozilla.com/D81966
2020-07-02 22:59:24 +00:00
Jeff Gilbert 017fc801d8 Bug 1647167 - Run pre/post transaction triggers in BasicCanvasLayer::Paint. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D82116
2020-07-02 22:55:48 +00:00
Mike Conley 411aa9b679 Bug 1622263 - Add tests for scenarios when the about:home startup cache isn't used. r=Gijs
This doesn't include tests for the CACHE_RESULT_SCALARS.CORRUPT and
CACHE_RESULT_SCALARS.LATE cases. Those tests will be added in
bug 1633051.

Differential Revision: https://phabricator.services.mozilla.com/D81190
2020-07-02 22:46:47 +00:00
Mike Conley 4345a9db7f Bug 1622263 - Add Telemetry for about:home startup cache. r=Gijs,data-review=mmccorquodale
Differential Revision: https://phabricator.services.mozilla.com/D81189
2020-07-02 22:46:30 +00:00
Steve Fink 038459dd1a Bug 1647747 - Add in zone edges for delegates to DebuggerWeakMap r=jonco,jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D81427
2020-07-02 22:41:20 +00:00
Jeff Muizelaar 510bcf6329 Bug 1649040. Properly set the transform on the clipped surface. r=mstange
This changes DrawTargetWrapAndRecord::CreateClippedDrawTarget to
properly set the transform on the newly created DrawTarget
to match DrawTargetRecording::CreateClippedDrawTarget.

More interestingly, it adds a print reftest that
ensures that this code is actually excerised.

Differential Revision: https://phabricator.services.mozilla.com/D82114
2020-07-02 22:17:51 +00:00
Emilio Cobos Álvarez 56111c91d2 Bug 1649228 - Fix ContentChild::RecvNotifyAlertsObserver to notify after, not while, removing observers from the vector. r=froydnj
This probably had logic issues before bug 1642991, but not security
issues (at worst, an array out of bounds which is a release assertion
that would crash the process in a safe way).

Differential Revision: https://phabricator.services.mozilla.com/D81596
2020-06-30 09:44:28 +00:00
Eitan Isaacson 7b241c8028 Bug 1649575 - Part 6: Introduce browser test for basic text API. r=morgan.
Differential Revision: https://phabricator.services.mozilla.com/D81762
2020-07-02 21:24:58 +00:00
Eitan Isaacson 2f2f6eb3ee Bug 1649575 - Part 5: Implement string building for GeckoTextMarkerRange. r=morgan
This is a seperate patch because of the complexity.

Differential Revision: https://phabricator.services.mozilla.com/D81761
2020-07-02 21:57:55 +00:00
Eitan Isaacson ebff8f5ad8 Bug 1649575 - Part 4: Introduce GeckoTextMarker and GeckoTextMarkerRange. r=morgan
These classes do a few things:
1. They implement and abstract common text operations, for example:
 (a) comparing two markers to know which one precedes the other.
 (b) text retrieval for ranges
 (c) geometric bounds for ranges
 (d) etc.
2. They can be converted to and from AXTextMarker(Range)s. Since the AXTextMarker
should not contain a raw pointer since there is a potential for use-after-free,
we need to lookup the referenced accessible in its document to know that it still exists.

Note: mozTextAccessible got pushed to another unified source file, so we need to
declare some stuff for it. Ideally we would be detecting these kinds of things sooner.

Differential Revision: https://phabricator.services.mozilla.com/D81760
2020-07-02 21:35:05 +00:00
Eitan Isaacson 7c21778bfd Bug 1649575 - Part 3: Introduce MOXTextMarkerDelegate. r=morgan
The delegate is associated with accessible documents (either local or remote).

I made a separate protocol for all the text marker stuff as it really is a seperate API.

Differential Revision: https://phabricator.services.mozilla.com/D81759
2020-07-02 21:33:07 +00:00
Eitan Isaacson 82c3896e77 Bug 1649575 - Part 2: Wrap opaque NSObjects for testing. r=morgan
AXTextMarker and AXTextMarkerRange are opaque types that are not queried or
manipulated by the AT. For tests, we need to be able to retrieve them,
and pass them back.

This patch generalizes the wrapper we already had in nsIAccessibleMacInterface
and allows other types to be wrapped.

Differential Revision: https://phabricator.services.mozilla.com/D81758
2020-07-02 21:24:39 +00:00
Eitan Isaacson ec18c36609 Bug 1649575 - Part 1: Add comparators to AccessibleOrProxy. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D81757
2020-07-02 21:24:32 +00:00
Michal Novotny ae7b241f26 Bug 1649410 - [socket-process] test_version_fallback() in netwerk/test/unit/test_http3.js fails r=necko-reviewers,kershaw
Propagate Alt-Used request header set in socket process to parent process.

Differential Revision: https://phabricator.services.mozilla.com/D81714
2020-07-02 16:54:34 +00:00
Narcis Beleuzu e23d2a0d46 Backed out changeset d3c78f4a1465 (bug 1648646) for regressing bug 1649342 and bug 1649433. CLOSED TREE 2020-07-03 01:20:31 +03:00
Narcis Beleuzu 2f11bc8165 Backed out 4 changesets (bug 1642454) for failures on dom/system/tests/test_ioutils_worker.xhtml . CLOSED TREE
Backed out changeset 13553531fc62 (bug 1642454)
Backed out changeset 7896b4315920 (bug 1642454)
Backed out changeset 1e68090eed0b (bug 1642454)
Backed out changeset dfb201663480 (bug 1642454)
2020-07-03 01:16:36 +03:00
Narcis Beleuzu cba601b1c9 Backed out changeset 9acd9e718df0 (bug 1649899) for bc failures on browser_pioneer_ui.js . CLOSED TREE 2020-07-03 01:15:00 +03:00
alwu 224727c53b Bug 1650179 - init WC_FILED 'AutoplayPermission' r=nika
We added that field in bug1597450, but we forgot to set its init value.

Differential Revision: https://phabricator.services.mozilla.com/D82077
2020-07-02 21:46:58 +00:00
Mitchell Hentges 36e578097f Bug 1646363: "mach build" should be resilient to drive letter capitalization r=rstewart
Depending on how MozillaBuild is invoked, python may think that the drive letter is a different case.
Since some paths are saved between builds in "config.status", this inconsistency can cause issues.

Though this patch doesn't solve the underlying inconsistency, it resolves the crash that was occurring.

Differential Revision: https://phabricator.services.mozilla.com/D81738
2020-07-02 20:10:41 +00:00
John Lin 1c858f5365 Bug 1640369 - always close memory files in case GC doesn't. r=agi,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D82056
2020-07-02 21:34:58 +00:00
alwu d1dde804d7 Bug 1643513 - part4 : add test. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D81003
2020-07-02 17:46:38 +00:00
alwu 0c227d097b Bug 1643513 - part3 : add `onpositionstatechange` event handler on MediaController. r=chunmin,smaug
What this patch do are
- add `onpositionstatechange` event handler on MediaController
- `PositionStateEvent` would be sent to `positionstatechange` event handler

The advantage of doing so is
- to allow us to listen to the position change on the media controller interface (that can be used for testing and the future plan, the media hub)

Differential Revision: https://phabricator.services.mozilla.com/D80791
2020-07-02 19:41:22 +00:00
alwu f7b14399a5 Bug 1643513 - part2 : notify position state change when media session updates the position state. r=chunmin
What this patch do are
- propagate the position state change from the media session

The advantage of doing so is
- to allow us to notify this change to `MediaController` and eventually would notify that to `MediaControlKeySource`

Differential Revision: https://phabricator.services.mozilla.com/D80790
2020-07-02 01:23:24 +00:00
alwu 58beb8029a Bug 1643513 - part1 : set media position state to the key source. r=chunmin
What this patch do are
- to add `SetPositionState()` on `MediaControlKeySource`
- notify `MediaControlKeySource` when the main controller's position state changes

The advantage of doing so is
- to allow `MediaControlKeySource` to know the position state change so that it can update the display content (eg. showing the duration or the progress bar of playback)

Differential Revision: https://phabricator.services.mozilla.com/D80789
2020-07-02 19:18:48 +00:00
Keefer Rourke d6e77b7023 Bug 1642454: Implement IOUtils read and writeAtomic methods r=barret,smaug,Gijs
This patch introduces a minimal, asynchronous Web IDL interface for
reading/writing whole files in privileged chrome code (main-thread and web
workers). All I/O is performed on a background thread. Pending I/O blocks
Firefox shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D78134
2020-07-02 20:21:16 +00:00
Keefer Rourke e37012f935 Bug 1642454: Promote worker testing functions to mochitest/tests/SimpleTest r=gbrown
This patch extracts some functions from OS.File tests to
mochitest/tests/SimpleTest to be more readily used by new code which needs to
run tests in ChromeWorkers.

Differential Revision: https://phabricator.services.mozilla.com/D80898
2020-07-02 20:16:49 +00:00
Keefer Rourke 79d8dcb860 Bug 1642454: Explicitly list copy and move assignment and ctor in PR_CloseDelete r=barret,smaug
Differential Revision: https://phabricator.services.mozilla.com/D80896
2020-07-02 20:16:15 +00:00
Keefer Rourke d4666b431c Bug 1642454: Move PR_CloseDelete to dom/system r=barret,smaug
The class PR_CloseDelete is a useful deleter for automatically closing NSPR File
Descriptors when used with UniquePtr. This patch extracts this class from
nsTerminator.cpp to dom/system so it may easily be used by new Gecko code.

Differential Revision: https://phabricator.services.mozilla.com/D80719
2020-07-02 20:16:07 +00:00
Geoff Brown 847bba935b Bug 1649703 - Avoid binary output from mozcrash under py3; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D82080
2020-07-02 20:56:52 +00:00
David Major 6e4f5b26c2 Bug 1650210 - Fix a clang-11 error in nsTouchBar.mm r=mstange
error: cannot initialize return object of type 'bool' with an rvalue of type 'nullptr_t'

Differential Revision: https://phabricator.services.mozilla.com/D82086
2020-07-02 20:37:19 +00:00