Commit Graph

611301 Commits

Author SHA1 Message Date
Aaron Klotz
7cdb379078 Bug 1486901: Part 2 - Set MOZ_LAUNCHER_PROCESS when the launcher process is enabled by default and restarting via LaunchChild; r=mhowell!
This patch causes Firefox processes created via LaunchChild to start via the
launcher process.

While this extra hop through the launcher process takes longer than if we were
to simply make LaunchChild use the same code as the launcher process itself,
I do not want to simply export LauncherProcessMain from firefox.exe, as that
would be too easy to hook into and mess with.

Another option would be to host a second copy of the launcher code inside
xul.dll, but that's less than ideal.

Anyway, until we get that figured out, I don't think it's too big a deal to
have this extra hop in place. I don't think anybody has been clamoring for
faster restarts from the updater or the profile manager.

Depends on D4496

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

--HG--
extra : moz-landing-system : lando
2018-08-28 22:30:39 +00:00
Aaron Klotz
c34b382cb3 Bug 1486901: Part 1 - Allow RunAsLauncherProcess to fall back to environment and command line if the parent process check does not return true; r=mhowell!
Differential Revision: https://phabricator.services.mozilla.com/D4496

--HG--
extra : moz-landing-system : lando
2018-08-28 22:30:30 +00:00
Imanol Fernandez
fab5f04e0f Bug 1483397 - Add media control API so apps can control when media is paused r=snorp,rbarker,jchen
Add a GeckoSession property too specify if media should be suspended when the session is inactive.

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

--HG--
extra : moz-landing-system : lando
2018-08-28 21:55:03 +00:00
Gerald Squelart
bad49db9b0 Bug 1479996 - Combine nsTArray::IndexOf and element access into lambda-friendly functions - r=froydnj
In many places, nsTArray::IndexOf is followed by accessing that element
(hopefully with `Elements() + index`, which skips unnecessary bounds checks.)
But this pattern introduces operations that could be avoided:
- IndexOf converts the address of the found element into an index,
- The caller must test for a special `NoIndex` value,
- On success, accesses convert that index back into the original address.

This patch introduces new 'ApplyIf...' functions that combine all these
operations in a more efficient ensemble: If the sought element is found, it is
passed by reference to a given callable object (usually a lambda); if not
found, another callable is invoked.
Depending on what they need, the first callable may take one of these parameter
lists: (), (size_t), (maybe-const elem_type&), (size_t, maybe-const elem_type&).
On top of removing the pointer->index->pointer operations in most cases,
invoking callables directly from ApplyIf is safer, as the array is guaranteed to
be untouched at this time.
Also, being templates taking function objects, in most cases the compiler should
be able to inline and optimize the search and its callables' code.

This patch gives example uses in nsTArray::Contains, and in
FrameProperties::GetInternal, SetInternal.
And FrameProperties::Has now calls Contains, which is more efficient because
the former code would compute an index (or NoIndex), and then convert that index
to a bool; whereas the new code directly produces a bool from within the search
algorithm.

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

--HG--
extra : moz-landing-system : lando
2018-08-28 22:04:09 +00:00
Ciure Andrei
c7bd3f7ba5 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-29 01:06:58 +03:00
k88hudson
10bda5d290 Bug 1486931 - Fix CFR admin page CFR and add preview method r=ursula
MozReview-Commit-ID: 1RApm3ApcOe

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

--HG--
extra : moz-landing-system : lando
2018-08-28 21:48:29 +00:00
Michael Ratcliffe
f99d1fce0e Bug 1435429 - Android 'mach mochitest' fails: 'A cross-directory support file path noted in a test manifest does not appear in any other manifest.' r=bc,chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D4214

--HG--
extra : moz-landing-system : lando
2018-08-28 20:29:58 +00:00
Byron Campen [:bwc]
2a2903b7fe Bug 1483338: Stop using level as the identifier for media transports. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D3448

--HG--
extra : moz-landing-system : lando
2018-08-28 19:45:58 +00:00
Daniel Holbert
8dbb3d97d6 Bug 1486633: Simplify the logic for updating mWatchID in IDTracker.cpp. r=smaug
Notes:
* NS_Atomize never returns null, so this patch removes a null check on its
  return value.
* There's no need for the |atom| local variable and for our swap() call on it.
  It's equivalent and simpler for us to just directly assign mWatchID, rather
  than to use this disposable local variable.

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

--HG--
extra : moz-landing-system : lando
2018-08-28 21:07:08 +00:00
Johann Hofmann
6dd6bb0909 Bug 1484586 - Update about:privatebrowsing for content blocking. r=Gijs
This makes the about:privatebrowsing display "Content Blocking" instead
of "Tracking Protection" and makes the toggle flip the TP setting for PB
mode as well as the CB pref if it's turned off.

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

--HG--
extra : moz-landing-system : lando
2018-08-28 21:01:19 +00:00
k88hudson
d21e43c53a Bug 1486631 - Add CFR, search shortcut fixes, and bug fixes to Activity Stream r=Mardak,ursula
MozReview-Commit-ID: HZbYyg4FGwi

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

--HG--
extra : moz-landing-system : lando
2018-08-28 20:29:50 +00:00
Ting-Yu Lin
8741a0d774 Bug 1486903 - Add "ftl" command to dump frame subtree to .gdbinit. r=Ehsan
DONTBUILD because NPOTB.

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

--HG--
extra : moz-landing-system : lando
2018-08-28 20:20:21 +00:00
Johann Hofmann
184148d6cb Bug 1485827 - Don't show content blocking shield when no blockers are enabled. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D4450

--HG--
extra : moz-landing-system : lando
2018-08-28 20:23:17 +00:00
Jan Henning
07d61a0e0f Bug 1485833 - Use a backwards compatible way of handling NDK changes in jni.h. r=jchen
When building with the NDK clang, which is the easiest way of building locally,
NDK r17 doesn't work for ARM builds because of a broken clang, and while the
NDK r18-beta fixes that problem, for some people it causes a different set of
issues.
Since NDK r15c doesn't have the ndk-version.h headers, switch to a different
way of bridging the differences that allows people to continue building with
r15c locally.

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

--HG--
extra : moz-landing-system : lando
2018-08-28 20:05:36 +00:00
Andrew Halberstadt
c9cfb100eb Bug 1460856 - [mozlint] Display suppressed warnings count in the summary and stylish formatters r=Standard8
Depends on D3821

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

--HG--
extra : moz-landing-system : lando
2018-08-27 13:37:28 +00:00
Andrew Halberstadt
787fff6a51 Bug 1460856 - [mozlint] Suppress warnings by default r=Standard8,sylvestre
As of this patch, any lint issue at the "warning" level will *only* be displayed
if --warnings is passed in. This gives us some flexibility to track issues that
are "recommended to fix" but that aren't required (aka don't cause a backout).
I think it would be ideal if the reviewbot ran with warnings enabled, and CI
ran without warnings. This way these issues will be surfaced to developers
(and hopefully get fixed prior to landing), but developers will always be able
to ignore them if the situation warrants it.

Since the last change converted everything to use errors, this patch should
be a no-op for now. However as we move forward (and potentially decide that
certain types of lint issues should result in a backout), this feature will
start seeing more and more use.

Depends on D3820

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

--HG--
extra : moz-landing-system : lando
2018-08-27 13:39:46 +00:00
Andrew Halberstadt
2d61b7becb Bug 1460856 - [mozlint] Stop using warnings in all current linters r=Standard8
Soon, warnings will be suppressed by default and won't causes a failure.
Therefore to prevent loss of coverage, we need to make sure that any
lint warning that causes a failure today, needs to be converted to an
error so it keeps failing tomorrow.

Depends on D3819

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

--HG--
extra : moz-landing-system : lando
2018-08-28 19:24:55 +00:00
Arnaud Bienner
cd0338e45e Bug 1481676 - Add AudioWorklet tests to WPT. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D4205

--HG--
rename : testing/web-platform/tests/worklets/paint-worklet-credentials.https.html => testing/web-platform/tests/worklets/audio-worklet-credentials.https.html
rename : testing/web-platform/tests/worklets/paint-worklet-csp.https.html => testing/web-platform/tests/worklets/audio-worklet-csp.https.html
rename : testing/web-platform/tests/worklets/paint-worklet-import.https.html => testing/web-platform/tests/worklets/audio-worklet-import.https.html
rename : testing/web-platform/tests/worklets/paint-worklet-referrer.https.html => testing/web-platform/tests/worklets/audio-worklet-referrer.https.html
rename : testing/web-platform/tests/worklets/paint-worklet-service-worker-interception.https.html => testing/web-platform/tests/worklets/audio-worklet-service-worker-interception.https.html
extra : moz-landing-system : lando
2018-08-27 05:02:59 +00:00
Andrei Lazar
a8f24789f7 Bug 1430122 Custom tab close button is too large compared to the other buttons. r=VladBaicu
Resized the close button manually.

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

--HG--
extra : moz-landing-system : lando
2018-08-27 15:24:57 +00:00
Brian Grinstead
ecede4d0e5 Bug 1469902 - Migrate <tabbox> to a Custom Element;r=dao
MozReview-Commit-ID: HNDiMYmKgkg

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

--HG--
rename : toolkit/content/widgets/tabbox.xml => toolkit/content/widgets/tabbox.js
extra : moz-landing-system : lando
2018-08-28 16:07:28 +00:00
Arshad Kazmi
01d3f08437 Bug 1462678 - Removed unused code from Gecko r=jchen
Differential Revision: https://phabricator.services.mozilla.com/D4295

--HG--
extra : moz-landing-system : lando
2018-08-27 16:44:47 +00:00
Henrik Skupin
0c5d77a181 Bug 1481776 - [geckodriver] Move WebDriver related code into the command module. r=ato
--HG--
extra : rebase_source : ef7a520f8d7a45e84a5309214f4e6603a22c5bfa
2018-08-24 14:23:34 +02:00
Xidorn Quan
9daee9a3a5 Bug 1464723 - Implement custom scrollbar support for GTK widget. r=karlt,dholbert
When any scrollbar color is specified, or scrollbar-width is thin, we
switch to use the fallback rendering.

The change to xulscrollbars.css is for ensuring that the scrollbar is
displayed for scrollbar-width: thin when there is no scrollbar color
specified. It wouldn't affect cases where -moz-appearance takes effect.

This also changes the fallback width of the scrollbars. Since the two
widths was picked rather randomly, I think it should be fine to change
it if a value looks better than the old one, especially on Linux which
is the main usecase for this fallback rendering.

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

--HG--
extra : moz-landing-system : lando
2018-08-24 07:40:07 +00:00
anthony
4e4875fdd6 Bug 1486119 - Pocket: Replace getSystemPrincipal opening new tab with createNullPrincipal r=jkt
Opening a new tab with a hardcoded link with the system utility openWebLinkI
was erroring when passing in getSystemPrincipal. Updating code to pass in a
createNullPrincipal.

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

--HG--
extra : moz-landing-system : lando
2018-08-24 21:48:24 +00:00
arthur.iakab
83d1441dfa Merge mozilla-central to autoland 2018-08-25 01:09:11 +03:00
arthur.iakab
5527acb8d8 Merge inbound to mozilla-central a=merge 2018-08-25 01:08:22 +03:00
arthur.iakab
16c7c33a62 Merge autoland to mozilla-central a=merge 2018-08-25 01:07:22 +03:00
Ting-Yu Lin
987c1af77f Bug 1486074 - Move logic for copying aliased properties' fields to the bottom of property_database.js. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D4247

--HG--
extra : moz-landing-system : lando
2018-08-24 19:05:18 +00:00
Boris Chiou
06a4323ee0 Bug 1246764 - Part 5: Tests. r=jwatt
Add some chrome-only reftests.

Differential Revision: https://phabricator.services.mozilla.com/D3637
2018-08-24 11:37:58 -07:00
Boris Chiou
63d06d8017 Bug 1246764 - Part 4: Rename mask flag and function name of xxxBasicShape to xxxBasicShapeOrPath. r=jwatt
This flag and function name are used for both basic shapes and path function,
so rename it. For now, we treat path() and other basic-shapes as the
different object (i.e. StyleSVGPath and StyleBasicShape), so I rename
these functions and mask flag.

Differential Revision: https://phabricator.services.mozilla.com/D3636
2018-08-24 11:37:57 -07:00
Boris Chiou
7ba34b6df6 Bug 1246764 - Part 3: Layout part for |clip-path: path()|. r=jwatt
Create clip-path for the path function and reuse some APIs in
nsCSSClipPathInstance, so we don't have to update the code flow.

Differential Revision: https://phabricator.services.mozilla.com/D3635
2018-08-24 11:37:55 -07:00
Boris Chiou
a1909a88ff Bug 1246764 - Part 2: Define path() for clip-path. r=emilio
For now, |clip-path: path()| is chrome-only, and not for shape-outside,
so we only implement the parser for clip-path. Besides, I didn't put
path() in BasicShape because path() doesn't use the reference box to
resolve the percentage or keywords (i.e. SVG path only accept floating
point or integer number as the css pixel value). Therefore, I add it into
ShapeSource, instead of BasicShape.

Differential Revision: https://phabricator.services.mozilla.com/D3633
2018-08-24 11:37:53 -07:00
Boris Chiou
2e062cc88c Bug 1246764 - Part 1: Move SVGPathData and its parser into svg_path.rs. r=emilio
SVGPathData will be used by clip-path and offset-path (and/or more on the
properties which support <basic-shape>). Therefore, let's move
SVGPathData out of motion.rs.

Differential Revision: https://phabricator.services.mozilla.com/D3631
2018-08-24 11:37:44 -07:00
Sam Foster
2b03865bc5 Bug 1482271 - Add preferences UI for the DNS over HTTPS mode and uri prefs r=johannh,flod
MozReview-Commit-ID: G10vRxluGCa

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

--HG--
extra : moz-landing-system : lando
2018-08-24 17:54:32 +00:00
Michael Kelly
c6fdfda207 Bug 1484776: Extend Browser Error Collection telemetry to 67. r=francois
Differential Revision: https://phabricator.services.mozilla.com/D3808

--HG--
extra : moz-landing-system : lando
2018-08-24 18:35:51 +00:00
ffxbld
1410bb760a No bug - Tagging mozilla-central 190b827aaa2b5e6fb9af7a0defb238ccc35f8b9e with FIREFOX_BETA_63_BASE a=release DONTBUILD CLOSED TREE 2018-08-24 10:09:20 -07:00
Sebastian Hengst
3e4bb11f44 Bug 1485972 - Set legend-position-relative.html as failing on webrender. r=me NPOTB
--HG--
extra : source : 001816b621d8bd754aa3e6f602f721f1add6d48a
extra : amend_source : a0b20782d80c684ef4d938a8f3a6af237b82c087
2018-08-24 19:38:08 +03:00
Noemi Erli
618a191589 Backed out changeset 001816b621d8 (bug 1485972) for permafailing bug1400716 CLOSED TREE 2018-08-24 20:56:31 +03:00
David Keeler
1cd81e4c5a bug 1485087 - remove the option to use the TLS session cache from nsITLSServerSocket r=jryans,mayhemer
As initially implemented, nsITLSServerSocket by default enabled the use of the
TLS session cache provided by NSS. However, no consumers of nsITLSServerSocket
actually used it. Because it was an option, though, PSM had to jump through some
hoops to a) make it work in the first place and b) not have NSS panic on
shutdown. Furthermore, it meant increased memory usage for every user of Firefox
(and again, nothing actually used the feature, so this was for naught).

In bug 1479918, we discovered that if PSM shut down before Necko, NSS could
attempt to acquire a lock on the session cache that had been deleted, causing a
shutdown hang. We probably should make it less easy to make this mistake in NSS,
but in the meantime bug 1479918 needs uplifting and this workaround is the
safest, most straight-forward way to achieve this.

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

--HG--
extra : moz-landing-system : lando
2018-08-24 16:00:34 +00:00
James Willcox
c9437b2c8e Bug 1485980 - Downgrade test runner packages to match support library r=jchen
Differential Revision: https://phabricator.services.mozilla.com/D4221

--HG--
extra : moz-landing-system : lando
2018-08-24 15:30:30 +00:00
Brian Grinstead
45a1491c02 Bug 1482448 - Part 2 - Run gBrowserInit.onBeforeInitialXULLayout in browser.xhtml;r=Gijs
MozBeforeInitialXULLayout doesn't fire in HTML docs. Even if we change it to
start firing for all top-level docs, it ends up firing _before_ the inline script
runs inside of browser.xul. For now, run that logic in DOMContentLoaded to
at least get a more functional browser window.

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

--HG--
extra : moz-landing-system : lando
2018-08-24 19:43:42 +00:00
Brian Grinstead
2188a68716 Bug 1482448 - Part 1 - Move window listeners for browser.xul into one place;r=Gijs
This is an extension of the work in Bug 1473160 to make clear in what environments
various gBrowserInit functions are run. Since we currently use these in an `if` block
in browser.js for "navigator:browser" window types, and browser.xul is the only
navigator:browser window that loads browser.js, this moves the event listeners directly
into browser.xul so it's extra clear that they don't run in non-browser top level windows on OSX.

Also move a few on-event handlers from the <window> tag into this block so they
all happen in one place.

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

--HG--
extra : moz-landing-system : lando
2018-08-24 19:43:39 +00:00
Johann Hofmann
0309960145 Bug 1485743 - Don't show the Content Blocking tour in private windows. r=francois
Differential Revision: https://phabricator.services.mozilla.com/D4197

--HG--
extra : moz-landing-system : lando
2018-08-24 19:46:07 +00:00
Chris Manchester
986a8ae47f Bug 1485174 - Prevent using an objdir to build with tup that was previously used to build with make. r=firefox-build-system-reviewers,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D4154

--HG--
extra : moz-landing-system : lando
2018-08-24 18:13:20 +00:00
Henri Sivonen
b1e7ee63f3 Bug 1485945 - Set the length instead of capacity of an address string to avoid writing past its logical length. r=valentin
MozReview-Commit-ID: 5anNIW843JJ

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

--HG--
extra : moz-landing-system : lando
2018-08-24 14:05:13 +00:00
Timothy Guan-tin Chien
80558b2dbc Bug 1484544 - Allow focusable element to function on top level video element r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D4169

--HG--
extra : moz-landing-system : lando
2018-08-24 17:37:15 +00:00
Emilio Cobos Álvarez
a86422ddfc Bug 1419939 - Add an env var to precache shaders. r=kvark
I made the variable name up, since I didn't see another similar thing.
Let me know if I should change it.

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

--HG--
extra : moz-landing-system : lando
2018-08-24 16:54:18 +00:00
Francois Marier
cd457cfc82 Bug 1485180 - Instrument invalid download protection hashes. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D3941

--HG--
extra : moz-landing-system : lando
2018-08-24 09:50:16 +00:00
Gijs Kruitbosch
300dbd787f Bug 1485577 - Pass triggeringPrincipal into openDialog for window opening code. r=jkt,Standard8 on a CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D4095

--HG--
extra : source : f83d8d85c94f2d1cab19085ec1662808def93fe9
extra : amend_source : 3a291878cce0ab7b780921f55cb613b14aebd189
2018-08-24 16:20:36 +00:00
Andreea Pavel
7027d36dc6 Backed out changeset 17ffad06d94f (bug 1484030) for failing bc at browser/base/content/test/performance/browser_tabopen.js on a CLOSED TREE 2018-08-24 22:13:01 +03:00