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

691307 Коммитов

Автор SHA1 Сообщение Дата
Doug Thayer 615de231ee Bug 1607505 - Move StartupCache destructor later in shutdown r=froydnj a=reland CLOSED TREE
Since we've decoupled the writing of the StartupCache from the freeing
of the StartupCache's tables (which takes nontrivial time), this patch
moves the StartupCache's destructor later in shutdown so it will be
skipped in the early _exit(0) efforts. There is a remaining
WaitOnWriteThread in the StartupCache's destructor, but this is a
minor sanity check to avoid use-after-frees in the write thread during
shutdown. In general it won't matter as we already wait for the write
thread in the xpcom-shutdown observer, and if we shut down during write,
the system is set up to be okay with that (because it already happens).

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

--HG--
extra : source : d79f1d283acde1a971fe0e5e6f1a8db075f8589a
extra : histedit_source : 32a2b4fec1fcf35960155b0f4280a38bcb54ec19
2020-02-12 19:03:29 +00:00
Doug Thayer f564eb1f40 Bug 1607505 - Start writing StartupCache earlier in shutdown r=froydnj a=reland CLOSED TREE
The initial thought for getting the StartupCache out of the shutdown
path was to simply not write it during shutdown, as it should write
60 seconds after startup, and the theory was that if the user shut
down within the first 60 seconds of use, they were likely updating or
something and it shouldn't matter. However, considering how many of
our users only ever open one tab, I think it's rather likely that
users are starting up firefox to go to a web site, then closing it
when done with that website, and then maybe opening up a new instance
in order to go to a different website. Accordingly it still makes
sense to continue writing it. However, we may as well leverage a
background thread for this and get it kicked off earlier during
shutdown, so we don't sit there blocking in the destructor late
during shutdown.

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

--HG--
extra : source : 7b7b147b6955cee07e0c115993446bfbd59cf7e2
extra : histedit_source : 6990122d6b1ac4939b0e4b0a5e452183fb981e19
2020-02-12 19:02:12 +00:00
Hamzah becd55c159 Bug 1614771 - Run `./mach addtest` with Python 3 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D62541

--HG--
extra : moz-landing-system : lando
2020-02-13 16:56:44 +00:00
Jared Wein d701c66a79 Bug 1582740 - Default the 'Always check' checkbox to disabled until we load the default browser state to prevent accidental user changes. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D62479

--HG--
extra : moz-landing-system : lando
2020-02-13 16:44:28 +00:00
Petru Lingurar a68651c6ab Bug 1611346 - Format mma.rst for a better html conversion; r=AndreiLazar
Currently the sections regarding mma events and deeplinks are not properly
formatted making the text hard to read, follow and understand.
Use the `.. code-block:: json` formatting for Events. Found this in the history
for the previous documentation from central
Add a newline before the deep links bullet list so that each element would be
properly formatted.
Before and after screenshots of the docs are posted in the ticket.

Depends on D62730

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

--HG--
extra : moz-landing-system : lando
2020-02-13 16:11:27 +00:00
Petru Lingurar 429714ebd9 Bug 1611346 - Replace "Fennec" with "Firefox for Android" in mma.rst; r=AndreiLazar
Differential Revision: https://phabricator.services.mozilla.com/D62730

--HG--
extra : moz-landing-system : lando
2020-02-13 16:11:25 +00:00
Chun-Min Chang 0cd564b0ce Bug 1613156 - Update cubeb-coreaudio to 7fe03b4. r=padenot
Pick commits:
- 7fe03b4: Bail out if the output device has no output channel (#50)
- ad74bad: Update README
- 3f38b17: Replace `*.get_mut()` by `*.store()` on all the `Atomic*` (#47)
- b1bc781: Run tests by sanitizers (#46)

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

--HG--
extra : moz-landing-system : lando
2020-02-13 15:52:30 +00:00
Tuan 3fadc6333d Bug 1614139 - Copy constructor of nsPipeInputStream should not be declared explicit. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D62735

--HG--
extra : moz-landing-system : lando
2020-02-13 16:09:09 +00:00
Eden Chuang c3c3233900 Bug 1430182 - Disable dom/serviceworkers/test/test_file_upload.html on android platform r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D62725

--HG--
extra : moz-landing-system : lando
2020-02-13 15:54:21 +00:00
Stepan Stava cc77caf064 Bug 1562724 - Fix "execute getter" button in Debugger Preview popup. r=nchevobbe.
The 'getter button' wasn't working correctly on root level items in the preview popup.
A check is added on root item to see if it has any corresponding evaluation result,
and if so take that value instead of the original one.
A test is added to ensure that the button now works on those top-level elements in
the preview popup.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 15:54:47 +00:00
Dão Gottwald e7bc45dcc6 Bug 1596751 - Make browser_tab_drag_drop_perwindow.js work with fission. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D62751

--HG--
extra : moz-landing-system : lando
2020-02-13 15:17:31 +00:00
Jason Laster f22cd3317d Bug 1605154 - Implement JS execution context selector UI. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D59027

--HG--
extra : moz-landing-system : lando
2020-02-13 15:00:06 +00:00
Julian c23b87e26d Bug 1608215 - port pippki DTD to fluent r=Gijs,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D59635

--HG--
extra : moz-landing-system : lando
2020-02-13 15:27:17 +00:00
Alexandre Poirot d6c35f9bcc Bug 1605763 - Emit 'web-console-created' after the BrowserConsole is fully loaded. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D62719

--HG--
extra : moz-landing-system : lando
2020-02-13 13:50:30 +00:00
Alexandre Poirot 5df0d80f13 Bug 1605763 - Initialize browser console UI before attaching to all process targets. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D58947

--HG--
extra : moz-landing-system : lando
2020-02-13 13:46:20 +00:00
Alexandre Poirot a858951923 Bug 1605763 - Wait for all target-available listeners resolution when calling TargetList.startListeners. r=jdescottes
Doing this helps ensuring that all async work done in panels,
when attaching to the top level target, to fetch already existing resources,
is fully completed before the test ends.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 13:46:13 +00:00
Christian Holler 9614ab7d1f Bug 1615202 - Suppression intermittent XDR race variation in TSan. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D62722

--HG--
extra : moz-landing-system : lando
2020-02-13 14:26:59 +00:00
Christian Holler 3608a5252e Bug 1615184 - Disable intermittent test_ext_cookies.html for TSan. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D62721

--HG--
extra : moz-landing-system : lando
2020-02-13 14:26:48 +00:00
Christian Holler 57dc730d44 Bug 1615228 - Suppress race with base::Thread::Stop(). r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D62720

--HG--
extra : moz-landing-system : lando
2020-02-13 14:27:38 +00:00
Simon Giesecke b50347f917 Bug 1611415 - Prefer using std::move over forget. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-13 14:38:48 +00:00
Ted Campbell 9211d26984 Bug 1615145 - Combine JSScript and LazyScript GC arena. r=jonco
Combine AllocKind::SCRIPT and AllocKind::LAZY_SCRIPT arenas. This impacts
code that scans the arenas directly but required checks were added in a
previous patch.

This removes background finalization of those LazyScript types.

Depends on D62687

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

--HG--
extra : moz-landing-system : lando
2020-02-13 11:49:50 +00:00
Ted Campbell f062c87ca1 Bug 1615145 - Update uses of cellIter<JSScript>. r=jandem
To prepare for merging the LazyScript and JSScript gc-arenas we need to fix
uses of cellIter. This patch adds checks for the BaseScript::isLazyScript
flag. Variable names are also cleaned up to be more consistent.

Note semantics are unchanged and these continues are not currently executed
(as confirmed by making them MOZ_CRASH).

This patch does the naive thing in each case for ease of review. Future
patches will simplify code where possible in order to tolerate a mix of lazy
and non-lazy scripts.

Depends on D62686

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

--HG--
extra : moz-landing-system : lando
2020-02-13 10:34:04 +00:00
Ted Campbell f18e2d81c7 Bug 1615145 - Cleanup use of cellIter in TraceLogger. r=jandem
The ZoneCellIter will already check for finalization so we don't need to
worry about checking again.

Depends on D62681

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

--HG--
extra : moz-landing-system : lando
2020-02-13 10:10:45 +00:00
Ted Campbell 211e335615 Bug 1615143 - Eliminate TraceKind::LazyScript. r=jonco
Now that JSScript and LazyScript share a trace method, we can use a single
TraceKind within the GC. To acheive this we also must remove eager marking of
LazyScripts.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 14:33:33 +00:00
Ted Campbell 432b2a7b18 Bug 1615143 - Move JSScript::lazyScript / LazyScript::script_ to BaseScript. r=jandem
This patch creates a union field in BaseScript to hold either form of
pointer. An IsLazyScript flag is added to ImmutableFlags to know which union
arm to trace. We are also able to use a single trace function for both.
IsLazyScript flag to disambiguate the union arms.

Note that this field will be removed entirely once the JSScript and
LazyScript instances are merged.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 14:32:39 +00:00
Ted Campbell cd00e1a950 Bug 1615143 - Cleanup UBI JSScript size computation. r=jandem
Generalize the code to handle BaseScript types to prepare for eliminating
TraceKind::LazyScript. Also remove JSScript::sizeOfData method in favour of
the equivalent BaseScript::sizeOfExcludingThis.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 09:39:38 +00:00
David Major 5df8b566b9 Bug 1612461 - Translate LLVM_CXXFLAGS's `-std:` to `-std=` for clang-cl r=froydnj,glandium
clang-plugin.dll links against clang.exe so they both need to use the same C++ standard. This is achieved by having build/clang-plugin/moz.build use the flags from llvm-config. However, llvm-config uses the `-std:c++14` format, so our flags end up looking like:
`-Xclang -std=c++17 ... -std:c++14`
and apparently the former wins out in clang's option plumbing, so the compiler still thinks we requested c++17.

This patch makes clang-plugin use the `-Xclang -std=` format so that the override happens as desired.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 06:41:23 +00:00
Samuel Holland 23aebf1035 Bug 1041962 - Include libgen.h for basename r=jseward
Currently, the GNU version of basename from string.h is used, which
has behavior that conflicts with the POSIX version in libgen.h.

The GNU basename is not available in all libcs. In particular, it
is missing in musl libc, causing a build failure:

	error: 'basename' was not declared in this scope

The GNU version has the following implementation:

	char *p = strrchr (filename, '/');
	return p ? p + 1 : (char *) filename;

The POSIX version has slightly different semantics. It may modify
its argument string, or copy part of it to static storage. However,
it will also delete trailing slashes, while the GNU version will
return the empty string if there is a trailing slash.

This change resolves the issue by including libgen.h, adopting POSIX
basename semantics. This should be a safe change for the following
reasons:

- The google-breakpad code, from which this code was derived, has
  also switched to the POSIX basename:
  072f86ca83%5E%21/#F4

- The version of LulElf.cpp in mozglue/baseprofiler has also switched
  to the POSIX basename:
  https://hg.mozilla.org/mozilla-central/annotate/de1c3ae8df14cdb2c94a817b02dcffcb2cee12e2/mozglue/baseprofiler/lul/LulElf.cpp#l54

- The BaseFileName function is called only with paths to ELF files,
  never directories, so the paths will never contain a trailing
  slash, and the two versions of basename will behave identically.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 14:36:09 +00:00
Chris Martin c7f4247786 Bug 1604412 - Enable remote backbuffer GDI compositing r=jmathies,jld
This change adds new "remote backbuffer" logic when compositing without
HW acceleration on Windows (IE compositing through Cairo using the Win32
GDI)

A new piece of shared memory is created between the GPU process and the UI
process, and the GPU process sends requests to the UI process to first "borrow"
a properly-sized buffer to draw into, and then sends a "present" request to
tell the UI process to actually blit the buffer to the Win32 window.

This is needed for the GPU sandbox to work, since Windows rightly doesn't
allow the untrusted GPU process to directly draw the contents of a window
owned by the trusted UI process.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 14:32:37 +00:00
Markus Stange ac0687ac8b Back out bug 1592739 due to multiple regressions (bug 1599366, bug 1601183, bug 1602193). a=backout
Differential Revision: https://phabricator.services.mozilla.com/D62753

--HG--
extra : moz-landing-system : lando
2020-02-13 14:26:51 +00:00
Julien Cristau 147ec7bc5e Backed out changeset 099d6c72046d (bug 1592016) as it depends on bug 1592739. a=backout
Differential Revision: https://phabricator.services.mozilla.com/D62752

--HG--
extra : moz-landing-system : lando
2020-02-13 14:26:46 +00:00
Mark Banner d5fcf8cd50 Bug 1610847 - If the search service receives a configuration with a missing engine, ensure that it continues without errors. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D61644

--HG--
extra : moz-landing-system : lando
2020-02-13 14:25:42 +00:00
Jon Coppeard c5e9e5c6e8 Bug 1615016 - Store isAtomsZone and isSelfHostingZone flags on the Zone r=sfink
Remove some dependencies on JSRuntime by storing flags on the Zone to indicate whether a zone is the atoms zone or the self hosting zone.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 14:25:48 +00:00
James Graham b201f42e88 Bug 1615144 - Fix expectations for MediaRecorder-no-sink.https.html on win aarch64, r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D62747

--HG--
extra : moz-landing-system : lando
2020-02-13 14:12:01 +00:00
Dan Minor 7f1850d512 Bug 1578073 - Suppress MissingPermission lint in Camera2Session; r=snorp
Depends on D61861

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

--HG--
extra : moz-landing-system : lando
2020-02-12 17:19:50 +00:00
Dan Minor cfd00a144e Bug 1578073 - Use updated camera capture code; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61861

--HG--
extra : moz-landing-system : lando
2020-02-11 17:08:15 +00:00
Dan Minor 861b4fb94f Bug 1578073 - Remove native calls in Histogram.java; r=ng
Getting the JNI calls here to work requires a good amount of webrtc.org
machinery. It might be worth setting that up the next time we do an upstream
merge, but for now, it is a lot simpler to just remove the affected code,
given that we are not interested in collecting this data anyway.

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

--HG--
extra : moz-landing-system : lando
2020-02-11 17:07:22 +00:00
Dan Minor 673de7df86 Bug 1578073 - Use CameraEnumerator in createDeviceList; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61858

--HG--
extra : moz-landing-system : lando
2020-02-11 17:07:00 +00:00
Dan Minor 5690794a0f Bug 1578073 - Fix include paths for android video capture; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61857

--HG--
extra : moz-landing-system : lando
2020-02-11 17:06:37 +00:00
Dan Minor a8cd129226 Bug 1578073 - Update generated video capture moz.build file; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61856

--HG--
extra : moz-landing-system : lando
2020-02-11 17:06:09 +00:00
Dan Minor 34429eea6a Bug 1578073 - Update gn generated json files; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61855

--HG--
extra : moz-landing-system : lando
2020-02-11 17:06:00 +00:00
Dan Minor f7ae08ef60 Bug 1578073 - Remove android video capture from BUILD.gn; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61854

--HG--
extra : moz-landing-system : lando
2020-02-11 17:04:54 +00:00
Dan Minor 3365bef70f Bug 1578073 - Add android_video_capture to moz.build; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61853

--HG--
extra : moz-landing-system : lando
2020-02-11 17:04:29 +00:00
Dan Minor 2388bf1ad9 Bug 1578073 - Fix warning: [cast] redundant cast to int; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D61852

--HG--
extra : moz-landing-system : lando
2020-02-11 17:04:04 +00:00
Dan Minor edf731c011 Bug 1578073 - Update build.gradle for new android camera code; r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D61851

--HG--
extra : moz-landing-system : lando
2020-02-11 17:03:36 +00:00
Dan Minor 8d69b72363 Bug 1578073 - Move android video capture code to dom/media/systemservices; r=jib
Although originally part of webrtc.org, this code has subsequently been
removed by upstream. Moving it to under dom/media should make it clearer that
this is code that we are maintaining and simplify future upstream merges.

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

--HG--
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/device_info_android.cc => dom/media/systemservices/android_video_capture/device_info_android.cc
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/device_info_android.h => dom/media/systemservices/android_video_capture/device_info_android.h
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/CaptureCapabilityAndroid.java => dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/CaptureCapabilityAndroid.java
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/VideoCaptureAndroid.java => dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/VideoCaptureAndroid.java
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/VideoCaptureDeviceInfoAndroid.java => dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/VideoCaptureDeviceInfoAndroid.java
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/video_capture_android.cc => dom/media/systemservices/android_video_capture/video_capture_android.cc
rename : media/webrtc/trunk/webrtc/modules/video_capture/android/video_capture_android.h => dom/media/systemservices/android_video_capture/video_capture_android.h
extra : moz-landing-system : lando
2020-02-11 17:03:13 +00:00
Dan Minor 90a9c5e77e Bug 1578073 - Add newer webrtc.org android camera code; r=ng
This is an import of the Android camera code as of upstream revision
26762d0425ffd15af9ddc3ae669373668827ea00 (Dec 20, 2019). This takes just the
files required to build the camera related classes.

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

--HG--
extra : moz-landing-system : lando
2020-02-11 17:02:41 +00:00
Mirko Brodesser 79b875cc33 Bug 1615226: avoid heap allocating `ContentSubtreeIterator` in `RangeSubtreeIterator`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D62716

--HG--
extra : moz-landing-system : lando
2020-02-13 13:36:11 +00:00
Csoregi Natalia b5e04bbb01 Backed out changeset fb7235b2a1b3 (bug 1603484) for permafailing on shared-worker-import-data-url.any.html. CLOSED TREE 2020-02-13 15:46:32 +02:00
James Graham 295c3313ab Bug 1614674 - Poll for load in CSP frame-ancestors tests, r=bzbarsky
These tests are all timing out in Firefox because we don't send either
a load or an error event for CSP-blocked loads. To work around this,
poll the iframe for the load, assuming it's complete when we see a
non-about:blank document with readyState complete (or an exception
from trying to access a cross-origin resource).

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

--HG--
extra : moz-landing-system : lando
2020-02-13 13:34:22 +00:00