Commit Graph

657306 Commits

Author SHA1 Message Date
Petru Lingurar
94080c4b79 Bug 1551614 - Call BrowserApp's onCreate() before finish(); r=VladBaicu
Fix for the following scenario:
- "Don't keep activities" checked
- Change system language

Upon detecting a locale change in BrowserApp's onCreate() we would call
finish() and then return before calling super.onCreate().

This patch introdues the call to super.onCreate() before returning and ensures
that the app will die cleanly so that upon restarting Gecko can reinit add-ons
that touch the UI.

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

--HG--
extra : moz-landing-system : lando
2019-06-21 06:24:43 +00:00
Johann Hofmann
90ecafd3e1 Bug 1555963 - Add WindowGlobalParent.getSecurityInfo(). r=nika,mconley
This adds an API for fetching security info per frame, no matter if we have
a certificate error or a valid certificate.

I tried to make this work in a Fission-compatible way, let me know if this
is the right approach.

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

--HG--
extra : moz-landing-system : lando
2019-06-21 05:58:40 +00:00
Tarek Ziadé
a494b08766 Bug 1529022 - Add a GeckoChildProcessHosts iterator r=jld
Adds GeckoChildProcessHost::GetAll() and use it in ChromeUtils::GetProcInfo()

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

--HG--
extra : moz-landing-system : lando
2019-06-21 01:33:47 +00:00
Nils Ohlmeier [:drno]
32b81368a2 Bug 1548679: disable future downloads of OpenH264 for Fennec. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D30939

--HG--
extra : moz-landing-system : lando
2019-06-21 01:00:05 +00:00
Martin Stransky
dad38daa59 Bug 1557265 - Include gbm.h to build Wayland dmabuf backend, r=glandium
Depends on D34857

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

--HG--
extra : moz-landing-system : lando
2019-06-20 21:52:42 +00:00
Martin Stransky
f1bbfe6ec3 Bug 1557265 - Remove HAVE_LIBDRM defines as libdrm is mandatory now, r=glandium
Depends on D33918

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

--HG--
extra : moz-landing-system : lando
2019-06-20 21:52:40 +00:00
Martin Stransky
34e570a249 Bug 1557265 - [Wayland] Require libdrm to build Wayland backend, r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D33918

--HG--
extra : moz-landing-system : lando
2019-06-20 21:51:15 +00:00
meandave
2d0c0574dc Bug 1556158 - Add magnifying glass icon to filter input in about:logins. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D35248

--HG--
extra : moz-landing-system : lando
2019-06-21 00:25:36 +00:00
Noemi Erli
663a1c9ddc Backed out changeset 0a7f56cabe97 (bug 1560211) for failing in browser_startup_mainthreadio.js CLOSED TREE 2019-06-21 03:18:48 +03:00
Noemi Erli
5c199db0b2 Backed out changeset d909b10d7a39 (bug 1560157) for causing build bustages in TextureHostOGL.cpp CLOSED TREE 2019-06-21 02:48:27 +03:00
Johann Hofmann
926df091cf Bug 1555627 - Set a learn more link on net error pages. r=prathiksha
Bug 1284835 removed the hard-coded learn more link on cert and net error pages, which worked
for cert error pages because they explicitly set their own learn more links, but net error
pages were relying on the default href to be set. This wasn't revealed until bug 1530348
made about:neterror part of the new error pages.

The solution is simply to explicitly set the correct learn more link to net error pages.

Note that in the case of PR_END_OF_FILE errors, we were not previously showing a "learn more"
link. That was not intentional, as far as I can tell, but was caused by the bug fixed in bug 1477875.

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

--HG--
extra : moz-landing-system : lando
2019-06-20 23:26:43 +00:00
kriswright
c3a19591ea Bug 1559821 - 2: switch parse task checks for new parse task pointer, cleanup instances of HelperThread() leftover r=jonco
Removed helperthread_ and its associated functions since they are no longer used & cleaned up a few missed checks that used it. Changed helperThread()->parseTask() checks to look for cx->parseTask() instead.

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

--HG--
extra : moz-landing-system : lando
2019-06-20 23:08:59 +00:00
kriswright
e1dfee9d67 Bug 1559821 - teach JSContext about parse tasks r=jonco
Added a ParseTask pointer to JSContext, set/removed during ParseTask::runTask

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

--HG--
extra : moz-landing-system : lando
2019-06-20 22:43:59 +00:00
Jeff Gilbert
32cc8bf833 Bug 1560157 - Remove EGLUtils.h. r=lsalzman
EGLImageWrapper was completely unused.

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

--HG--
extra : moz-landing-system : lando
2019-06-20 23:13:56 +00:00
Jason Orendorff
62e9d98923 Bug 1560206 - Part 3: Add entries to jstests.list for new failing test262 tests. r=khyperia
Differential Revision: https://phabricator.services.mozilla.com/D35444

--HG--
extra : moz-landing-system : lando
2019-06-20 22:53:14 +00:00
Jason Orendorff
cc28c9817f Bug 1560206 - Part 2: Update test262. r=khyperia
Depends on D35442

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

--HG--
rename : js/src/tests/test262/built-ins/TypedArray/stability.js => js/src/tests/test262/built-ins/TypedArray/prototype/sort/stability.js
rename : js/src/tests/test262/language/module-code/instn-resolve-err-syntax_FIXTURE.js => js/src/tests/test262/language/module-code/instn-resolve-err-syntax-1_FIXTURE.js
rename : js/src/tests/test262/language/module-code/instn-resolve-err-reference_FIXTURE.js => js/src/tests/test262/language/module-code/instn-resolve-err-syntax-2_FIXTURE.js
rename : js/src/tests/test262/language/white-space/S7.2_A4.3_T1.js => js/src/tests/test262/language/white-space/comment-multi-form-feed.js
rename : js/src/tests/test262/language/white-space/S7.2_A4.1_T1.js => js/src/tests/test262/language/white-space/comment-multi-horizontal-tab.js
rename : js/src/tests/test262/language/white-space/S7.2_A4.5_T1.js => js/src/tests/test262/language/white-space/comment-multi-nbsp.js
rename : js/src/tests/test262/language/white-space/S7.2_A4.4_T1.js => js/src/tests/test262/language/white-space/comment-multi-space.js
rename : js/src/tests/test262/language/white-space/S7.2_A4.2_T1.js => js/src/tests/test262/language/white-space/comment-multi-vertical-tab.js
rename : js/src/tests/test262/language/white-space/S7.2_A3.3_T1.js => js/src/tests/test262/language/white-space/comment-single-form-feed.js
rename : js/src/tests/test262/language/white-space/S7.2_A3.1_T1.js => js/src/tests/test262/language/white-space/comment-single-horizontal-tab.js
rename : js/src/tests/test262/language/white-space/S7.2_A3.5_T1.js => js/src/tests/test262/language/white-space/comment-single-nbsp.js
rename : js/src/tests/test262/language/white-space/S7.2_A3.4_T1.js => js/src/tests/test262/language/white-space/comment-single-space.js
rename : js/src/tests/test262/language/white-space/S7.2_A3.2_T1.js => js/src/tests/test262/language/white-space/comment-single-vertical-tab.js
rename : js/src/tests/test262/language/white-space/S7.2_A2.3_T1.js => js/src/tests/test262/language/white-space/string-form-feed.js
rename : js/src/tests/test262/language/white-space/S7.2_A2.1_T1.js => js/src/tests/test262/language/white-space/string-horizontal-tab.js
rename : js/src/tests/test262/language/white-space/S7.2_A2.5_T1.js => js/src/tests/test262/language/white-space/string-nbsp.js
rename : js/src/tests/test262/language/white-space/S7.2_A2.4_T1.js => js/src/tests/test262/language/white-space/string-space.js
rename : js/src/tests/test262/language/white-space/S7.2_A2.2_T1.js => js/src/tests/test262/language/white-space/string-vertical-tab.js
extra : moz-landing-system : lando
2019-06-20 20:31:58 +00:00
Jason Orendorff
a981bc3f46 Bug 1560206 - Part 1: Add new unsupported features to the test262 update script. r=khyperia
Differential Revision: https://phabricator.services.mozilla.com/D35442

--HG--
extra : moz-landing-system : lando
2019-06-20 20:31:53 +00:00
Byron Campen [:bwc]
568b0afffe Bug 1556795: Add some thread assertions, and remove an unused member. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D35049

--HG--
extra : moz-landing-system : lando
2019-06-20 20:24:02 +00:00
Byron Campen [:bwc]
3ecf23e57c Bug 1556795: Simplifications related to DataChannel::mFlags. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D35048

--HG--
extra : moz-landing-system : lando
2019-06-20 20:24:00 +00:00
Byron Campen [:bwc]
a2d135b8fe Bug 1556795: Allocate stream ids as soon as client/server is negotiated, and try to negotiate id limit increases after. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D35047

--HG--
extra : moz-landing-system : lando
2019-06-20 20:23:57 +00:00
Byron Campen [:bwc]
5f86ad9057 Bug 1556795: Re-enable some web-platform-tests related to DataChannel ids. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D35046

--HG--
extra : moz-landing-system : lando
2019-06-20 20:23:55 +00:00
Jed Davis
d9d1bec632 Bug 1479960 - Add unit tests for shared memory freezing. r=froydnj
Also refactor SharedMemoryBasic::SystemProtect to allow testing cases
that are expected to fail.

Depends on D26748

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

--HG--
rename : ipc/moz.build => ipc/gtest/moz.build
extra : moz-landing-system : lando
2019-06-20 22:40:46 +00:00
Jed Davis
1388eadfff Bug 1536697 - Fix error handling in base::SharedMemory::Map. r=froydnj
If mmap failed, we'd leave the memory_ member variable set to MAP_FAILED,
but everything else in this file checks for nullptr (and only nullptr) to
test if the pointer is valid.

Also, this removes the debug assertion that the mmap succeeded, to allow
writing unit tests where we expect it to fail (e.g., for insufficient
permissions).

Depends on D26747

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

--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:44 +00:00
Jed Davis
142fe6ae22 Bug 1426526 - Remove references to the old Chromium temporary file prefix. r=gsvelto,florian
With the removal of the old Chromium file_util code, we should no longer
be using temporary files with names starting with "org.chromium.", so the
crash reporter and main thread I/O test no longer need to recognize that
prefix.

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

--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:42 +00:00
Jed Davis
5c3a0a30d3 Bug 1426526 - Delete file_util from ex-Chromium IPC source. r=froydnj
Depends on D26746

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

--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:40 +00:00
Jed Davis
67a30a842d Bug 1479960 - Convert MemMapSnapshot to use frozen shared memory. r=kmag
Depends on D26745

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

--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:38 +00:00
Jed Davis
406448ffe1 Bug 1479960 - Give SharedStringMap a magic number so that all zeroes isn't a valid instance. r=kmag
There was a strange bug when converting SharedStringMap to use shared
memory: on Android, some tests would fail because a pref wasn't set or
there was something wrong with an expected error message.  The root
cause was that mapping ashmem with MAP_PRIVATE results in all zeroes
(see bug 1525803), but that was read as a valid SharedStringMap with
length 0.

To prevent any possible future issues like that, this patch adds a
nonzero magic number to the header.  It fits into padding on 64-bit and
the cost of setting and checking it should be essentially free.

Depends on D26744

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

--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:36 +00:00
Jed Davis
73345f53d2 Bug 1479960 - Make AutoMemMap not fstat() the mapped object if it doesn't need to. r=kmag
One problem with using shared memory instead of files for MemMapSnapshot
is that AutoMemMap was trying to use fstat() to obtain the object size;
that doesn't work with ashmem on Android and was causing problems with
the Mac sandbox, but it's not necessary, because we already know the
size.  This patch changes it to not do that.

Depends on D26743

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

--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:34 +00:00
Jed Davis
b1c82b278b Bug 1479960 - Add freezing of IPC shared memory. r=froydnj,kmag
This allows writing to shared memory and then making it read-only before
sharing it to other processes, such that a malicious sandboxed process
cannot regain write access.  This is currently available only in the
low-level base::SharedMemory interface.

The freeze operation exposes the common subset of read-only shared
memory that we can implement on all supported OSes: with some APIs
(POSIX shm_open) we can't revoke writeability from existing capabilies,
while for others (Android ashmem) we *must* revoke it.  Thus, we require
that the writeable capability not have been duplicated or shared to
another process, and consume it as part of freezing.  Also, because in
some backends need special handling at creation time, freezeability must
be explicitly requested.

In particular, this doesn't allow giving an untrusted process read-only
access to memory that the original process can write.

Note that on MacOS before 10.12 this will use temporary files in order to
avoid an OS security bug that allows regaining write access; those OS
versions are no longer supported by Apple (but are supported by Firefox).

Depends on D26742

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

--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:32 +00:00
Jed Davis
80496e3984 Bug 1479960 - Fix the main thread I/O tests to handle the IPC shared memory changes. r=florian
The tests for unexpected main thread I/O had exemptions for the specific
paths that were being used for shared memory, which would cause it to
fail with the changes in this bug.  This patch does two things:

1. On Linux, /dev/shm is always tmpfs (a memory filesystem), so it's not
going to cause disk I/O, and it's used by glibc to implement the POSIX
standard shm_open API.  This allows all /dev/shm paths instead of
limiting it to a hard-coded prefix.

2. On MacOS, with the patches in this bug, we'll no longer use temporary
files for shared memory on current OS versions, but we still need them on
older versions to avoid an OS bug (https://crbug.com/project-zero/1671),
and they are backed by disk in this case, so we want to allow only the
IPC files.  However, the path prefix has changed.

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

--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:30 +00:00
Jed Davis
0a231ee919 Bug 1479960 - Clean up shared_memory_posix error handling. r=froydnj
This uses RAII to handle error-case cleanup in the POSIX backend for
SharedMemory::Create, to simplify the complexity that will be added to
support freezing.

Depends on D26741

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

--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:28 +00:00
Jed Davis
6559e7ab1f Bug 1479960 - Fix max_size in shared_memory_posix. r=froydnj
The Unix backend for shared memory needs to keep the mapped size to pass
to munmap, while the Windows backend doesn't.  Currently it's reusing the
max_size field, and then zeroing it when it's unmapped, which breaks the
freezing use case.  This patch uses a dedicated field for that.

Depends on D26740

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

--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:21 +00:00
Jed Davis
3c945a3e99 Bug 1479960 - Get rid of base::SharedMemory::handle. r=froydnj
Despite the comment saying not to use the "handle" except as an opaque
identifier, it is being used to pass the handle to other OS APIs.  Direct
access to the handle needs to be controlled to make sure freezing is
safe, so this patch replaces that with interfaces that are more explicit
about ownership and lifetime.

Depends on D26739

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

--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:19 +00:00
Jed Davis
b916fc745c Bug 1479960 - Remove SHM_ANON support. r=froydnj
FreeBSD's SHM_ANON is useful for the usual case of shared memory, but it
doesn't support freezing.  It could be re-added later, but for now it's
simplest to remove it (and use named shm instead) while refactoring.

Depends on D26738

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

--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:17 +00:00
Jed Davis
d32b9ba525 Bug 1534780 - Add free interconversion between UniqueFileHandle and ipc::FileDescriptor and use it in a few places. r=froydnj
Now that UniqueFileHandle can be used more widely, and with
ipc::FileDescriptor being essentially a copyable UniqueFileHandle, it
makes sense to add a move constructor and a "forget"-like method to
convert between them when needed.

Depends on D26737

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

--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:15 +00:00
Jed Davis
35bc3bb540 Bug 1534780 - Move ipc::FileDescriptor's UniquePtr instance into MFBT as UniqueFileHandle. r=froydnj
MozReview-Commit-ID: 7bbGVIjTTaJ

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

--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:13 +00:00
Boris Zbarsky
50150d0231 Bug 1559468 part 2. Move JS_DefineProfilingFunctions into dom::CreateGlobal. r=mccr8
Various callers either already call it or should but are forgetting to.  The exception is WorkerDebuggerGlobalScope_Binding::Wrap, but it should be OK to set up the profiling functions there too.

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

--HG--
extra : moz-landing-system : lando
2019-06-20 23:07:40 +00:00
Boris Zbarsky
e0bd7114ae Bug 1559468 part 1. Move JS_DefineProfilingFunctions into InitClassesWithNewWrappedGlobal. r=mccr8
All callers of InitClassesWithNewWrappedGlobal already call it.

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

--HG--
extra : moz-landing-system : lando
2019-06-20 21:44:03 +00:00
Noemi Erli
2e091fbe26 Backed out 2 changesets (bug 1559514) for failures in browser_CTP_plugins.js CLOSED TREE
Backed out changeset 157999f49345 (bug 1559514)
Backed out changeset f31cd670c9ac (bug 1559514)
2019-06-21 02:00:18 +03:00
Noemi Erli
2d7f1bd4ea Backed out changeset 52bdbeb64586 (bug 1541278) for failures in browser_markup_html_edit_01.js CLOSED TREE 2019-06-21 01:56:32 +03:00
Cosmin Sabou
55afe30077 Merge mozilla-central to autoland. CLOSED TREE 2019-06-21 01:44:45 +03:00
arthur.iakab
7aa0acd291 Merge mozilla-central to autoland 2019-06-21 01:18:32 +03:00
Cosmin Sabou
49014f945b Merge mozilla-inbound to mozilla-central. a=merge 2019-06-21 01:03:07 +03:00
arthur.iakab
360ae4d7f5 Merge autoland to mozilla-central. a=merge 2019-06-21 00:50:23 +03:00
Gijs Kruitbosch
09d295885a Bug 1557846 - don't localize gfx fallback names in about:support, r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D35466

--HG--
extra : moz-landing-system : lando
2019-06-20 21:24:25 +00:00
Masatoshi Kimura
f9e0ad7f00 Bug 1560081 - Convert CSS pixels to device pixels in CursorForImage. r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D35325

--HG--
extra : moz-landing-system : lando
2019-06-20 20:00:24 +00:00
Myk Melez
d91cc5fa28 Bug 1560211 - reopen env after creating store r=nanj,keeler
Differential Revision: https://phabricator.services.mozilla.com/D35381

--HG--
extra : moz-landing-system : lando
2019-06-20 20:55:19 +00:00
Mathieu Leplatre
4fcd8eaee9 Bug 1559514 - Emit sync event when up-to-date if JSON dump is loaded r=glasserc
Differential Revision: https://phabricator.services.mozilla.com/D35240

--HG--
extra : moz-landing-system : lando
2019-06-20 19:02:31 +00:00
Mathieu Leplatre
5a828c9d6d Bug 1559514 - Emit sync event when JSON dump is loaded from .get() r=glasserc
Differential Revision: https://phabricator.services.mozilla.com/D35239

--HG--
extra : moz-landing-system : lando
2019-06-20 20:45:55 +00:00
Yura Zenevich
c373d8c345 Bug 1559317 - ensure outline is not visible when tbody gets focus on :active. r=mtigley
Depends on D35065

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

--HG--
extra : moz-landing-system : lando
2019-06-20 20:43:58 +00:00