Commit Graph

673905 Commits

Author SHA1 Message Date
Michael Kaply
d3547ee818 Bug 158968 - Implement kiosk mode. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D41848

--HG--
extra : moz-landing-system : lando
2019-10-04 19:47:56 +00:00
Andrew Halberstadt
f80662b1b5 Bug 1585702 - [lint] Remove temporary hacks now that 'null character' issue is fixed, r=gbrown
Depends on D48113

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

--HG--
extra : moz-landing-system : lando
2019-10-04 19:13:04 +00:00
Andrew Halberstadt
cb2eb80652 Bug 1585702 - [mozprocess] Fix "Embedded null character" error in Windows with Python 3, r=gbrown
This works around a bug in Python:
https://bugs.python.org/issue32745

Null characters aren't allowed in 'c_wchar_p' types anymore, but we can get around
the issue by allocating a buffer in memory and casting it after the fact. This was
discovered via trial and error and I'm not really sure why it works.. But it does.

This also enables the tests under Python 3 on Windows (which thankfully all
seem to pass).

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

--HG--
extra : moz-landing-system : lando
2019-10-04 17:46:38 +00:00
Anmol Agarwal
d2dbcf8eba Bug 1433941 - Passed remainder arguments as it is |mach python-test| r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D47832

--HG--
extra : moz-landing-system : lando
2019-10-04 18:32:37 +00:00
Tom Ritter
5b875f2afd Bug 1576254 - Add isSystemOrAddonPrincipal to RustJSPrincipal r=luke
RustJSPrincipal is used in Servo; we just return the conservative value of 'false'.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 17:38:03 +00:00
Tom Ritter
117e232bdc Bug 1576254 - Add isSystemOrAddonPrincipal to JSPrincipal and nsJSPrincipals r=luke
Finally, here we add the virtual method isSystemOrAddonPrincipal to the
JSPrincipal object.

We also add it to nsJSPrincipal (where it has an easy implementation), and
to carry classes that are used by JS tests and the shell.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 17:37:36 +00:00
Tom Ritter
cdd2029b79 Bug 1576254 - Cut WorkerPrincipal over to a real object and implement isSystemOrAddonPrincipal r=baku
Unlike WorkletPrincipal, a WorkerPrincipal had been a simple static object shared by
all Workers. We never needed to consult it about an individual Worker before. Now we
do. So we cut it over from a static object to individual objects for each Worker.

We have an off main thread access problem for the Principal however, WorkerPrivate
has a method UsesSystemPrincipal that returns a bool that was initialized from the
Principal on the main thread. We copy that pattern and add a
UsesAddonOrExpandedAddonPrincipal method that will be called by the
isSystemOrAddonPrincipal method we must implement so we can inheirt from JSPrincipal.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 17:37:09 +00:00
Tom Ritter
446f05f035 Bug 1576254 - Add isSystemOrAddonPrincipal to WorkletPrincipal r=baku
WorkletPrincipal inherits JSPrincipals so we need to add the isSystemOrAddonPrincipal
method to it. As of Bug 1578623 rev a83797ed249c - Worklets are always NullPrincipal,
so we can just return false.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 17:36:40 +00:00
Tom Ritter
cac810aea7 Bug 1576254 - Update wasmForTrustedPrinciples to use a separate pref r=luke
Differential Revision: https://phabricator.services.mozilla.com/D47474

--HG--
extra : moz-landing-system : lando
2019-10-04 17:36:08 +00:00
Tom Ritter
754ebbc4d7 Bug 1576254 - Add a wasmForTrustedPrinciples bool onto ContextOptions that (currently) behaves the exact same as the wasm bool r=luke
In a future commit we will tie this boolean to its own preference value, but here we
initialize it with the same value as the wasm boolean.

We also update wasm::HasSupport to check the to-be-added isSystemOrAddonPrincipal()
method on JSPrincipals to determine which member (wasm or wasmForTrustedPrinciples)
to consult.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 17:35:46 +00:00
Tom Ritter
206eea6eb4 Bug 1576254 - Move Clamping and Jittering from RealmCreationOptions to Behaviors r=luke
CreationOptions are intended to be immutable and not change during realm operation.
Behaviors change, and clamping/jittering should reside on behaviors.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 17:35:26 +00:00
Dão Gottwald
ecd4680f9a Bug 1586232 - Animate the megabar with transforms only r=mak
Differential Revision: https://phabricator.services.mozilla.com/D48164

--HG--
extra : moz-landing-system : lando
2019-10-04 18:33:15 +00:00
Tom Ritter
a74bcb566f Bug 1585353 - Revert Bug 1440013 and remove the -mbig-obj flag for MinGW r=dmajor
mingw-gcc is no longer supported.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 18:23:15 +00:00
Tom Ritter
40c0ddaa36 Bug 1585355 - Back out (part of) Bug 1443823, removing -fno-keep-inline-dllexport which was only applied to mingw-gcc r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D48071

--HG--
extra : moz-landing-system : lando
2019-10-03 16:01:26 +00:00
Greg Tatum
bdf72887ea Bug 1580469 - Create end to end profile capture tests; r=julienw
This patch creates the first full mochitest that exercises the profiler
popup's mechanisms of capturing profiles. The test tries to use user-focused
mechanisms–clicking buttons to fully capture a profile.

In addition, it fixes two leaks that were uncovered by the leaktest check.
The first has to do with the iframe src creating an about:blank page when
set to an empty string. The next was the Services.obs.addObserver call
in the perfFrontInterface not being removed when the page was unloaded.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 18:23:48 +00:00
Greg Tatum
47016d67d0 Bug 1581975 - Factor out the getSymbolsTable browser code from client code; r=julienw
The popup's shortcuts use a different codepath than the popup's buttons.
When using the buttons, the profile was not being captured as a gzipped
profile, and it was using the DevTools' mechanism for getting the symbol
tables. This patch makes the getSymbolTables mechanism configuring in the
recording panel's client.

In addition, browser code made its way into the client. This patch moves
the browser code to all be in browser.js to match the original code
organization for the panel, which was trying to keep browser APIs
out of the React components and Redux store.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 18:17:43 +00:00
Morgan Reschenberg
05ad28e67c Bug 1539212: Add readability backplate for all elements containing text when HCM or a11y theme is active. r=dholbert,mattwoodrow,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D42979

--HG--
extra : moz-landing-system : lando
2019-10-04 16:44:49 +00:00
Gurzau Raul
5c3ecc9909 Backed out changeset be7c53bea22d (bug 1586336) for reftest failures at accesskey.xul on a CLOSED TREE. 2019-10-04 21:22:07 +03:00
Emma Malysz
337d6db7d1 Bug 1585727, ensure browser_preferences_usage.js is fission compatible r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D47945

--HG--
extra : moz-landing-system : lando
2019-10-04 18:09:01 +00:00
Luke Crouch
cda6d84e6e Bug 1586354: add install permission for new proxy domain r=baku
Differential Revision: https://phabricator.services.mozilla.com/D48207

--HG--
extra : moz-landing-system : lando
2019-10-04 18:04:06 +00:00
James Willcox
99e172a1ac Bug 1577003 - Update CHANGELOG.md and API description r=geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D47484

--HG--
extra : moz-landing-system : lando
2019-10-04 17:54:43 +00:00
James Willcox
d45e43febe Bug 1577003 - Make naming consistent in GeckoView autofill bits r=geckoview-reviewers,agi,esawin
Differential Revision: https://phabricator.services.mozilla.com/D48066

--HG--
rename : mobile/android/modules/geckoview/GeckoViewAutoFill.jsm => mobile/android/modules/geckoview/GeckoViewAutofill.jsm
extra : moz-landing-system : lando
2019-10-04 17:55:54 +00:00
James Willcox
e4bf4e9cdc Bug 1577003 - Handle Android autofill service in GeckoView class r=geckoview-reviewers,esawin
This also adds `GeckoView.setAutofillEnabled()`, which is enabled by
default. Apps can disable this if they don't want to use the Android
autofill service. This will allow them to set their own
`AutofillDelegate` on the `GeckoSession` and provide their own
autofill implementation.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 17:54:39 +00:00
James Willcox
e1ff7e07eb Bug 1577003 - Add GeckoSession.getAutofillElements() r=geckoview-reviewers,esawin,agi
This is an alternative to `GeckoSession.provideAutofillVirtualStructure()`
that does not rely on the `ViewStructure` class. This is necessary to
support autofill functionality on older devices or without involving
the Android autofill service.

This patch also moves the existing autofill tests into
AutofillDelegateTest.kt and converts them to use this new API
instead of the `ViewStructure` one. This allows us to test on devices
lower than SDK 26 (which includes automation). In addition to the API
changes, some tests also needed some greening up.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 17:55:26 +00:00
James Willcox
05c1575597 Bug 1577003 - Move autofill stuff from TextInputDelegate into AutofillDelegate r=geckoview-reviewers,agi,esawin
This also moves `autofill()` and `provideAutofillVirtualStructure()`
into `GeckoSession`.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 17:54:36 +00:00
Tarek Ziadé
8d375d387b Bug 1583615 - use internal PyPI - r=rwood
Use internal PyPI everywhere we can.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 17:44:08 +00:00
Ed Lee
6272276bf4 Bug 1585734 - [lint] Make sure codespell, rst and yaml run with virtualenv python r=ahal
Use mozfile.which to get the correct python for this environment.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 17:45:39 +00:00
Gregory Mierzwinski
5694febebf Bug 1586346 - Remove duplicate pref setting in raptor's user.js file. r=perftest-reviewers,stephendonner
There is a duplicate setting for a pref in raptor's user.js file. This patch removes the duplicate.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 17:18:03 +00:00
Ed Lee
e18baa4615 Bug 1586093 - Add engagement pref, join variant and bug fixes to New Tab Page r=k88hudson,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D48110

--HG--
extra : moz-landing-system : lando
2019-10-04 17:06:01 +00:00
Dana Keeler
67fc934d4b bug 1570222 - avoid passing unrelated certificates to mozilla::pkix from NSSCertDBTrustDomain r=kjacobs
During path building, mozilla::pkix filters out candidate certificates provided
by trust domains where the subject distinguished name does not match the issuer
distinguished name of the certificate it's trying to find an issuer for.
However, if there's a problem decoding the candidate issuer certificate,
mozilla::pkix will make a note of this error, regardless of if that certificate
was potentially a suitable issuer. If no trusted path is found, the error from
that unrelated certificate may ultimately be returned by mozilla::pkix,
resulting in confusion.

Before this patch, NSSCertDBTrustDomain could cause this behavior by blithely
passing every known 3rd party certificate to mozilla::pkix (other sources of
certificates already filter on subject distinguished name). This patch adds
filtering to 3rd party certificates as well.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 16:46:08 +00:00
Dan Minor
5ca5bdf957 Bug 1559011 - Try using PW_RENDERFULLCONTENT for Windows window capture; r=pehrsons
This is a partial cherrypick of https://webrtc.googlesource.com/src/+/f89110d67902e787f6745ad2b52f7f09fc808512.
The cropping changes in that revision are problematic on our version of webrtc.org and
result in distorted video, which looks as though there is a stride problem. This takes
the change to try to use PW_RENDERFULLCONTENT and to fall back to the current code if
that fails. This fixes capturing Chrome windows and allows Firefox to properly capture
its own window.

Using PW_RENDERFULLCONTENT can adversely affect performance. Using the
CroppingWindowCapturer can avoid using the WindowCapturer in some circumstances and so
result in better performance. Bug 1586071 tracks switching to the
CroppingWindowCapturer.

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

--HG--
extra : moz-landing-system : lando
2019-10-03 19:47:07 +00:00
Emma Malysz
e4eba2b24f Bug 1586337, Replace XUL textbox with HTML input in testcases within editor directory r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D48100

--HG--
extra : moz-landing-system : lando
2019-10-04 16:30:10 +00:00
Emma Malysz
4571ec4874 Bug 1586336, Replace XUL textbox with HTML input in testcases within layout directory r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D48126

--HG--
extra : moz-landing-system : lando
2019-10-04 16:27:49 +00:00
shindli
6b69a26a4e Backed out changeset ed94e4749e4d (bug 1586205) for causing linting failure in /builds/worker/checkouts/gecko/mobile/android/base/java/org/mozilla/gecko/mma/LeanplumVariables.java CLOSED TREE 2019-10-04 19:30:14 +03:00
shindli
aa2d84960f Backed out changeset e206bc685749 (bug 1232403) for causing a linting failure CLOSED TREE 2019-10-04 19:28:59 +03:00
Vlad Baicu
0e1885d861 Bug 1586205 - Change LP variables to fallback to same nonLP defaults.r=petru
Differential Revision: https://phabricator.services.mozilla.com/D48184

--HG--
extra : moz-landing-system : lando
2019-10-04 14:32:40 +00:00
Erik Rose
0c37cdf48a Bug 1232403 - Upgrade to sphinx-js 2.8. r=ahal
This should fix the doc builds on Windows, as sphinx-js added Windows support in 2.3.1 and 2.4. We also now get support for variadic args, @deprecated, and @see, along with other features.

sphinx-js 2.7.1 changed the default cwd to be the one containing conf.py, so I also had to twiddle `jsdoc_config_path`.

Let some other pipenv pinnings update themselves as well, as, if I don't, they'll just update themselves the next time somebody runs `mach doc`, dirtying their tree.

I suspect this also fixes bug 1556460, whose equivalent bug in sphinx-js is https://github.com/mozilla/sphinx-js/issues/106. IOW, it should no longer break with versions of jsdoc >= 3.6.

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

--HG--
extra : moz-landing-system : lando
2019-10-03 21:21:29 +00:00
Perry Jiang
80457898fd Bug 1456995 - expectation changes for WPTs running under sw-e10s r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D46902

--HG--
extra : moz-landing-system : lando
2019-10-04 15:28:35 +00:00
Perry Jiang
c4528c3537 Bug 1456995 - reduce access levels for member variables/methods in ServiceWorkerManager r=asuth
The changes are just cleanup for member variables/methods that should
be private to ServiceWorkerManager.

Depends on D48179

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

--HG--
extra : moz-landing-system : lando
2019-10-04 15:28:35 +00:00
Perry Jiang
ec209ccb5c Bug 1456995 - shutdown unregistered Service Workers on browser shutdown r=asuth
Also replace ServiceWorkerManager shutdown logic's normal for-loops with
range-based for-loops.

Depends on D43170

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

--HG--
extra : moz-landing-system : lando
2019-10-04 15:28:35 +00:00
Perry Jiang
278a5d0501 Bug 1456995 - enable Service Workers' parent-intercept mode on Nightly r=asuth,jgraham
Due to limitations in the test harness, the "serviceworker_e10s" (for mochitest
and xpcshell) and "sw-e10s" (for WPT) values will match mozinfo's "nightly_build"
value, unless overridden by "--setpref dom.serviceWorkers.parent_intercept=..."
provided at the CLI.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 14:34:48 +00:00
Perry Jiang
093f60ebb3 Bug 1456995 - give InternalRequest::mMozErrors a default initializer r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D44514

--HG--
extra : moz-landing-system : lando
2019-10-04 14:36:14 +00:00
Perry Jiang
1c644236c6 Bug 1456995 - make browser_devtools_serviceworker_interception.js compatible with parent-intercept r=asuth
- Listen for observer topics in the parent-process when in parent intercept mode
- Remove an extra postMessage call (and the corresponding message handler)

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

--HG--
extra : moz-landing-system : lando
2019-10-04 13:16:28 +00:00
Andrew Halberstadt
9067e54ba4 Bug 1586010 - [mozversioncontrol] Ensure env in appropriate format for subprocess, r=chmanchester
Environment should be bytes on Python 2 (to avoid Windows errors) and text on
Python 3. The 'ensure_subprocess' env utility function handles this.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 15:48:24 +00:00
Harry Twyford
c70b0f040f Bug 1586287 - Reduce megabar horizontal padding and margins. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D48185

--HG--
extra : moz-landing-system : lando
2019-10-04 15:13:45 +00:00
Bryce Seager van Dyk
920eedb463 Bug 1586043 - Gracefully handle IPC failure when checking if MediaKeySystemAccess is allowed on Windows. r=dminor
Because it's possible to have the IPC fail when checking if MediaKeySystemAccess
should be allowed, we should gracefully handle the IPC failure case. If we don't
gracefully handle here, closing the tab during requestMediaKeySystemAccess can
result in crashing the content process.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 15:10:22 +00:00
Geoff Brown
f3c3cef387 Bug 1584692 - Increase max-run-time for win7 xpcshell opt; r=bc
Avoid intermittent task timeouts.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 15:39:48 +00:00
Haik Aftandilian
c0f7925547 Bug 1578907 - MacOS 10.15 Beta - Flash File Picker broken r=spohl
Allow access to extra services needed to open file pickers from the Flash process on 10.15.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 15:38:07 +00:00
Narcis Beleuzu
dd05f33268 Backed out changeset 0acda2d61aac (bug 1586093) for bc failures on browser_onboarding_rtamo.js. CLOSED TREE 2019-10-04 18:57:50 +03:00
Narcis Beleuzu
63d8758e03 Bug 1586246 - Fix linting on bug_1586246_migration.py. CLOSED TREE
--HG--
extra : histedit_source : 8d45d1950e08022b38c859581ae67992cfbfd364
2019-10-04 18:20:22 +03:00