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

725316 Коммитов

Автор SHA1 Сообщение Дата
Andrew Osmond c45c3ac881 Bug 1662836 - Expose detailed initialization failure reason for WebRender. r=kvark
We don't know why we see initialization failures in the telemetry which
makes it hard to investigate why users aren't getting WebRender and
instead fallback to basic. Let's expose the detailed error message
WebRender already generates and puts in the critical log.

Differential Revision: https://phabricator.services.mozilla.com/D89185
2020-09-08 02:03:26 +00:00
Jan Varga 0acd64c691 Bug 1662119 - Replace MOZ_TRY with IDB_TRY; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D88832
2020-09-07 12:24:50 +00:00
Ryan Kelly 8d21f4598d Bug 1663541 - don't try to write `uid` to storage in `updateUserAccountData`. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D89405
2020-09-08 01:19:56 +00:00
Daisuke Akatsuka 8216959c5d Bug 1661622: See newState instead of old state. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D89359
2020-09-08 01:07:51 +00:00
Jan Varga e5ee46c338 Bug 1662097 - QM_TRY/QM_TRY_VAR cleanup functions should have access to tryTempResult; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D88807
2020-09-07 12:24:33 +00:00
Mike Hommey aa86bba7ac Bug 1662601 - Remove fileid. r=gsvelto
The last thing that was using fileid was fix-stacks, which, as of bug
1662037, doesn't anymore.

Differential Revision: https://phabricator.services.mozilla.com/D89076
2020-09-05 05:31:28 +00:00
Gerald Squelart 5507ddc4c5 Bug 1660458 - Improve TLS initialization and usage, remove inline-able function-static init - r=canaltinova
The profiler should guarantee that TLS initializations are done only once (from `profiler_init()`), so there is no need to potentially do it at every TLS access.
Instead, the initialization functions set the TLS states once (to `Initialized` or `Unavailable`, depending on the underlying TLS initialization success), and later accesses to this effectively-read-only flag can be done without thread synchronization.
This reduces the generated code size.

There are also DEBUG-build checks that no accesses are done before initialization; this is theoretically racy, but it's only used to detect too-early accesses in DEBUG builds, which should never happen anyway.

Differential Revision: https://phabricator.services.mozilla.com/D89338
2020-09-07 23:07:38 +00:00
Nicholas Nethercote 5abadeda43 Bug 1662646 - Remove `RendererOptions::texture_cache_{eviction_threshold_bytes,max_evictions_per_frame}`. r=gw
They're never set to anything other than the default, so we can hardwire them
as constants.

Depends on D89103

Differential Revision: https://phabricator.services.mozilla.com/D89104
2020-09-07 00:22:44 +00:00
Nicholas Nethercote 2bdcfc19ce Bug 1662646 - Remove `RendererOptions::max_instance_buffer_size`. r=gw
It's never set to anything other than the default, so we can hardwire it as a
constant.

Depends on D89102

Differential Revision: https://phabricator.services.mozilla.com/D89103
2020-09-07 00:22:31 +00:00
Nicholas Nethercote 716038f375 Bug 1662646 - Remove `RendererOptions::max_glyph_cache_size`. r=gw
It's never set to anything other than the default, so we can hardwire it as a
constant.

`GlyphCache::max_bytes_used` is also removed.

Depends on D89101

Differential Revision: https://phabricator.services.mozilla.com/D89102
2020-09-07 00:22:18 +00:00
Nicholas Nethercote f6d6d8f69c Bug 1662646 - Remove `RendererOptions::batch_lookback_count`. r=gw
It's never set to anything other than the default, so we can hardwire it as a
constant.

Depends on D89100

Differential Revision: https://phabricator.services.mozilla.com/D89101
2020-09-07 00:22:06 +00:00
Nicholas Nethercote 3885472850 Bug 1662646 - Remove the `NamedTag` trait. r=gw
It has a single impl, `GpuProfileTag`, so it's unnecessary generalisation.

This also removes type parameter from `GpuTimer`, `GpuSampler`,
`GpuFrameProfile`, and `GpuProfiler`.

Depends on D89099

Differential Revision: https://phabricator.services.mozilla.com/D89100
2020-09-07 00:21:58 +00:00
Jonathan Watt d8f2270d2a Bug 1663538. Register the new print preview UI telemetry probes for the correct process. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D89401
2020-09-07 22:59:23 +00:00
Alexandre Poirot 8dd8e4b254 Bug 1660268 - Pass list of resources instead of unique resource from ResourceWatcher. r=nchevobbe
Here, I've tried to be especially careful about replacing `return` by `continue` in the added for..loops.

Differential Revision: https://phabricator.services.mozilla.com/D87768
2020-09-07 21:13:02 +00:00
Alexandre Poirot e61c347424 Bug 1660268 - Read targetFront from resource instead of onResource*** functions. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D87767
2020-09-07 20:58:14 +00:00
Alexandre Poirot 0b62c083a6 Bug 1660268 - Read resourceType from resource instead of onResource*** functions. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D87766
2020-09-07 20:58:12 +00:00
Daisuke Akatsuka 5ee0f8ed93 Bug 1661625: Get stylesheets traits if needed. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D89339
2020-09-07 21:05:41 +00:00
Csoregi Natalia 7d48c81098 Backed out changeset ed6c3abb15c2 (bug 1652513) for node failures. CLOSED TREE 2020-09-07 23:00:52 +03:00
Gabriele Svelto d3e714d29a Bug 1659185 - Use child process crash annotations when generating hang reports; r=dmajor,froydnj
When generating a hang report we need to force a hung child process to return
its annotation via the pipe that connects it to the main process. Since the
child is not responding to regular IPC messages we force it to using
platform-specific code:

* On Windows we launch a new thread using CreateRemoteThread() that will
  invoke the code used to send the crash annotations. The Windows-specific
  code also has another slight modification: it stored the pipe used to send
  the annotations in Breakpad's minidump callback context. This patch moves it
  into the `gChildCrashAnnotationReportFd` global which is what all the other
  platforms use.
* On Linux/macOS we use a signal handler for the SIGTERM signal. It would be
  simpler to use SIGUSR1 or another signal that doesn't have special meanings,
  but those are all already in use in Gecko (either by jprof or the gcov
  machinery). We don't install SIGTERM handlers for anything else but
  obvioulsy its semantics get in the way since it's used to politely kill a
  process, and Chromium IPC also uses it for that purpose. So to tell apart
  our use of SIGTERM from a "regular" terminating SIGTERM we send a magic
  value along using sigqueue(). Our signal handler will look for it and only
  send annotations when it is set. If the magic number isn't there it will
  re-install the default SIGTERM handler and raise the signal once more which
  will lead to the process being terminated as it should be.

The patch refactors some of the code so that the PIDs and process/file handles
use platform-independent types to cut down on the amount of duplication we
have there.

Differential Revision: https://phabricator.services.mozilla.com/D87759
2020-09-07 16:02:26 +00:00
Olli Pettay f50042da80 Bug 1663216 - Have a pref to control unthrottled timers in background tabs, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D89295
2020-09-07 13:23:34 +00:00
Jan Varga 7e31de8547 Bug 1662004 - Add support for nested QM_TRY/QM_TRY_VAR macros; r=dom-workers-and-storage-reviewers,sg,ttung
Differential Revision: https://phabricator.services.mozilla.com/D88764
2020-09-07 18:00:00 +00:00
Emilio Cobos Álvarez 5b825e4543 Bug 1661720 - Move monochrome detection to nsIPrinter. r=bobowen
This moves the special cases to the printing platform code instead
(where it belongs).

The SupportsMonochrome() implementation is the only thing that I found
to work for the "Microsoft Print to PDF" driver, but other similar
drivers like XPS still claim to support monochrome (even though it's not
true). This should avoid the UI getting in a bad state as described in
the bug though, so may be better?

Depends on D89306

Differential Revision: https://phabricator.services.mozilla.com/D89312
2020-09-07 18:58:48 +00:00
Henrik Skupin 3880aa3e82 Bug 1663429 - [marionette] Only throw NoSuchWindow error in "WebDriver:SwitchToWindow". r=marionette-reviewers,jgraham
There is a race condition in the "WebDriver:SwitchToWindow" command
that would throw an UnknownError instead of NoSuchWindowError when
the window gets closed at the same time as the command gets called.

Differential Revision: https://phabricator.services.mozilla.com/D89377
2020-09-07 15:29:42 +00:00
Henrik Skupin 13f06a6d95 Bug 1661390 - [remote] Use a UUID as session id for targets. r=remote-protocol-reviewers,jgraham
A session is defined as string in CDP but target specific commands
and events currently return a number based on the last used index.
This also makes it very easy to discover active sessions.

Differential Revision: https://phabricator.services.mozilla.com/D89352
2020-09-07 15:31:27 +00:00
Andrei Oprea 96d74f4b7c Bug 1652513 - Use Remote Settings groups configuration to control message lifetime and frequency r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D85136
2020-09-01 12:04:25 +00:00
Csoregi Natalia 3034124827 Backed out 3 changesets (bug 1660268) for failures on browser_ext_devtools_network_targetSwitch.js. CLOSED TREE
Backed out changeset 749fda4e5eb1 (bug 1660268)
Backed out changeset 9d4c305f6b88 (bug 1660268)
Backed out changeset 7ec118209790 (bug 1660268)
2020-09-07 21:24:26 +03:00
Csoregi Natalia e82e3e78ed Backed out changeset 0258ead642b9 (bug 1663396) for failures on test_http_background_request.html. CLOSED TREE 2020-09-07 21:06:59 +03:00
Jonathan Kew 94149fadd5 Bug 1533462 - Enable the cross-process shared fontlist by default on Nightly builds. r=jwatt
Also add explicit line-height to a localized-family-names test for better consistency.

Differential Revision: https://phabricator.services.mozilla.com/D79963
2020-09-07 17:20:58 +00:00
Tom Schuster e703e7e06b Bug 1663260 - Support primitive Number toString in CacheIR. r=anba
Depends on D89307

Differential Revision: https://phabricator.services.mozilla.com/D89308
2020-09-07 06:46:50 +00:00
Tom Schuster 982321bc49 Bug 1663260 - Support primitive String toString and valueOf in CacheIR. r=anba
Differential Revision: https://phabricator.services.mozilla.com/D89307
2020-09-07 06:46:43 +00:00
Christoph Kerschbaumer 7cd845e01b Bug 1663396: Test HTTPS-Only-Mode top-level background request not leaking sensitive info r=JulianWels
Differential Revision: https://phabricator.services.mozilla.com/D89386
2020-09-07 16:57:34 +00:00
Jonathan Kew 60e923ac0b Bug 1533462 - Add a possible retry step in test_bug1200533 to handle potential disruption by font-list refresh. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D89120
2020-09-07 16:20:56 +00:00
Sylvestre Ledru da34b6a58e Bug 1661514 - Reformat some python files with black 20.8b1 r=rstewart
# ignore-this-changeset

Depends on D88711

Differential Revision: https://phabricator.services.mozilla.com/D88712
2020-09-07 14:05:10 +00:00
Sylvestre Ledru acd45d10e5 Bug 1661514 - Update to black 20.8b1 r=rstewart
Differential Revision: https://phabricator.services.mozilla.com/D88711
2020-09-07 15:25:29 +00:00
Kagami Sascha Rosylight 0f5ce0d9b6 Bug 1646140 - Fire SVG onload only when scripting is enabled r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D89218
2020-09-07 14:45:12 +00:00
Alexandre Poirot ecf3f1c8bc Bug 1660268 - Pass list of resources instead of unique resource from ResourceWatcher. r=nchevobbe
Here, I've tried to be especially careful about replacing `return` by `continue` in the added for..loops.

Differential Revision: https://phabricator.services.mozilla.com/D87768
2020-09-07 13:35:31 +00:00
Alexandre Poirot fdb1e4f37e Bug 1660268 - Read targetFront from resource instead of onResource*** functions. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D87767
2020-09-07 13:35:24 +00:00
Alexandre Poirot b42d571310 Bug 1660268 - Read resourceType from resource instead of onResource*** functions. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D87766
2020-09-07 13:35:21 +00:00
Emilio Cobos Álvarez ae00201713 Bug 1661720 - Don't claim to support monochrome for known PDF printers. r=jwatt
They don't. Right now we get to GetDataFromPrinter from
nsDeviceContextSpecWin with mPrintInColor = false, but this copy back
and forth ends up setting it to true:

  https://searchfox.org/mozilla-central/rev/2fb77a351ab34e9994f01377e2e12486a50f1737/widget/windows/nsDeviceContextSpecWin.cpp#448

Even if you avoid that, the printed file ends up being in color. This is
a bit of a hack, the right long-term fix is to detect whether the
printer supports monochrome in Gecko (add an attribute to nsIPrinter)
and communicate it to the front-end.

There's no equivalent to DC_COLORDEVICE but for monochrome in:

  https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-devicecapabilitiesa

I think we could check if DC_FIELDS returns the COLOR field or such.
I'll poke at doing that but this is less risky.

Differential Revision: https://phabricator.services.mozilla.com/D89306
2020-09-07 15:18:10 +00:00
ffxbld c9023a3ab0 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D89378
2020-09-07 14:23:46 +00:00
Jonathan Kew c21039de3f Bug 1663040 - Sort available paper sizes by name for the menu in the print UI. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D89300
2020-09-07 13:51:37 +00:00
Masayuki Nakano 3ed5c1ea83 Bug 1658702 - part 9: Add `AutoDeleteRangesHandler::ComputeRangesToDeleteHRElement()` to compute the target range for deleting `<hr>` element r=m_kato
This patch corresponds to:
* https://searchfox.org/mozilla-central/rev/0c682c4f01442c3de0fa6cd286e9cadc8276b45f/editor/libeditor/HTMLEditSubActionHandler.cpp#3362-3375
* https://searchfox.org/mozilla-central/rev/0c682c4f01442c3de0fa6cd286e9cadc8276b45f/editor/libeditor/HTMLEditSubActionHandler.cpp#3679-3695
* https://searchfox.org/mozilla-central/rev/0c682c4f01442c3de0fa6cd286e9cadc8276b45f/editor/libeditor/HTMLEditSubActionHandler.cpp#3728-3742

Note that the complicated cases (surrounded by invisible `<br>` element and/or
surrounded by invisible white-spaces) are handled as deleting non-collapsed
range so that this improves only the simple cases.

And also this adds a pref to disable the Gecko specific complicated `<hr>`
element handling.

Differential Revision: https://phabricator.services.mozilla.com/D88969
2020-09-07 03:09:30 +00:00
Christoph Kerschbaumer c6241df6d4 Bug 1661672: Remove use of security.view-source.reachable-from-inner-protocol r=Gijs,emilio
Differential Revision: https://phabricator.services.mozilla.com/D89163
2020-09-07 13:51:44 +00:00
Julian Descottes 9e5bbe3162 Bug 1663421 - Remove deprecated newSource events from target front specs r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D89368
2020-09-07 12:50:06 +00:00
Emilio Cobos Álvarez 4efeec4b9d Bug 1663411 - Improve the speed of find-in-page when ending a pseudo-element mid-match. r=jfkthame
So what's going on here is that there are pseudo-elements that contain
stuff like content: "Note" or content: "Example".

So when you're searching for "entry", we find the `e`, and then all the
text nodes afterwards are of course in a different subtree... So we end
up ignoring them, but after having iterated through all the DOM first.

To avoid this, change a bit the code so that we check for different
blocks _before_ checking for different subtrees. There's no point to
keep matching once you're done with a block.

Differential Revision: https://phabricator.services.mozilla.com/D89365
2020-09-07 13:40:36 +00:00
Benjamin Bouvier 30820e3a4b Bug 1661016: aarch64: slightly refactor the check that membarrier is available; r=lth
Depends on D89366

Differential Revision: https://phabricator.services.mozilla.com/D89367
2020-09-07 12:21:02 +00:00
Benjamin Bouvier 49433c644a Bug 1663030: include unistd.h in MozCpu-vixl.cpp on Android too; r=lth
This includes the declaration of the syscall(2) function.

Differential Revision: https://phabricator.services.mozilla.com/D89366
2020-09-07 12:19:10 +00:00
Kershaw Chang 85a40e4ad8 Bug 1658877 - Don't overwrite mContentDispositionHint if it's DISPOSITION_ATTACHMENT r=valentin,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D88044
2020-09-02 12:58:45 +00:00
Razvan Maries ba64673af1 Bug 1663108 - Update column-balancing-paged-001-print.html expectation. r=aryx DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D89292
2020-09-07 13:22:42 +00:00
Denis Palmeiro ab8287fd08 Bug 1663051 - Do not process off thread requests that are already pending in a list r=smaug
Check if the off thread compilation request is already in a list before calling ProcessRequest.  See https://bugzilla.mozilla.org/show_bug.cgi?id=1663051#c0 for a more detailed description of the problem.

Differential Revision: https://phabricator.services.mozilla.com/D89257
2020-09-06 16:58:37 +00:00