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

742482 Коммитов

Автор SHA1 Сообщение Дата
Mike Hommey c776e2a4de Bug 1686831 - Still apply fillers when no numbers are printed. r=Gankra
The standard for printf says that for integers, the result of converting
zero with an explicit precision of zero shall be no characters. But
flags and width still need to apply.

Differential Revision: https://phabricator.services.mozilla.com/D102696
2021-01-27 01:06:44 +00:00
Mike Hommey 4c520112c0 Bug 1686831 - Add support for %F and %G, and properly support %n$E. r=nika,Gankra
%F and %G are the same as %f and %g, but using caps for the exponent
indicator, and for "inf"/"nan" for infinity and NaN.

%n$E is the same as %E, but taking the nth argument.

Differential Revision: https://phabricator.services.mozilla.com/D102695
2021-01-27 01:06:22 +00:00
Mike Hommey ae6a8b5554 Bug 1686831 - Print out the expected and actual results when failing in TestPrintf. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D103132
2021-01-27 22:43:43 +00:00
Mike Hommey 7208a7a56d Bug 1686831 - Import glibc printf test cases verbatim. r=mhoye
Differential Revision: https://phabricator.services.mozilla.com/D103131
2021-01-27 23:10:02 +00:00
Lee Salzman 6f71c89411 Bug 1689245 - replace CompositorWidget::ClearBeforePaint with GetTransparentRegion. r=mattwoodrow
ClearBeforePaint put the responsibility of clearing the current frame's DrawTarget
onto the widget. This doesn't compose well with WR RenderCompositor that may do
their own internal clearing. Instead, replace this with a GetTransparentRegion API
that can be used by RenderCompositors to limit where they clear so that they are
now fully responsible for clearing.

Differential Revision: https://phabricator.services.mozilla.com/D103253
2021-01-28 05:35:55 +00:00
Lee Salzman 271d12aca9 Bug 1689245 - implement GL_ARB_clear_texture extension for SWGL. r=mattwoodrow
GL_ARB_clear_texture implements some useful GL entry-points for clears
that can clear arbitrary sub-rects of the screen without having to latch
or disturb GL state. This refactors the glClear implementation to be in
terms of the provided glClearTexSubImage extension which is far more
flexible.

This further allows us to reuse clearing primitives in RenderCompositorSWGL
without having to use more expensive DrawTarget versions.

Differential Revision: https://phabricator.services.mozilla.com/D103252
2021-01-28 05:36:36 +00:00
Emilio Cobos Álvarez 99a6a0db4f Bug 1687538 - Make HTMLLinkElement not inherit from Link. r=smaug
As per https://github.com/whatwg/html/pull/6269

Differential Revision: https://phabricator.services.mozilla.com/D103088
2021-01-28 05:35:05 +00:00
Emma Malysz 61a1c11e58 Bug 1649611: Remove OS.File usage from DownloadIntegration.jsm and respect umask in IOUtils::SetPermissions r=barret
Differential Revision: https://phabricator.services.mozilla.com/D99729
2021-01-28 00:59:04 +00:00
Butkovits Atila 7decdccbdc Backed out 12 changesets (bug 1685801) for causing failures on browser_fission_maxOrigins.js. CLOSED TREE
Backed out changeset 0d7153110519 (bug 1685801)
Backed out changeset 5175062925c7 (bug 1685801)
Backed out changeset 2c1250e786f0 (bug 1685801)
Backed out changeset 0ce3c773ba74 (bug 1685801)
Backed out changeset 9d51c6e24dee (bug 1685801)
Backed out changeset 3f4dc6349441 (bug 1685801)
Backed out changeset a80de9abb9f8 (bug 1685801)
Backed out changeset 30786893a5e7 (bug 1685801)
Backed out changeset 8007b12d6e32 (bug 1685801)
Backed out changeset fa814f4b7125 (bug 1685801)
Backed out changeset 14e4e47ee99f (bug 1685801)
Backed out changeset d9f1feba9454 (bug 1685801)
2021-01-28 07:15:59 +02:00
Butkovits Atila b09444da06 Backed out changeset ab82c7e299f4 (bug 1629381) for causing failures on test_eme_canvas_blocked.html. 2021-01-28 07:09:15 +02:00
Butkovits Atila 66d2fa9c1e Backed out changeset 0927366150b7 (bug 1687538) for failures on link.html. CLOSED TREE 2021-01-28 07:01:27 +02:00
Kris Maglione fa906b07e7 Bug 1685801: Part 12 - Remove BrowserUtils.urlSecurityCheck. r=mccr8
This moves the exception prettifying to the script security manager for all JS
callers, where it is much cheaper and more consistently applied.

Differential Revision: https://phabricator.services.mozilla.com/D101492
2021-01-28 03:33:09 +00:00
Kris Maglione de80dda2f5 Bug 1685801: Part 11 - Move makeNicePluginName out of BrowserUtils. r=handyman
It will mostly not be used. This patch just duplicates it in the two modules
that use it since it's not long for this world, anyway.

Differential Revision: https://phabricator.services.mozilla.com/D101491
2021-01-28 03:33:07 +00:00
Kris Maglione bde014e0c3 Bug 1685801: Part 10 - Move BrowserUtils.getElementBounding*Rect to a separate module. r=mccr8
They won't be used in most processes.

Differential Revision: https://phabricator.services.mozilla.com/D101490
2021-01-28 03:33:04 +00:00
Kris Maglione 6a91fbec71 Bug 1685801: Part 9 - Move BrowserUtils.getSelectionDetails to a separate module. r=mccr8
It won't ever be used in most content processes.

Differential Revision: https://phabricator.services.mozilla.com/D101489
2021-01-28 03:32:56 +00:00
Kris Maglione 7075843922 Bug 1685801: Part 8 - Remove BrowserUtils toolbar tracking code. r=mccr8
It's only used by the finder code, and can be much simpler.

Differential Revision: https://phabricator.services.mozilla.com/D101488
2021-01-28 03:32:54 +00:00
Kris Maglione 7ec5a11442 Bug 1685801: Part 7 - Move BrowserUtils.parseUrlAndPostData to a separate module. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D101487
2021-01-28 03:32:51 +00:00
Kris Maglione 5b2b2517a2 Bug 1685801: Part 6 - Move some front-end code from BrowserUtils to a separate module. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D101486
2021-01-28 03:32:43 +00:00
Kris Maglione e5872f50f2 Bug 1685801: Part 5 - Remove BrowserUtils.restartApplication. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D101485
2021-01-28 03:32:31 +00:00
Kris Maglione 9cdeefd978 Bug 1685801: Part 4 - Remove BrowserUtils.dumpLn. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D101484
2021-01-28 03:32:28 +00:00
Kris Maglione 70ccb5bca1 Bug 1685801: Part 3 - Remove BrowserUtils.makeURI and makeFileURI. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D101483
2021-01-28 03:32:33 +00:00
Kris Maglione 36a64d4784 Bug 1685801: Part 2 - Move site origin telemetry to separate module. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D101482
2021-01-28 03:32:30 +00:00
Kris Maglione 09c8b4b7c9 Bug 1685801: Part 1 - Move objectToPropBag and propBagToObject out of BrowserUtils. r=mccr8
Note that PromptUtils.objectToPropBag and the new propBagToObject function in
prompt_common.js do not do the recursive conversion that the BrowserUtils
versions attempted, but that code was completely broken, and would have failed
if it encountered a value which triggered recursion.

Differential Revision: https://phabricator.services.mozilla.com/D101481
2021-01-28 03:32:23 +00:00
Kris Maglione 882bdac7b8 Bug 1688715: Rename BrowsingContext::CheckOnlyOwningProcessCanSet to LegacyCheckOnlyOwningProcessCanSet. r=nika
It is inherently buggy and should not be used in new code.

Differential Revision: https://phabricator.services.mozilla.com/D102960
2021-01-28 03:31:50 +00:00
Haik Aftandilian a8dbefe3ba Bug 1686751 - Tooltip Popups Opening on Wrong Screen r=spohl
Add missing conversion of max size constraints to device pixels in nsCocoaWindow::SetSizeConstraints() so that the maximum size constraints will be correct for windows that start off with a scaling factor not equal to 1.0.

Add back the fix for bug 1592416 to address scenarios where tooltips open on the wrong screen.

Differential Revision: https://phabricator.services.mozilla.com/D102798
2021-01-26 23:47:54 +00:00
Emma Malysz 0ee3d1c888 Bug 1688700, add items to proton app menu r=fluent-reviewers,mconley,flod
Differential Revision: https://phabricator.services.mozilla.com/D103090
2021-01-28 00:29:29 +00:00
Andreea Pavel cc35a49c17 Bug 1683279 - disable browser_print_in_container.js on linux64 debug r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D102910
2021-01-25 16:54:37 +00:00
Emilio Cobos Álvarez a1d23c5b4f Bug 1629381 - CanvasRenderingContext2D.drawImage shouldn't throw for e.g <video> if there's no valid surface to draw. r=sotaro
As per spec see comment.

Differential Revision: https://phabricator.services.mozilla.com/D103157
2021-01-27 23:55:11 +00:00
Butkovits Atila 7127d7e4aa Backed out changeset 5fa332822cee (bug 1689052) for causing failures on nsPresContext.cpp. CLOSED TREE 2021-01-28 02:10:53 +02:00
Jonathan Kew 8dc5b5c351 Bug 1663816 - Disable async font fallback for spell-checker tests. r=intermittent-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D103183
2021-01-27 18:39:34 +00:00
Emilio Cobos Álvarez a6e6a48057 Bug 1689044 - Remove redundant background-color: ButtonFace for buttons from forms.css. r=dholbert
This is the color that buttons have already, so this is just redundant.

Differential Revision: https://phabricator.services.mozilla.com/D103238
2021-01-27 23:32:43 +00:00
Emilio Cobos Álvarez db72ef806e Bug 1689044 - Stop messing with button padding on :hover:active buttons by default. r=dholbert
This is not particularly efficient, and our non-native theme has
different paddings by default which causes test failures.

We could fix this with a bunch of other media queries, but it doesn't
seem worth it, other browsers don't do this, and we were already working
around it on mac anyways.

While at it, turn the border declaration into just `border-style`, which is
the only thing it's needed to override the `:hover:active` rule above. That
shouldn't have any behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D103143
2021-01-27 23:32:07 +00:00
Emilio Cobos Álvarez 45e159fc05 Bug 1687538 - Make HTMLLinkElement not inherit from Link. r=smaug
As per https://github.com/whatwg/html/pull/6269

Differential Revision: https://phabricator.services.mozilla.com/D103088
2021-01-26 23:47:56 +00:00
Nick Alexander 84441f9db0 Bug 1682069 - Add test ensuring policies engine works for background tasks. r=mossop,mkaply
I've tested this explicitly with `AppUpdateURL` because that's the
policy-controlled value we care about for the first use case for
background tasks, namely the background update agent.

Differential Revision: https://phabricator.services.mozilla.com/D99846
2021-01-27 22:54:37 +00:00
Nick Alexander 3148225f3e Bug 1679440 - Add test ensuring crash reporter works for background tasks. r=mossop,gsvelto
This adds a test to ensure that crash reporting works inside of
`application --backgroundtask ...` invocations.  A test-only `crash`
task is added that uses `CrashTestUtils.jsm` to trigger a crash.  The
`xpcshell` harness invokes that background task and processes any
minidump and extras just as it does for existing `xpcshell`
subprocesses.

The test is homed in `toolkit/crashreporter`, rather than in
`toolkit/components/backgroundtasks`, because there is special
handling for `CrashTestUtils.jsm` and the `testcrasher` library.  It's
probably possible to make that infrastructure usable from multiple
locations but it seems low value.

Differential Revision: https://phabricator.services.mozilla.com/D98096
2021-01-27 22:54:35 +00:00
Nick Alexander c72bc82a74 Bug 1667276 - Post: Add test limiting the XPCOM graph of the no-op wait background task. r=mossop
This establishes a high water mark for code loaded (even after a short
delay) by a background task that does nothing.

Code loaded here means:

1) Chrome JSMs imported using `ChromeUtils.import`;

2) XPCOM services, generally long-lived, loaded using `do_getService`
   or `Services.*` or an equivalent;

3) XPCOM components defined in JavaScript and loaded via
   `chrome.manifest` entries.

At this time background tasks do not load any of category 3.  The
distinction is made because they are reported separately by Gecko.

This test is browser-chrome to make it easy/possible to work with
packaged builds.

Differential Revision: https://phabricator.services.mozilla.com/D98095
2021-01-27 22:54:27 +00:00
Nick Alexander 03ff66c89d Bug 1667276 - Part 3: Load a custom prefs file when running a background task. r=mossop,KrisWright
There are some complications here to handle unpackaged and packaged
builds.  In addition, there could be a difference between App prefs
and GRE prefs.  Since the underlying backgroundtasks code is built as
part of Gecko (i.e., `toolkit/...` rather than `browser/...`) I have
favoured GRE prefs.  I think, however, that what is written will work
for App-specific prefs, but I'm not concerned with that detail at this
time.

This also add tests for backgroundtask-specific prefs, which are
structured as both xpcshell and mochitest-chrome tests because
locally, the former tests unpackaged builds and the latter can
accommodate testing packaged builds.  We could use mochitest-chrome
for both, but this has been pleasant to work with locally.

Differential Revision: https://phabricator.services.mozilla.com/D97510
2021-01-27 22:54:25 +00:00
Nick Alexander 9862045082 Bug 1667276 - Part 2: Add BackgroundTasksManager to invoke task defined in JS. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D97512
2021-01-27 22:54:17 +00:00
Nick Alexander eb5ed037f9 Bug 1667276 - Part 1: Wire background task mode into Gecko startup. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D97511
2021-01-27 22:54:14 +00:00
Nick Alexander febb92c570 Bug 1667276 - Pre: Disable extension manager in background tasks mode. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D97509
2021-01-27 22:54:02 +00:00
Dave Townsend b57ef60b0e Bug 1667276 - Pre: Disable the startup cache when running a background task. r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D95198
2021-01-27 22:53:54 +00:00
Butkovits Atila 09e52162fa Backed out changeset c89276392499 (bug 1649611) for causing build bustages. CLOSED TREE 2021-01-28 01:13:59 +02:00
Butkovits Atila df8358b5bb Backed out changeset 9226bc3ca03c (bug 1688700) for causing failures on browser_preferences_usage.js. 2021-01-28 01:09:22 +02:00
Joan Jennings 4748dcb616 Bug 1689052 - Only get a docshell when the document is visible. r=rickiedennehy
Differential Revision: https://phabricator.services.mozilla.com/D103149
2021-01-27 22:51:11 +00:00
Iain Ireland d7eb5f6231 Bug 1686653: Refactor JSJitFrameIter constructors r=jandem
This fix was written by looking at the stack trace from a fuzz bug. I could not reproduce the failure locally, but decoder has confirmed that this change fixes the problem.

If we bail out of Ion, then call ReportOverRecursed in `BailoutIonToBaseline` with a wasm frame on the stack, then while trying to capture the stack for the error, we assert while trying to construct a `JSJitFrameIter` using the constructor specialized for jit->wasm frames. The other `JSJitFrameIter` constructor has special handling for the `activation->bailoutData()` case, but the jit->wasm one just asserts that the activation doesn't have any bailout data.

Benjamin wrote this code and Luke reviewed it, and unfortunately neither of them are still around to answer questions. Reading through the patch history, I can't find any reason that the jit->wasm constructor doesn't support this case. It looks like we just assumed it couldn't happen, and our assumption would've been right if it weren't for stack overflow. Rewriting the jit->wasm constructor to use the same logic as the other constructor appears to fix the problem.

Differential Revision: https://phabricator.services.mozilla.com/D102826
2021-01-25 08:50:39 +00:00
Emilio Cobos Álvarez 601f952a28 Bug 1688925 - Move DNS prefetch state out of Link into its own super-class. r=smaug,edgar
I made sure that this didn't grow HTMLAnchorElement, though if we don't
care too much (sizeof(HTMLAnchorElement) is 176 right now) we might want
to remove ToSupportsDNSPrefetch and such.

This fixes a subtle bug where OnDNSPrefetchRequested wasn't being called
when IsNeckoChild was true.

Differential Revision: https://phabricator.services.mozilla.com/D103062
2021-01-27 22:38:13 +00:00
Kimberly Sereduck 02d7cf31ed Bug 1680766 - Improvements to profile markers for Talos tests; r=perftest-reviewers,gregtatum,sparky
This patch is to add more profile markers to Talos tests, and improve existing ones, by grouping all Talos markers together under "Talos", using more descriptive labels, and employing interval markers where applicable.

Differential Revision: https://phabricator.services.mozilla.com/D98774
2021-01-26 16:49:42 +00:00
Kershaw Chang 0d82c1d0d8 Bug 1684041 - Add ODoH test r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D102629
2021-01-27 22:04:25 +00:00
Emma Malysz 83a2a99541 Bug 1649611: Remove OS.File usage from DownloadIntegration.jsm and respect umask in IOUtils::SetPermissions r=barret
Differential Revision: https://phabricator.services.mozilla.com/D99729
2021-01-27 22:19:22 +00:00
Butkovits Atila 49753aeed1 Backed out changeset d9b7bed96428 (bug 1629381) for causing failures on test_reset_src.html. CLOSED TREE 2021-01-28 00:28:11 +02:00