Commit Graph

725590 Commits

Author SHA1 Message Date
Dragana Damjanovic
7433c1b34d Bug 1618849 - Add separate AltSvc for http2 and http3 and prefer http3 if allowed. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D86934
2020-09-09 10:32:22 +00:00
Cosmin Sabou
735a53ee64 Bug 1663770 - Set pointerevent_pointerlock_supercedes_capture.html to pass on linux qr. r=jgraham DONTBUILD DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D89527
2020-09-09 09:44:55 +00:00
Jon Coppeard
e9340fc8d9 Bug 1663616 - Use the helper thread lock for off-thread promise state r=jandem
This changes the off-thread promise helper code from using its own mutex to
using the helper thread lock for synchronisation.

For promise tasks executed on helper threads there's little benefit from using
a separate mutex as we already have to wait on the helper thread lock to start
the task. The changes ensure we don't delete the OffThreadPromiseTask while the
helper thread system thinks it's still running.

Differential Revision: https://phabricator.services.mozilla.com/D89472
2020-09-09 10:26:11 +00:00
Jon Coppeard
46e40d8072 Bug 1663616 - Use the helper thread lock for off-thread wasm compilation r=lth
Currently wasm uses its own mutex for off-thread compilation. This leads to the
sitation where the CompileTask structure can be freed while the helper thread
is still running (the ModuleGenerator destructor synchronises on its mutex, but
the helper thread run method releases this mutex before it returns).

Using the helper thread lock here makes sense. The helper thread lock is
already required to start the compiation task so I don't think there's much
gain from using a separate mutex.

Differential Revision: https://phabricator.services.mozilla.com/D89471
2020-09-09 09:57:45 +00:00
Sebastian Hengst
48aef80df5 Bug 1663751 - set idle-detection/idlharness.https.window.html expected failures. r=jgraham DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D89562
2020-09-09 10:17:16 +00:00
James Graham
0116c32dbb Bug 1663653 - Make wptrunner use the same manifest for non-gecko products, r=whimboo
This utilises the fact that we can now specify the manifest
independently of the metadata path, which wasn't possible before. We
need to edit the default (i.e. Firefox) configuration to update the
metadata path (only) to point at something product-specific so we
don't end up using fx metadata for everything.

Differential Revision: https://phabricator.services.mozilla.com/D89461
2020-09-09 09:44:22 +00:00
Henrik Skupin
5a88335ebc Bug 1606637 - [marionette] Use plain Promise instead of TimedPromise for Sleep. r=marionette-reviewers,maja_zf
TimedPromise logs a warning if the timeout exceeded and not error
should be raised. Given that Sleep always runs into that condition
a lot of inappropriate log entries are made that also causes
confusion for our users when commands (especially actions) don't
work as expected.

Differential Revision: https://phabricator.services.mozilla.com/D89354
2020-09-09 09:35:50 +00:00
Alexandre Poirot
b1f86cb838 Bug 1663717 - Stop watching for resources in the console frontend. r=jdescottes
It looks like we forgot to re-enable this code.
Hopefully this doesn't break any test. Without that, DAMP is throwing
because of late onResourceAvailable calls.

This might tells us that the throttling should check if it is still
relevant to emit the throttled event? I'm not having such check yet.

Differential Revision: https://phabricator.services.mozilla.com/D89476
2020-09-08 20:49:54 +00:00
Dmitry Bezhetskov
1e6bf3662f Bug 1639153 - Part 6: Force Ion to preserve its tls. r=lth
Let's see following code and let's assume that wasm-compiler is ion:

call foo
call bar

Ion can clobber tls inside foo and then it can go with clobbered tls into bar.
There will be a crash if bar uses tls. At compile-time we don't know whether bar will use tls or not.

It works when we restore tls each time when we are returning from a function because of the current frame structure.
But now, when we want to get rid of Frame::tls we should guarantee that Ion doesn't clobber tls inside a function.
In fact we forces Ion to restore tls iff it clobbers it and it is a rare case.

Baseline doesn't need such logic because of its private stack slot for tls.

Differential Revision: https://phabricator.services.mozilla.com/D83061
2020-09-09 08:55:17 +00:00
Marco Zehe
8e98d90958 Bug 1657576 - Expose the data-at-shortcutkeys attribute as an object attribute, r=Jamie
Currently used mostly by Twitter and Facebook to allow them to specify which virtual quick navigation keys assistive technologies should not use when in those web applications, but instead pass them through to the browser. JAWS is currently the only known assistive technology making use of this feature.

This works in Chrome and the new Edge, but not in Firefox, because JAWS stopped using ISimpleDOM in Firefox, which no longer gave them access to this attribute.

This bug is to allow exposure of the non-standardized data-at-shortcutkeys attribute value via a same-named IAccessible2 and ATK Object Attribute.

Differential Revision: https://phabricator.services.mozilla.com/D86181
2020-09-09 05:43:19 +00:00
Agi Sferro
9ba4e16ce3 Bug 1661480 - Restore scrolling position in new session. r=droeh
When restoring state into a new session, the actor gets recreated after
navigating away from `about:blank` so we have to query for it again to get the
right instance.

Differential Revision: https://phabricator.services.mozilla.com/D89475
2020-09-09 05:48:14 +00:00
Agi Sferro
89ab9ce336 Bug 1661480 - Handle subsessions displays too. r=droeh
Differential Revision: https://phabricator.services.mozilla.com/D89474
2020-09-09 05:48:16 +00:00
Chris Peterson
7fe7e6a08f Bug 1663297 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/xslt. r=peterv
The MOZ_MUST_USE macro is defined as clang's and gcc's nonstandard __attribute__((warn_unused_result)). Now that we compile as C++17 by default (bug 1560664), we can replace MOZ_MUST_USE with C++17's standard [[nodiscard]] attribute.

Differential Revision: https://phabricator.services.mozilla.com/D89316
2020-09-08 08:10:01 +00:00
Chris Peterson
3e124aaca9 Bug 1663237 - Replace MOZ_MUST_USE with [[nodiscard]] in mozjemalloc. r=glandium
The MOZ_MUST_USE macro is defined as clang's and gcc's nonstandard __attribute__((warn_unused_result)). Now that we compile as C++17 by default (bug 1560664), we can replace MOZ_MUST_USE with C++17's standard [[nodiscard]] attribute.

We can also stop #including mozilla/Attributes.h because it was only needed for its MOZ_MUST_USE declaration.

Differential Revision: https://phabricator.services.mozilla.com/D89310
2020-09-08 07:20:19 +00:00
Chris Peterson
f11ae60d32 Bug 1662964 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/file. r=baku
The MOZ_MUST_USE macro is defined as clang's and gcc's nonstandard __attribute__((warn_unused_result)). Now that we compile as C++17 by default (bug 1560664), we can replace MOZ_MUST_USE with C++17's standard [[nodiscard]] attribute.

Differential Revision: https://phabricator.services.mozilla.com/D89237
2020-09-08 15:15:19 +00:00
Nicholas Nethercote
ddf02dcac6 Bug 1426269 - Filter full-line comments and empty lines from prefs files. r=glandium,geckoview-reviewers,snorp
For a local build on my Linux64 box, this reduces greprefs.js from 174,906
bytes to 103,221 bytes, and firefox.js from 112,100 bytes to 68,656 bytes.

Depends on D88242

Differential Revision: https://phabricator.services.mozilla.com/D88243
2020-09-08 07:10:54 +00:00
Nicholas Nethercote
0f7f399e93 Bug 1426269 - Change the slashslash filter in preprocessor.py. r=glandium
This commit does the following.

- Renames `slashslash` as `dumbComments`. As a result, it now comes before
  `emptyLines` in alphabetical ordering, which means that if you apply both
  `dumbComments` and `emptyLines`, lines that contain only comments will be
  fully removed.

  (I contemplated changing the filter ordering to match the order specified,
  rather than using alphabetical ordering, but that was more invasive and not
  obviously better.)

- Changes `dumbComments` so it only applies if the comment is at the start of
  the line (with optional leading whitespace). This is so it can be used with
  prefs files, which contain lines like `pref("foo", "https://mozilla.org");`
  where the `//` must not be treated as a comment.

Note that `slashslash` wasn't being used anywhere.

Depends on D88240

Differential Revision: https://phabricator.services.mozilla.com/D88242
2020-09-08 23:04:51 +00:00
Nicholas Nethercote
1aa3d23435 Bug 1426269 - Remove the spaces filter from preprocessor.py. r=glandium
It's not used, probably because it's pretty strange and hard to imagine using
safely. (Stripping leading and trailing space could be useful, but collapsing
sequences of spaces? Hmm.)

Differential Revision: https://phabricator.services.mozilla.com/D88240
2020-09-08 06:54:04 +00:00
Ryan VanderMeulen
8a0745cd34 Bug 1663803 - Update pdf.js to version 2.7.26. r=bdahl
Differential Revision: https://phabricator.services.mozilla.com/D89529
2020-09-09 03:32:02 +00:00
sotaro
15bba66fef Bug 1663574 - Prevent to send invalid file descriptor by OpDeliverReleaseFence message r=jnicol
When invalid file descriptor is sent via IPC, it causes error log.

Differential Revision: https://phabricator.services.mozilla.com/D89416
2020-09-09 02:02:45 +00:00
sotaro
54ede5160d Bug 1460499 - Use DirectComposition for hardware decoded video on Windows r=nical
Use ID3D11VideoProcessor for video frame rendering.

WebRenderError::VIDEO_OVERLAY does not cause disabling WebRender. It just change gfxVars::UseWebRenderDCompVideoOverlayWin() to false.

Differential Revision: https://phabricator.services.mozilla.com/D88763
2020-09-09 01:04:53 +00:00
Hubert Boma Manilla
d79aa27e63 Bug 1663524 - Tests for the Network Event Stacktrace r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D89360
2020-09-08 22:41:09 +00:00
Timothy Nikkel
fa7aa5a0fe Bug 1663537. Use overlay scrollbars in a few reftests. r=kats
All of these reftests end up using a minimum scale with layout/classic scrollbars. (They hit the assert from the patch in bug 1663534.)

Some of them are only written with overlay scrollbars in mind (for example overflow-hidden-region-with-negative-left-positioned-element.html which I looked at in detail).

The change that causes them to fail is the code in nsHTMLScrollFrame::TryLayout that decides if we need scrollbars. Before desktop zooming scrollbars we compared the visual viewport size and the scrolled rect size. With desktop zooming scrollbars we compare the (layout) scrollport and the scrolled rect to determine if we need regular scrollbars and then compare the visual viewport size to the (layout) scrollport to determine if we need scrollbars to scroll the visual viewport inside the scrollport. Then can get different results.

Differential Revision: https://phabricator.services.mozilla.com/D89407
2020-09-08 23:47:48 +00:00
Simon Giesecke
c79903419a Bug 1663613 - Add missing include directive in generated ErrorList.h. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D89432
2020-09-08 11:29:17 +00:00
Simon Giesecke
ead5cef1e7 Bug 1663611 - Extract MaybeUpgradeSchema. r=dom-workers-and-storage-reviewers,janv
Depends on D89430

Differential Revision: https://phabricator.services.mozilla.com/D89431
2020-09-08 14:26:48 +00:00
Simon Giesecke
697765505f Bug 1663610 - Do not declare a variable in the scope *_TRY is used. r=janv,dom-workers-and-storage-reviewers
Depends on D89429

Differential Revision: https://phabricator.services.mozilla.com/D89430
2020-09-08 12:52:00 +00:00
Simon Giesecke
e8a62b2032 Bug 1663609 - Replace explicit construction of nsLiteralCString by string literals. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D89429
2020-09-08 14:13:35 +00:00
Michael Kaply
ac05a3c153 Bug 1498688 - Add ManagedBookmarks policy. r=fluent-reviewers,emalysz,Standard8,flod
Differential Revision: https://phabricator.services.mozilla.com/D76009
2020-09-08 20:09:35 +00:00
Jeff Walden
933368cb18 Bug 1663365 - Move DOM proxy-related details (including expand support) to separate headers out of jsfriendapi.h. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D89336
2020-09-08 22:57:14 +00:00
Jeff Walden
45d8047ca9 Bug 1663365 - Move JSM environment-related functionality to its own header. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D89335
2020-09-08 22:57:01 +00:00
Jeff Walden
5c5e824b56 Bug 1663365 - Move allocation-logging functions and |JS_COUNT_{CTOR,DTOR}| into a separate header. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D89334
2020-09-08 22:56:56 +00:00
Jeff Walden
6d5beafab1 Bug 1663365 - Move various Object-related functions to a new js/public/Object.h header. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D89333
2020-09-08 22:55:38 +00:00
Jeff Walden
49d77af36e Bug 1663365 - Move |JSJitInfo| out of jsfriendapi.h to its own experimental header. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D89332
2020-09-08 22:52:34 +00:00
Jeff Walden
5608660da2 Bug 1663365 - Move |XrayJitInfo| functionality to its own friend header. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D89331
2020-09-08 22:51:10 +00:00
Jeff Walden
b5ec4c7eba Bug 1663365 - Create a new js/public/String.h header seeded with the inline string functions previously found in jsfriendapi.h. (More functions ought be added/moved here, but these make a good start.) r=jandem,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D89330
2020-09-08 22:50:52 +00:00
Toshihito Kikuchi
f14b766f30 Bug 1662560 - Retrieve the imagebase of the child process's executable from a process handle. r=mhowell
Our data indicates when the browser process populates a newly-created child process,
`VirtualProtectEx` may fail with `ERROR_INVALID_ADDRESS` for some unknown reason.

One possible cause is the parameter `aRemoteExeImage` of `RestoreImportDirectory`
was wrong i.e. pointing to an invalid address.  We simply pass the local process's
imagebase as `aRemoteExeImage` based on the assumption that the same executable is
mapped onto the same address in a different process, but it may not be guaranteed.

To deal with that potential case, we could retrieve a correct imagebase from the handle
of a remote process as we do for the plugin process.  Since we're not so sure about
the root cause or the effectiveness of this fix, we run it only when the first
attempt to `VirtualProtectEx` failed in Nightly.  Once it's confirmed, we promote this
to a permanent fix.

Differential Revision: https://phabricator.services.mozilla.com/D89502
2020-09-08 22:13:27 +00:00
Matthew Gregan
14b4589a3d Bug 1663553 - Enable AudioIPC for 32-bit Windows in early beta. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D89406
2020-09-08 17:13:17 +00:00
sotaro
cec0924a4c Bug 1660750 - Fix timeout handling of AndroidHardwareBufferManager::WaitForBufferOwnership() r=jnicol
Prevent infinite wait at mMonitor.Wait(). And gfxCriticalNote log with shorter wait period.

Differential Revision: https://phabricator.services.mozilla.com/D89412
2020-09-08 13:21:14 +00:00
Bogdan Tara
f73b69b818 Backed out changeset 6698b842822e (bug 1663562) for mozglue_static::panic_hook crashes CLOSED TREE 2020-09-09 05:14:12 +03:00
Bogdan Tara
9b6c153dd9 Backed out 3 changesets (bug 1633370, bug 613785) for test_alert_opened_before_session_starts failures CLOSED TREE
Backed out changeset 4738b2f8406d (bug 613785)
Backed out changeset aeeb3f688098 (bug 613785)
Backed out changeset 36b1bf1d2320 (bug 1633370)
2020-09-09 05:00:22 +03:00
Bogdan Tara
d5746a62fe Backed out changeset 7813723422bf (bug 1618849) for browser_staticPartition_network.js failures CLOSED TREE 2020-09-09 04:58:46 +03:00
Bogdan Tara
f32777f722 Backed out changeset cb50aecf4bad (bug 1606637) for perform_actions/pointer* failures CLOSED TREE 2020-09-09 04:57:03 +03:00
Sean Feng
31a296f2e9 Bug 1662525 - Don't refresh uri if the docShell is being destroyed r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D89173
2020-09-08 21:48:59 +00:00
David Major
a9939a7f60 Bug 1658632 - Don't strip d3dcompiler_47.dll r=glandium
The llvm-strip from clang-11 complains about this file. This file doesn't really interest us anyway -- it's imported from elsewhere -- so just avoid it.

Differential Revision: https://phabricator.services.mozilla.com/D89491
2020-09-08 21:46:32 +00:00
Glenn Watson
77ed56e2c7 Bug 1663362 - Remove extra raster root assignment pass. r=nical
This was left as a debug option when the original change was made,
to allow seeing the differences. It's no longer required.

Differential Revision: https://phabricator.services.mozilla.com/D89328
2020-09-08 08:45:28 +00:00
Mike Hommey
d5f182fdf4 Bug 1663771 - Allow builds with the 11.0 macOS SDK. r=firefox-build-system-reviewers,rstewart DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D89495
2020-09-08 21:08:48 +00:00
Gijs Kruitbosch
61e522c615 Bug 1537719 - move page zoom tests and make them more reliable, r=morgan
This moves a bunch of tests over to a topical directory, and removes the
linux/windows running restrictions around browser_bug1015721.js
(now browser_mousewheel_zoom.js), given that it appears to run fine on try
and there are no recent logs with which we can diagnose failures.

It switches away from using FullZoom.reset repeatedly in the background_zoom
test because that trips https://bugzilla.mozilla.org/show_bug.cgi?id=1604236
which breaks subsequent tests.

Differential Revision: https://phabricator.services.mozilla.com/D89484
2020-09-08 20:34:11 +00:00
Simon Giesecke
91500edec4 Bug 1536596 - Crash with details on principal verification failures in early-beta-or-earlier builds. r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D88290
2020-09-08 15:47:21 +00:00
Alexandre Poirot
fabd272d4a Bug 1663617 - Pass updateType via the update packet instead of storing it on the resource object. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D89435
2020-09-08 13:53:59 +00:00
Ben Hearsum
8e15055ef9 No bug: block update verify on upload-symbols. r=releng-reviewers,aki DONTBUILD
This fixes a bug that was introduced in recent optimizations where
upload-symbols may not run for shipped release builds. We can add it as
a dependency for this, or some other per-platform task that runs for
releases. As long as it runs before we ship this should be fine.

Differential Revision: https://phabricator.services.mozilla.com/D89494
2020-09-08 20:45:15 +00:00