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

718118 Коммитов

Автор SHA1 Сообщение Дата
Keefer Rourke b732cf15e1 Bug 1650898: Implement tmpPath and backupFile options for IOUtils::writeAtomic r=barret,Gijs
This patch refactors the existing IOUtils::writeAtomic method to add support for the `tmpPath` and `backupFile` options.

Differential Revision: https://phabricator.services.mozilla.com/D82601
2020-07-15 16:04:17 +00:00
Keefer Rourke 0dcdd65989 Bug 1650227: Implement IOUtils move method r=barret,Gijs
This patch introduces a move method to the IOUtils interface, which allows
for renaming/moving files or directories on disk. Source and destination
files may be specified either by an absolute path, or a relative path from
the current working directory.

This method has well-defined behaviour similar to the POSIX mv command
(except that this may create missing directories as necessary).
The behaviour is briefly summarized below:

1. If the source is a file that exists:

 a. If the destination is a file that does not exist, the source is
    renamed (and re-parented as a child of the destination parent
    directory). The destination parent directory will be created if
    necessary.

 b. If the destination is a file that does exist, the destination is
    replaced with the source (unless the noOverwrite option is true).


2. If the source is a directory that exists:

 a. If the destination is a directory, then the source directory is
    re-parented such that it becomes a child of the destination.

 b. If the destination does not exist, then the source is renamed,
    creating additional directories if needed.

 c. If the destination is a file, then an error occurs.


3. If the source does not exist, an error occurs.

Differential Revision: https://phabricator.services.mozilla.com/D82202
2020-07-15 16:03:52 +00:00
Bert Peers 16439a0ec2 Bug 1647946 - SWGL Mac Correctness issues r=lsalzman,mstange
1/ the texture binding expects the pixel pointer to start at the top
left of the valid rectangle, not the top left of the entire mapped
layer;

2/ pending clears must be resolved before compositing the texture;

Differential Revision: https://phabricator.services.mozilla.com/D83587
2020-07-15 17:17:07 +00:00
Myeongjun Go 32cbdb3b33 Bug 1649497 - [perfdocs] Port mozperftest into Performance Testing r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D82207
2020-07-15 17:13:30 +00:00
Shane Caraveo 58b5281a4f Bug 1649813 test dns api failure when forwarding dns to socks proxy r=mayhemer,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D83006
2020-07-15 14:35:32 +00:00
Dan Minor 9b31893b44 Bug 976669 - Estimate bitrate for local streams; r=ng
This would be improved by smoothing the values a bit, but I'm not sure that is
worth the extra complexity at this point. I left out the remote values because
they do not update regularly, but with smoothing, we might be able to
include them as well.

Differential Revision: https://phabricator.services.mozilla.com/D83318
2020-07-15 15:03:41 +00:00
Dan Minor d154963e52 Bug 976669 - Automatically update ICE and RTP stats; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D83317
2020-07-15 15:03:33 +00:00
Michael Kaply ba3689efb8 Bug 1651093 - Update UserMessaging policy for triplets. r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D83367
2020-07-15 17:05:09 +00:00
Steve Fink 59693866d8 Bug 1647747 - Add in zone edges for delegates to DebuggerWeakMap r=jonco,jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D81427
2020-07-15 16:57:52 +00:00
Grace Bramley-Simmons 4cc1dd5d02 Bug 1649803 - Added an API stub for the Menus API r=agi,geckoview-reviewers,snorp
Added private/protected, unimplemented versions of the necessary Java
classes for the menus API, set up event dispatching and listening.

Differential Revision: https://phabricator.services.mozilla.com/D82383
2020-07-15 16:37:28 +00:00
Simon Giesecke 202c188ca0 Bug 1652960 - Remove unnecessary includes from Document.h. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D83634
2020-07-15 15:48:53 +00:00
Simon Giesecke d39b639f56 Bug 1652942 - Remove some unnecessary includes of Element.h. r=smaug
Depends on D83632

Differential Revision: https://phabricator.services.mozilla.com/D83633
2020-07-15 13:55:24 +00:00
Simon Giesecke da069e50be Bug 1652942 - Remove unnecessary includes from Element.h. r=smaug
Depends on D83114

Differential Revision: https://phabricator.services.mozilla.com/D83632
2020-07-15 14:09:01 +00:00
Simon Giesecke 4e8c935384 Bug 1652023 - Remove unnecessary includes from PresShell.h. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D83114
2020-07-15 13:53:02 +00:00
Simon Giesecke d017d73cd9 Bug 1652022 - Remove unnecessary includes from WritingModes.h. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D83113
2020-07-15 13:56:31 +00:00
Simon Giesecke d3d071323d Bug 1652021 - Remove unnecessary includes from Accessible.h. r=surkov
Differential Revision: https://phabricator.services.mozilla.com/D83112
2020-07-15 13:46:02 +00:00
Simon Giesecke 96fb649d21 Bug 1652017 - Remove unnecessary includes for expensive nsIFrame.h. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83111
2020-07-15 13:44:39 +00:00
Simon Giesecke d365910319 Bug 1652017 - Remove unnecessary includes from nsIFrame.h. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83110
2020-07-15 13:48:35 +00:00
Simon Giesecke 4d226e1175 Bug 1652020 - Remove unnecessary includes from nsIContent.h. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D83109
2020-07-15 12:48:28 +00:00
Simon Giesecke f4dc6dfdea Bug 1652010 - Reduce instantiations and cost of StyleOwnedSlice::AsSpan. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83104
2020-07-15 12:48:16 +00:00
Simon Giesecke fbb5626d0e Bug 1652009 - Remove unnecessary include directives from ComputedStyle.h. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83103
2020-07-15 12:48:09 +00:00
Simon Giesecke 0421532c89 Bug 1652008 - Add some missing include directives in widget/windows. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D83102
2020-07-15 13:43:37 +00:00
Simon Giesecke 00997c3c4d Bug 1652007 - Move implementation of UsageTimer to cpp file to avoid dependency on dom/base/Document.h. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D83101
2020-07-15 12:47:41 +00:00
Simon Giesecke 7701ae7587 Bug 1652003 - Remove unnecessary includes from gfxFont.h. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D83100
2020-07-15 12:47:28 +00:00
Simon Giesecke ff82bb1529 Bug 1651736 - Remove unnecessary includes from LayersMessageUtils.h. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D83099
2020-07-15 12:47:00 +00:00
Simon Giesecke 1cd5c68592 Bug 1652002 - Remove some unnecessary includes from BindingUtils.h. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D83098
2020-07-15 15:34:49 +00:00
Simon Giesecke a8bdd85536 Bug 1651949 - Add include directive for RootedDictionary.h where required. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D83487
2020-07-15 14:54:27 +00:00
Simon Giesecke c9a11309ae Bug 1652002 - Remove ambiguity between mozilla::dom::indexedDB::Exception and mozilla::dom::Exception. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D83483
2020-07-15 12:45:37 +00:00
Simon Giesecke 70d0f153f1 Bug 1652001 - Fix includes of WorkerNavigator. r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D83097
2020-07-15 12:45:12 +00:00
Simon Giesecke 4792d7c14e Bug 1651931 - Remove unnecessary includes from ContentChild.h. r=nika
Before these changes, ContentChild.h was the #9 most expensive header to include:
217505 ms: /home/simon/work/fuzzy/obj-x86_64-pc-linux-gnu-optimized/dist/include/mozilla/dom/ContentChild.h (included 105 times, avg 2071 ms)

After these changes, it is no longer among the top 30 most expensive headers.

Some missing includes in other files are added along.

Differential Revision: https://phabricator.services.mozilla.com/D83049
2020-07-15 12:45:10 +00:00
Simon Giesecke 0525ba37d2 Bug 1651736 - Reduce expensive includes for LayersMessageUtils.h. r=botond
This reduces the number of includes of LayersMessageUtils.h from 270 to 199
on Linux.

Differential Revision: https://phabricator.services.mozilla.com/D82941
2020-07-15 13:21:23 +00:00
Simon Giesecke 426bb6e4a5 Bug 1651930 - Add missing include in nsXPLookAndFeel.cpp. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D83048
2020-07-15 12:45:07 +00:00
Simon Giesecke fea9dab7f2 Bug 1651714 - Reduce expensive includes for TabMessageUtils.h. r=smaug
With these changes, on my Linux analysis with ClangBuildAnalyzer, the
top two expensive headers, DOMTypes.h and TabMessageUtils.h are no longer
among the 30 most expensive headers.

Differential Revision: https://phabricator.services.mozilla.com/D82935
2020-07-15 13:24:20 +00:00
Olli Pettay b2c2617436 Bug 1648400 - Make it possible to get back to nsISHEntry from SessionHistoryInfo ID, r=peterv
Using raw pointer to the hashtable to avoid static constructors.

Differential Revision: https://phabricator.services.mozilla.com/D81353
2020-07-15 15:54:02 +00:00
Honza Bambas 239c514eb9 Bug 1605895 - Advance the diagnostic assertion by more background channel states, r=michal,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D82907
2020-07-15 14:38:17 +00:00
Alex Chronopoulos 70eee99400 Bug 1649817 - Verify audio buffers in drift correction tests, r=padenot
In AudioDriftCorrection gtests, the audio in the buffers is simulated by a sine tone of specific amplitude and frequency. This paych implements a way to verify automatically that the expected signal is being received in the output.

Differential Revision: https://phabricator.services.mozilla.com/D81988
2020-07-15 14:02:41 +00:00
Benjamin Bouvier 53bed70ef3 Bug 1650621: mask the shift count when considering direct lowering of i64x2.shr_s; r=jseward
When lowering i64x2.shr_s, we can emit a simpler sequence if the shift count is
constant and less than 32; otherwise, a bigger code sequence needs to be
generated. When making this decision, the shift count wasn't masked, making it
so that a negative shift count would satisfy this condition but could be
greater than 32, in the immediate case. Masking the shift count solves the
issue and makes it also possible to use the constant code sequence for larger
shift counts.

The mask value of 63 is appropriate per specification, since we're operating on
an i64x2 register.

Differential Revision: https://phabricator.services.mozilla.com/D82884
2020-07-15 15:54:10 +00:00
Jamie Nicol c18dcab954 Bug 1609191 - Ensure shader sources are always unique to workaround adreno crash. r=gw
On some Adreno 505 and 506 devices we are encountering driver crashes during
glLinkProgram(). The only circumstance in which we have been able to reproduce
locally is when the show-overdraw debug option is enabled. The reason appears to
be that, due to shader optimisation, the debug overdraw variants of many shaders
have identical source code. The crash seems to occur when linking a shader which
has identical source code to a previously linked shader.

This does not, however, explain the non-insignificant numbers of crashes in the
wild because a) it's unlikely many users are enabling overdraw debugging, and b)
some crash reports predate the commit which enabled shader
optimisation. However, it is possible that for a different reason we are
compiling multiple shaders with identical source code.

To attempt to work around this crash this change adds a random comment to the
end of each shader source string, on the affected devices.

Differential Revision: https://phabricator.services.mozilla.com/D83571
2020-07-15 15:39:47 +00:00
Dzmitry Malyshau 368c201e04 Bug 1640960 - Remove aPosition from all shaders, except debug ones r=gw,jrmuizel
we only draw quads, and for quads we have a fixed vertex buffer with positions.
If we get stop using instancing, we'll no longer have the luxury of 4 vertices there.
Given that they are trivial to compute, it seems simpler to just do that in the shader today.
So this PR is a required step on the way to instance-less rendering.

It appears that we are hitting a driver bug with Intel on macOS, where scissored clears don't work properly if we render without per-vertex attributes.
It doesn't make a ton of sense, but switching to quad clears appears to fix it for me. Added the corresponding entry to the wiki - https://github.com/servo/webrender/wiki/Driver-issues#bug-1652763---glitches-on-macos-intel-with-clears

Differential Revision: https://phabricator.services.mozilla.com/D83391
2020-07-15 15:27:32 +00:00
Dana Keeler 2e61ac107e Bug 1645492 - only show certificates with corresponding error overrides in the "Servers" tab of the certificate manager r=kjacobs
Before this patch, the "Servers" tab of the certificate manager would show
built-in distrust records that had corresponding certificates (lately, this has
only consisted of two DigiNotar look-alike roots that were added many years ago
to block the real DigiNotar roots and potential cross-signs).
This patch changes the implementation to only show certificates that actually
have a corresponding error override in the "Servers" tab.

Differential Revision: https://phabricator.services.mozilla.com/D83190
2020-07-15 15:27:04 +00:00
Henrik Skupin 140dfc7e23 Bug 1588424 - [marionette] Remove "name" parameter from "WebDriver:SwitchToWindow" command. r=marionette-reviewers,webdriver-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D83625
2020-07-15 15:20:14 +00:00
Ms2ger 9ce43d3a09 Bug 1637414 - Remove orphaned metadata files for wasm bigint/i64 tests; r=lth
Relevant previous changes:

https://hg.mozilla.org/mozilla-central/rev/74cc6947f2f0e0d0068ec8d827dd2a178bf2fb85
https://hg.mozilla.org/mozilla-central/rev/830f3bbb543181f99fe19712b2a46072e1dcc7fb
https://hg.mozilla.org/mozilla-central/rev/666a2f6a86f1ef62301f6c2805379e295482c78f
https://hg.mozilla.org/mozilla-central/rev/4634a10a4e59967ee74224f0df304ae10c81f50f

Differential Revision: https://phabricator.services.mozilla.com/D81672
2020-07-02 20:48:07 +00:00
Ted Campbell 57a535d5c5 Bug 1652472 - Inline CreateScriptSourceObject into remaining caller. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D83580
2020-07-15 14:02:39 +00:00
Ted Campbell 79f21d4088 Bug 1652472 - Defer ScriptSourceObject allocation until stencil instantiation. r=arai
Continue to allocate the ScriptSource at the start of compilation, but defer
the GC ScriptSourceObject allocation until instantiation.

Differential Revision: https://phabricator.services.mozilla.com/D83579
2020-07-15 14:02:36 +00:00
Ted Campbell ae70be4278 Bug 1652472 - Do not initialize CompilationInfo::sourceObject during delazification. r=arai
The field is not accessed during delazification so leave it null. This is
helpful later when we defer ScriptSourceObject allocation.

Differential Revision: https://phabricator.services.mozilla.com/D83578
2020-07-15 14:02:34 +00:00
Ted Campbell bd1ecb1e2e Bug 1652472 - Cleanup helper thread ScriptSourceObject handling. r=arai
ScriptSourceObject initialization cannot be completed until ParseTask::finish
is called on main-thread. This initialization must be finished even if the
compilation fails since the debugger may still observe these partial scripts.

This patch makes the various cases consistent and prepares us for deferring
the allocation of the ScriptSourceObject.

Differential Revision: https://phabricator.services.mozilla.com/D83577
2020-07-15 14:04:56 +00:00
Ted Campbell 27a2df4044 Bug 1652472 - Avoid calling tryCompressOffThread from off-thread parser. r=arai
This already has checks to make it a no-op, but the code is clearer if we
surface the thread check to the callers.

Depends on D83575

Differential Revision: https://phabricator.services.mozilla.com/D83576
2020-07-15 01:58:38 +00:00
Ted Campbell b33800f314 Bug 1652472 - Add CompilationInfo::source() accessor. r=arai
In a later patch, the ScriptSourceObject will not be available, but the
ScriptSource will be.

Differential Revision: https://phabricator.services.mozilla.com/D83575
2020-07-15 01:58:36 +00:00
James Graham b923d4c0fb Bug 1652245 - Set element-request-fullscreen-dialog.html to fail on beta and release. r=jgraham
The preference dom.dialog_element.enabled is only enabled for Nightly.

Differential Revision: https://phabricator.services.mozilla.com/D83313
2020-07-14 09:48:33 +00:00
Julian Descottes e0fea8d6ee Bug 1652690 - Remove outdated eslint rule for devtools/shared/platform r=nchevobbe,perftest-reviewers,sparky
Small cleanup of eslint rules.

Differential Revision: https://phabricator.services.mozilla.com/D83477
2020-07-15 14:59:19 +00:00