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

715686 Коммитов

Автор SHA1 Сообщение Дата
Markus Stange f010294547 Bug 1647911 - Use text markers for payload presented markers. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D80946
2020-06-29 22:41:20 +00:00
Jed Davis 0940e5ba82 Bug 1640345 - Add a hidden pref to prevent sandboxed content processes from connecting to the X server. r=gcp
This adds the boolean pref security.sandbox.content.headless (on Linux
only) which does two things:

1. Sets the MOZ_HEADLESS env var for content processes, so that they
don't initialize GTK and don't connect to the X server.

2. Disallows brokered access to parts of the filesystem used only for
graphics -- most critically connecting to the X11 socket itself, but
also opening GPU device nodes and the parts of sysfs used by Mesa, for
example.

This is experimental; use at your own risk.

Setting this pref will break native widgets, so it's also necessary to
set widget.disable-native-theme-for-content

Additionally, it breaks Flash and WebGL; see bug 1638466 for the latter.

Differential Revision: https://phabricator.services.mozilla.com/D81425
2020-06-29 22:32:10 +00:00
Jed Davis 172a1b1ced Bug 1644917 - Part 2: Cache as much of the content sandbox file policy as possible. r=gcp
Now that filesystem broker policy entries that depend on prefs can be
cached in the "common" policy object, let's do this wherever possible.
Should also fix bug 1621231.

Differential Revision: https://phabricator.services.mozilla.com/D81424
2020-06-29 22:32:07 +00:00
Jed Davis 771b8498b1 Bug 1644917 - Part 1: Construct content sandbox "common" policy lazily. r=gcp
When the SandboxBrokerPolicyFactory is constructed, prefs aren't
available, which constrains the cached subset of the content process
policy to entries that don't depend on prefs.  Delaying the computation
until a content process is started removes that restriction.

Differential Revision: https://phabricator.services.mozilla.com/D81423
2020-06-29 22:32:05 +00:00
Jed Davis 0808445a13 Bug 1644917 - Part 0: Make AddDynamicPathList a static non-member function. r=gcp
Not strictly necessary, but I noticed this while I was making changes:
AddDynamicPathList can be a simple static function instead of a private
static method, and doesn't need to be in the header.

Differential Revision: https://phabricator.services.mozilla.com/D81422
2020-06-29 22:32:03 +00:00
Mitchell Hentges c6cbad9a52 Bug 1649266: generate-checksums.py should be compatible with py3 r=rail
Adds iter() changes and str conversions with six to ensure generate-checksums
will work with both py2 and py3.

Differential Revision: https://phabricator.services.mozilla.com/D81614
2020-06-29 22:24:46 +00:00
Ryan Hunt 177f1b006d Bug 1649282 - Make wasm/limits.js compatible with reftypes disabled. r=lth
The central-as-beta simulation that caught this was before reftypes was enabled
by default. Most table tests can just use anyfunc to be MVP compatible. Testing
table.grow requires reftypes, and is conditioned on it being available.

Differential Revision: https://phabricator.services.mozilla.com/D81368
2020-06-29 22:23:38 +00:00
Bryce Seager van Dyk 7ebe6409b1 Bug 1642465 - Test DRM prompt is shown for cross origin iframes. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D80976
2020-06-29 21:56:25 +00:00
Bryce Seager van Dyk 12c7838399 Bug 1642465 - Add EncryptedMedia actors to handle EME messages. r=Gijs
This patch also removes the code that is replaced by the new actors.

Differential Revision: https://phabricator.services.mozilla.com/D77861
2020-06-29 21:56:25 +00:00
Boris Chiou 897e56554c Bug 1638844 - Update fuzzy condition for linux-64-ccov. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D81586
2020-06-29 21:26:07 +00:00
Drew Willcoxon 8cf8a6212d Bug 1646086 - Improve UrlbarProviderSearchTips's impact on ts_paint. r=mak
ts_paint depends on the first MozAfterPaint in the content window, not in the
browser as I had thought. After MozAfterPaint, it pings the parent process and
waits for a response (see `TalosPowers.loadPromise`), and then it ends. It will
wait up to 500ms for the response before timing out. Source:
https://dxr.mozilla.org/mozilla-central/source/testing/talos/talos/startup_test/tspaint_test.html

At first I modified UrlbarProviderSearchTips to wait on
`browser-delayed-startup-finished`, but the jsm kept appearing in ts_paint
profiles, and that's how I found out the above. So that's not sufficient.

There's already a promise in browser.js for waiting on the first paint in the
first content window, but it's "private." I added a public getter for it and
changed the name so it's clearer that it's related to the first content window,
not the browser window.

I also added a 500ms timeout just like the worst case in ts_paint.

Both checks (paint and the timeout) are done for a particular browser window
only the first time UrlbarProviderSearchTips sees it.

Finally, UrlbarProviderSearchTips can avoid importing BrowserWindowTracker
during startup by having browser.js pass the window to its `onLocationChange`. I
saw the BrowserWindowTracker.jsm import in some profiles while working on this.

With these changes, UrlbarProviderSearchTips no longer appears in ts_paint
profiles when I run it locally -- except when it is imported by
UrlbarProvidersManager, which ultimately happens due to setting the placeholder
text in the urlbar input. But even that doesn't appear in every profile.

I've also included the reordering of checks from a previous version of this
patch. That's still worth doing in general even if it's no longer relevant to
ts_paint.

Differential Revision: https://phabricator.services.mozilla.com/D80799
2020-06-29 21:28:07 +00:00
chocos 10fddf998d Bug 1648959 - Done internal linking in docs in mobile Directory.r=championshuttler,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D81462
2020-06-29 21:04:48 +00:00
Noemi Erli b04c81aab3 Backed out changeset 397ad8a55255 (bug 1645046) for causing multiple wpt failures CLOSED TREE 2020-06-30 00:19:28 +03:00
Sylvestre Ledru 68e6f06c65 Bug 1649071 - Replace the DISALLOW_COPY_AND_ASSIGN & DISALLOW_EVIL_CONSTRUCTORS macros with = delete; r=froydnj
Generated with:
./mach static-analysis check --checks="-*, modernize-replace-disallow-copy-and-assign-macro" --fix -j 10 <file>
and
./mach clang-format -p <file>
(as clang-apply-replacement doesn't reformat the change)

(with ~/.mozbuild/clang-tools/clang-tidy/bin/clang-tidy pointing to clang-tidy 11)

Differential Revision: https://phabricator.services.mozilla.com/D81489
2020-06-29 14:37:56 +00:00
Emilio Cobos Álvarez 76e1706ca7 Bug 1494356 - Remove SVG style attribute reparsing code. r=longsonr
Now that XBL and xml:base are gone, and that <svg:use> is sane (using
shadow trees instead of NAC), we can just remove this, and fix this bug.

Differential Revision: https://phabricator.services.mozilla.com/D81553
2020-06-29 20:16:11 +00:00
chocos 4a218f2c31 Bug 1648959 - Done internal linking in docs in remote Directory.r=championshuttler,remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D81463
2020-06-29 20:34:46 +00:00
Emilio Cobos Álvarez 182bc24936 Bug 1648939 - Ensure that the widget starts with the correct opacity / transform. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D81554
2020-06-29 20:05:09 +00:00
Nihanth Subramanya 359cdd5536 Bug 1555557 - Do cert override file writes off the main thread. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D35375
2020-06-29 17:00:58 +00:00
Csoregi Natalia 71061cd95b Backed out 2 changesets (bug 1253129) for failures on browser_ext_windows_create_params.js. CLOSED TREE
Backed out changeset 1881ebd34b2b (bug 1253129)
Backed out changeset 93f852ad5d28 (bug 1253129)
2020-06-29 22:28:56 +03:00
David Major b6eec29461 Bug 1649039 - Update bootstrap's rustc to match bug 1648343 r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D81565
2020-06-29 17:44:52 +00:00
sefeng 4132c41203 Bug 1645046 - Enable HTML5 dialog in Nightly r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D80045
2020-06-29 15:33:45 +00:00
Kartikaya Gupta a3752f3581 Bug 1648500 - Use the composition size when positioning scrollbars. r=tnikkel
When positioning overlay scrollbars, the code was previously taking the
visual viewport size and scaling it back up to the composition size using
the resolution. This works because overlay scrollbars don't take up any
space, and so the visual viewport size is exactly equal to the composition
size divided by the resolution. However, it's simpler to just use the
composition size because we can get that easily enough. And this fixes the
scrollbar positioning on the very first reflow, before the visual viewport
has been set on the presShell.

Eventually this might make it easier to do this for non-overlay scrollbars
as well, since those do take up layout space, and can't be positioned using
the "VV size multiplied by resolution" quantity, as that doesn't exactly
equal the composition size.

Differential Revision: https://phabricator.services.mozilla.com/D81277
2020-06-29 18:38:58 +00:00
Kartikaya Gupta 9768f4f2ba Bug 1648500 - Don't check for the VV size in TryLayout. r=tnikkel
The TryLayout code uses the composition size to figure out if the
scrollbar is needed or not. It computes something similar to the visual
viewport size (but assuming no scrollbars are taking up space) to do this.
There's no reason this code should be depending on whether or not the
visual viewport size is set in the presShell, so we can just remove the
condition. That way even on the very first reflow, when the visual viewport
will definitely not be set, we can correctly determine if the scrollbars
need to be laid out or not.

Differential Revision: https://phabricator.services.mozilla.com/D81276
2020-06-29 03:33:59 +00:00
Emilio Cobos Álvarez 7649856b1f Bug 1649197 - Remove StyleSheet::UnparentChildren. r=nordzilla
It leaves parent pointers nulled out when it really shouldn't when
cloning shared sheets (if there's another suitable parent, we should use
that instead of nulling out).

Fix the code in StyleSheetInfo::RemoveSheet to handle all cases
(including nulling out when removing the only remaining sheet), and rely
on that instead.

Differential Revision: https://phabricator.services.mozilla.com/D81569
2020-06-29 18:41:20 +00:00
Edwin Takahashi 63d17a46c6 Bug 1648846 - more robust detection in conditional for xwit to be called in test-linux.sh r=jmaher
Changes:
  - instead of relying only on `$DISPLAY` env var, also use `$NEED_WINDOW_MANAGER` in the check.

Differential Revision: https://phabricator.services.mozilla.com/D81398
2020-06-27 09:19:17 +00:00
James Teh a14ee5ceec Bug 1631276 part 3: Don't return a descendant document in DocAccessibleChild::RecvChildAtPoint unless we're certain that document has been constructed in the parent process. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D81010
2020-06-25 16:11:07 +00:00
James Teh 06946181ec Bug 1631276 part 2: On non-Windows, have the parent process notify the content process when the DocAccessibleParent is constructed. r=eeejay
This is already handled in a different way on Windows.
For documents at the top level of their process (including OOP iframes), we can just set the flag rather than waiting for a message, since we can never get queries for such documents or descendants before parent process construction is complete.

Differential Revision: https://phabricator.services.mozilla.com/D81009
2020-06-29 18:12:44 +00:00
James Teh feb712c112 Bug 1631276 part 1: Move Set/GetIsConstructedInParentProcess into DocAccessibleChildBase. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D81008
2020-06-25 16:07:20 +00:00
Csoregi Natalia 5b4873516d Backed out 4 changesets (bug 1647320, bug 1647359) for failures on /test_json_cache.js. CLOSED TREE
Backed out changeset fdf086cfd0f9 (bug 1647359)
Backed out changeset b39278706c66 (bug 1647359)
Backed out changeset 65c58515f2cb (bug 1647359)
Backed out changeset 7ebc3ec422ec (bug 1647320)
2020-06-29 21:54:32 +03:00
Csoregi Natalia 0d8b17e46b Backed out 2 changesets (bug 1646451, bug 1645907) for failures on test_extension_permissions_corrupt.js . CLOSED TREE
Backed out changeset cafdc157b491 (bug 1645907)
Backed out changeset e43c0a04679a (bug 1646451)
2020-06-29 21:11:33 +03:00
Csoregi Natalia adaed940e7 Backed out changeset 34d09061d827 (bug 1648134) for failures on test_permmanager_remove_add_update.js. CLOSED TREE 2020-06-29 20:43:54 +03:00
Emilio Cobos Álvarez 67f90f0a9e Bug 1648736 - Don't mark a load as performed on a given document until it has actually finished. r=heycam
Consider the case where we have an expired entry in the cache, and we
load a new document.

We get an speculative load from the HTML parser. That's great, and we
see the entry is expired and actually fired the load.

But then, we actually get to the load that the <link> element performs,
and we see that we've already performed this load, so instead of peeking
the in-progress load, we go ahead and peek the expired "complete" cache
entry, which is not what we want.

By marking a load as performed only once it has finished, we avoid the
complete sheet cache, and glom onto the existing load instead, which is
the correct thing to do.

Differential Revision: https://phabricator.services.mozilla.com/D81318
2020-06-29 17:29:06 +00:00
Luca Greco f4770ea02c Bug 1642676 - Move test case for SharedWorker disallowed on in-process-webextensions mode into a separate test file. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D80517
2020-06-26 16:08:53 +00:00
Luca Greco a3c0ff4871 Bug 1642676 - Add test case to ensure we have test coverage for RemoteWorkerManager LaunchNewContentProcess and RegisterActor methods. r=dom-workers-and-storage-reviewers,asuth
Depends on D61708

Differential Revision: https://phabricator.services.mozilla.com/D63697
2020-06-26 16:05:53 +00:00
Luca Greco 634a0f15cf Bug 1642676 - Ensure remote workers are launched in a child process based on the expected remoteType. r=asuth,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D61708
2020-06-26 18:13:46 +00:00
Bert Peers b6fb32bf71 Bug 1648871 - debug draw crashes SWGL r=lsalzman
Guard against nullptr access of missing p.impl.
Also change LinkStatus so is_initialized is no longer true and calling
code can early out if bind_program fails.

Differential Revision: https://phabricator.services.mozilla.com/D81421
2020-06-27 00:17:33 +00:00
Mark Banner 0a4041b026 Bug 1647359 - Move SearchEngine fields to start of class for better clarity and documentation. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D80498
2020-06-29 16:36:30 +00:00
Mark Banner 8098e69f2f Bug 1647359 - Change definitions in SearchEngine to be classes. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D80497
2020-06-29 16:36:22 +00:00
Mark Banner 39b66db125 Bug 1647359 - Preferences should only clone the parts of the search engine objects that it actually needs. r=jaws,preferences-reviewers
The clones appear to be so that access for the tree view in preferences is quick. However, they don't need to clone the entire engine object - they just need three fields.

Additionally, this fixes reloading icons which was attempting to use 'uri' but that isn't defined, and so icons would fail to load if preferences was opened when a search engine is added.

Differential Revision: https://phabricator.services.mozilla.com/D80496
2020-06-29 16:38:42 +00:00
Mark Banner cefccb3918 Bug 1647320 - Make the search cache responsible for listening to notifications of changes. r=daleharvey.
This patch additionally makes the search cache responsible for listening to notifications rather than being directly told by the search service to write the cache.

It also makes writes after init/reinit/maybeReloadEngines into delayed writes as they don't need to be immediate - the code already ensures we write any pending cache before reading, and that we write it before shutdown. Therefore, it doesn't matter if we wait a second or so.

Differential Revision: https://phabricator.services.mozilla.com/D80472
2020-06-29 16:36:10 +00:00
Simon Giesecke 017f9a1fc0 Bug 1648010 - Add user-defined string literals. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D81125
2020-06-29 17:02:35 +00:00
Agi Sferro 44ccb4d7da Bug 1645907 - Recreate ExtensionPermission db on corrupt file. r=mixedpuppy
This patch makes it so whenever we encounter a corrupt database file we recrate
it and backup the corrupt file to a folder in the profile.

Differential Revision: https://phabricator.services.mozilla.com/D80051
2020-06-29 17:08:53 +00:00
Agi Sferro 2bb188747b Bug 1646451 - Clear rkv::get_or_create cache when an error occurs. r=vporof
Differential Revision: https://phabricator.services.mozilla.com/D80050
2020-06-29 17:08:53 +00:00
Nathan Froyd d862df6fa7 Bug 1648787 - remove MOZ_GUARD_OBJECT bits from RecursiveMutex; r=dmajor,xpcom-reviewers,nika
Apparently I added these in the initial commit for RecursiveMutex.  I'm
not quite sure what I was thinking, but we don't need them for the
RecursiveMutex itself.  (We have them on the corresponding `*Auto*Lock`
classes, which are also `MOZ_RAII`.)

Differential Revision: https://phabricator.services.mozilla.com/D81345
2020-06-29 15:37:21 +00:00
Itiel 8027e4ca15 Bug 1648417 - Fix the doorhanger icon for updating an autofilled form r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D81536
2020-06-29 16:38:39 +00:00
Vlad Filippov 4211a85668 Bug 1648180 - Support 'entrypoint', 'entrypoint_experiment', 'entrypoint_variation' parameters in FxA UITour. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D80961
2020-06-26 05:08:28 +00:00
Simon Giesecke 6d12f96928 Bug 1641598 - Added gtest test cases for ToLocaleAwareKey. r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D78697
2020-06-29 10:55:07 +00:00
Simon Giesecke 7d203057ee Bug 1641598 - Fix defect in Key::LengthOfEncodedBinary. r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D78696
2020-06-29 14:36:51 +00:00
Nicolas Chevobbe 269c35eaac Bug 1648875 - Fix stacktrace parsing when frame has multiple "@". r=loganfsmyth.
When parsing frames, we only need to retrieve the first "@" index to split
the frame string and get the function name on one side, and the location on the
other side.
This patch removes the regex-based search we were doing for a simpler character
search. A test is added to ensure this works as expected, and snapshots that were
highlighting the issue are updated.

Differential Revision: https://phabricator.services.mozilla.com/D81519
2020-06-29 15:05:31 +00:00
caroline 61b38f0a41 Bug 1647920 - Part 3: Transpile Math.trunc in Warp. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D80992
2020-06-25 23:10:20 +00:00