Commit Graph
607047 Commits
Author SHA1 Message Date
Alexandre Poirot b446e32dd9 Bug 1510690 - Do focus the content window from the actor when the toolbox closes. r=nchevobbe
No RDP request should be done when the toolbox closes as there no guarantee that
the request will complete. Instead, such cleanup should be done by the actors.

Differential Revision: https://phabricator.services.mozilla.com/D38309
2019-07-31 08:12:16 +00:00
Bastien Abadie f847c5455b Bug 1569882 - Fix mozlint unit tests for relative path outputs, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D39877
2019-07-30 23:30:15 +00:00
Ting-Yu Lin 755fb9589d Bug 1506293 Part 3 - Add reftests for block-size distribution across column-span split. r=dbaron
* 004a.html and 004b.html test the block-size distribution in balancing mode.

* 005.html tests the block-size distribution in fill mode.

* 006.html is like 004a.html, but it adds a border to the block split by
  column-span. It currently fails due to bug 1523582.

Differential Revision: https://phabricator.services.mozilla.com/D38125
2019-07-27 06:14:07 +00:00
Ting-Yu Lin ac3684f84c Bug 1506293 Part 2 - Fix the block-size distribution across column-span split. r=dbaron
In frame construction, a block can be split by column-spans into several
fragments and each of the fragments is chained together by non-fluid
continuations. Later in reflow, each fragment can create its own fluid
continuations due to reasons such as the constraint of its available
block-size.

The main idea of this patch is that we calculate the block's final
block-size by shrinkwrapping the children for every fragment except for
those fluid continuations after the final column-span. To do that, we
need to correctly tag each non-column-span-wrappers
nsIFrame::HasColumnSpanSiblings() except the last one.

We also need to modify nsSplittableFrame::ConsumedBSize() so that it
includes the block-size for both fluid and non-fluid continuations.

Differential Revision: https://phabricator.services.mozilla.com/D38124
2019-07-30 18:03:25 +00:00
Ting-Yu Lin 006076ee27 Bug 1506293 Part 1 - Use next-in-flows instead of next-continuations when converting overflow containers. r=dbaron
In the beginning of nsOverflowContinuationTracker::Insert() there is an
assertion MOZ_ASSERT(aOverflowCont->GetPrevInFlow()). Assume this is
correct, we should use next-in-flows instead of next-continuations when
converting overflow containers.

The crashtest is not added because the assertion can also be triggered
in the reftests added in Part 3 without this patch.

Differential Revision: https://phabricator.services.mozilla.com/D15392
2019-07-27 06:13:56 +00:00
Gerald Squelart 5f637eb898 Bug 1569515 - Show overhead stats in Profiler tests - r=canaltinova
cppunittest TestBaseProfiler and gtest GeckoProfiler.Markers now show overhead
stats.
(Separate patch, because we may want to remove them after a while.)

Differential Revision: https://phabricator.services.mozilla.com/D39642
2019-07-31 01:28:53 +00:00
Gerald Squelart 2b0b3b1650 Bug 1569515 - Collect overhead stats in ProfileBuffer - r=canaltinova
`ProfileBuffer` is now responsible for collecting overhead stats, and adding
them to the struct returned by `profiler_get_buffer_info()`.

Differential Revision: https://phabricator.services.mozilla.com/D39641
2019-07-31 01:28:51 +00:00
Gerald Squelart 99df3d784d Bug 1569506 - SamplerThread can own a Sampler instead of being one - r=canaltinova
`SamplerThread` inheriting from `Sampler` was a bit confusing, and scary with no
virtual destructor&functions.
`SamplerThread` only uses `Sampler`'s `Disable()` and
`SuspendAndSampleAndResumeThread()` functions, and `SamplerThread` is never
accessed through a `Sampler` reference/pointer.
So `SamplerThread` can just own a `Sampler` to make that relationship clearer.

Differential Revision: https://phabricator.services.mozilla.com/D39640
2019-07-31 01:28:49 +00:00
Paul Bone 4f11db700a Bug 1569840 - Add a nurseryBytes runtime parameter r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D39836
2019-07-31 00:34:15 +00:00
Haik Aftandilian 7e016bd8ac Bug 1563994 - [10.15] Right Click When Not Focused Presents "Keystroke Receiving" Access Grant Request Dialog r=mstange
Use addGlobalMonitorForEventsMatchingMask instead of CGEventTapCreate to monitor for mouse clicks outside of the application while context menus are displayed.

Using addGlobalMonitorForEventsMatchingMask prevents the display of the privacy "Keystroke Receiving" dialog when listening for mouse clicks.

Differential Revision: https://phabricator.services.mozilla.com/D39973
2019-07-31 01:03:49 +00:00
Michael Kaply 0c5437eeaa Bug 1568855 - Setting a new default homepage should switch to Custom URL in prefs. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D39405
2019-07-30 23:34:49 +00:00
Ciure Andrei eab870f25d Bug 1394984 - browser_ext_sessions_window_tab_value.js disabled on debug builds on all platforms due to high frequency failures. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D38954
2019-07-25 08:48:54 +00:00
Greyson Gilbert f45b886b53 Bug 1564293 - Allow efficient slicewise upload of 3D textures r=jgilbert
Before this patch any partial upload to a texture would incur
a zeroing of the texture first to prevent leakage of information.
The texture now tracks, for each image not fully initialized,
which z-slices have been initialized, and only zeroes the rest
of the slices when the texture is used.

Differential Revision: https://phabricator.services.mozilla.com/D37843
2019-07-30 23:32:29 +00:00
Michael Kaply 4ee9264a89 Bug 1568921 - Don't allow addons to be uninstalled from AMO if policy prevents it. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D39902
2019-07-30 23:03:28 +00:00
Nicholas Nethercote 1593b67319 Bug 1568869 - Disallow double definitions in StaticPrefList.yaml. r=glandium
Some double definitions would have caused C++ compile errors, but some would
not, and I'm not even sure what the runtime behaviour would have been in those
latter cases...

The patch also removes a duplicated definition of privacy.resistFingerprinting,
which snuck in recently.

Differential Revision: https://phabricator.services.mozilla.com/D39431
2019-07-30 22:48:41 +00:00
Luke Crouch a7b5c663f5 Bug 1566591: catch and log RemoteSettings errors r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D39824
2019-07-30 19:39:03 +00:00
Jared Wein f35fb7d217 Bug 1562328 - Add https to the img-src in the CSP to allow for displaying Sync avatars. r=MattN,markh
Differential Revision: https://phabricator.services.mozilla.com/D38737
2019-07-30 22:44:46 +00:00
Jared Wein c375cce097 Bug 1562328 - Hook up the enable and options Sync buttons to their respective sites. r=MattN,lina
Differential Revision: https://phabricator.services.mozilla.com/D38736
2019-07-30 22:44:27 +00:00
Jared Wein 58a4c39c84 Bug 1562328 - Hook up Sync's UIState and login sharing pref to Sync button custom element. r=MattN,fluent-reviewers,markh,Pike
Differential Revision: https://phabricator.services.mozilla.com/D38031
2019-07-30 22:44:33 +00:00
Jared Wein 0a8ddbc1ef Bug 1562328 - Custom element for Sync button in header of about:logins. r=fluent-reviewers,MattN,Pike,lina
Differential Revision: https://phabricator.services.mozilla.com/D38001
2019-07-30 22:44:26 +00:00
Gerald Squelart 4ca247ff45 Bug 1569458 - Use mMutex.AssertCurrentThreadOwns() in BlocksRingBuffer - r=gregtatum
This of course checks that the mutex is locked as expected in non-public APIs.
It also checks that user callbacks will not keep readers/writers longer than
they should.

Differential Revision: https://phabricator.services.mozilla.com/D39625
2019-07-30 12:19:55 +00:00
Gerald Squelart 0658afe525 Bug 1569458 - Unify Base Profiler mutexes into one class - r=gregtatum
`BaeProfilerMutex` is a concrete mutex based on MutexImpl, which was previously
implemented twice in both platform.h and BlocksRingBuffer.h.
This combined mutex has some DEBUG code (when MOZ_BASE_PROFILER is #defined) to
catch recursive locking, and to assert that the mutex is held (for code that
cannot easily use the "proof of lock" pattern; e.g., going through user-provided
callbacks).

This class needs to be public (because it is used in public headers), but is an
implementation detail, so it is located in a new header
"mozilla/BaseProfilerDetail.h" that will collect `mozilla::baseprofiler::detail`
code that may be useful to a few files in Base Profiler.

Differential Revision: https://phabricator.services.mozilla.com/D39624
2019-07-30 12:19:54 +00:00
Gerald Squelart b52a47b649 Bug 1567861 - Fix BlocksRingBuffer::ClearBefore() with past-the-end BlockIndex - r=gregtatum
`ClearBefore()` with a past-the-end `BlockIndex` was calling `Clear()`, which
tried to take the lock again! Also we didn't return after that.
Fixed, and added corresponding test.

Also: Removed ambiguous "delete" word, now using more precise "destroy" or
"entry destructor".

Differential Revision: https://phabricator.services.mozilla.com/D38846
2019-07-30 07:24:20 +00:00
Timothy Nikkel 844870cbe0 Bug 1570163. Fix uri for PlacesUtils.jsm. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D39980
2019-07-30 22:37:14 +00:00
Daniel Varga 63df99caaa Merge mozilla-central to autoland. On a CLOSED TREE 2019-07-31 00:56:42 +03:00
Daniel Varga a9529607c7 Merge mozilla-inbound to mozilla-central. a=merge 2019-07-31 00:52:26 +03:00
Daniel Varga c86dcd0ed2 Merge autoland to mozilla-central. a=merge 2019-07-31 00:49:14 +03:00
Kris Maglione f9ef9f57fe Bug 1568035: Follow-up: Skip additional test with new shutdown leaks. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D39971
2019-07-30 21:43:34 +00:00
Mike Hommey d41304844a Bug 1569887 - Use a fetch task artifact to get tup source. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D39849
2019-07-30 16:39:20 +00:00
Mike Hommey 499bfd399e Bug 1569887 - Use a fetch task artifact to get llvm-dsymutil source. r=chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D39848
2019-07-30 21:10:09 +00:00
Mike Hommey 99913a3d54 Bug 1569887 - Use the fetch task artifacts for libdmg-hfsplus. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D39847
2019-07-30 21:09:24 +00:00
Mike Hommey 7eb8eed17c Bug 1569887 - Use the fetch task artifacts for cctools-port/libtapi source. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D39846
2019-07-30 21:08:01 +00:00
Bryce Van Dyk ef3d116bc5 Bug 1566180 - Update Widevine fallback downloader to 4.10.1440.19. r=rhelmer
Update the fallback downloader to make sure it's in step with balrog rules.

Differential Revision: https://phabricator.services.mozilla.com/D39828
2019-07-30 16:03:20 +00:00
James Graham 24ab59501a Bug 1552309 - Avoid timing out with buggy behaviour in IndexedDB test, r=asuth
Ensure that the test returns a result in various error conditions
including databases not being defined, and databases() throwing an
exception. This avoids the test timing out as a failure mode and so
saves some runtime.

Differential Revision: https://phabricator.services.mozilla.com/D31523
2019-07-30 15:54:56 +00:00
Dave Townsend c7b4213f5e Bug 1570019: Verify that nsContentUtils is initialized before calling into it. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D39895
2019-07-30 15:51:17 +00:00
Tom Schuster 2c388af9b0 Bug 1558915 - Use infallible nsIURI::SchemeIs in dom/base. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D39780
2019-07-30 17:51:37 +00:00
Razvan Maries 32e005f742 Merge autoland to mozilla-central a=merge 2019-07-30 18:25:57 +03:00
Mike Hommey 600fd77544 Bug 1569865 - Switch the llvm-dsymutil toolchain task to cloning the llvm-project repo. r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D39837
2019-07-30 13:43:08 +00:00
Mike Hommey 67b22690b1 Bug 1569075 - Rename FileAvoidWrite mode argument. r=chmanchester
It causes confusion because it's the mode used to _read_ the overwritten
file. Make that more obvious by renaming to `readmode`.

Differential Revision: https://phabricator.services.mozilla.com/D39445
2019-07-30 21:03:12 +00:00
Emilio Cobos Álvarez f153aaf577 Bug 1569911 - followup: Update properties database since the order some structs are loaded changed.
MANUAL PUSH: orange
2019-07-30 14:16:48 +02:00
Andreea Pavel d5af3de989 Merge mozilla-central to mozilla-inbound on a CLOSED TREE 2019-07-30 13:41:12 +03:00
Emilio Cobos Álvarez ca3a4f0a0f Bug 1569911 - Fix some issues when importing the previous patches in Gecko.
MANUAL PUSH: Manual cherry-pick of Servo code.
2019-07-30 12:25:12 +02:00
Simon Sapin 5eb1fae44d Bug 1569911 - Servo: Generate apis.html and css-properties.json for docs as part of crates' build scripts. r=nox
… rather than as an extra step after `cargo doc`.
This helps always using the correct set of CSS properties
(for layout 2013 v.s. 2020).

Cherry-picked from: https://github.com/servo/servo/pull/23856
2019-07-30 12:24:10 +02:00
Simon Sapin 69ea3f98fa Bug 1569911 - Stylo: replace product={gecko,servo} with engine={gecko,servo-2013,servo-2020}. r=emilio,nox
Renaming the variable helped make sure I looked at every use.

Cherry-picked from: https://github.com/servo/servo/pull/23856
2019-07-30 12:24:07 +02:00
Simon Sapin c2e637ea84 Bug 1569911 - Servo: Auto-generate CSSStyleDeclaration.webidl for CSS properties based on the style crate. r=nox
Cherry-picked from https://github.com/servo/servo/pull/23856
2019-07-30 12:23:51 +02:00
Nupur Baghel 5b55c08d41 Bug 1569100 - Add GetCookies command and Cookies response types. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D39838
2019-07-30 10:04:00 +00:00
Nupur Baghel 7b32b9f698 Bug 1569100 - Add Cookie, Date types and AddCookie command to Marionette. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D39835
2019-07-30 10:03:20 +00:00
Andreea Pavel 3913bc5f3f Merge mozilla-inbound to mozilla-central a=merge 2019-07-30 12:50:56 +03:00
Tom Schuster 9631de8e9e Bug 1558915 - Use infallible nsIURI::SchemeIs in dom/security. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D39779
2019-07-30 07:23:18 +00:00
James Graham 6dd65fc699 Bug 1533048 - Improve wpt expectation ini error messages, r=ato
Currently we don't always give a useful message and in particular
don't always include the file and line number of the place where the
exception occured in order to give a clue about where the error might
be.

To fix this, if we get an error that isn't a ParseError, wrap it in a
ParseError to give the file and line. Also improve one error message.

Differential Revision: https://phabricator.services.mozilla.com/D22312
2019-07-30 17:46:22 +00:00