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

742876 Коммитов

Автор SHA1 Сообщение Дата
Jonathan Kew 0b9ef71f7f Bug 1687426 - If a CSS generic font-family name is present, use this to determine which font prefs to look at during fallback. r=emk
Differential Revision: https://phabricator.services.mozilla.com/D103598
2021-01-31 22:27:45 +00:00
Emilio Cobos Álvarez b274d0d387 Bug 1680084 - Tests. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D98745
2021-01-27 22:45:00 +00:00
Emilio Cobos Álvarez 0ed4f74e39 Bug 1689603 - Fix up one XUL test.
MANUAL PUSH: Orange CLOSED TREE
2021-02-01 00:07:20 +01:00
Glenn Watson cf743d8f14 Bug 1685145 - Fix incorrect usage of memory profiling code. r=jrmuizel
The calling code was directly calling the sizeof function, instead
of going via the API method wrapper.

Differential Revision: https://phabricator.services.mozilla.com/D103429
2021-01-31 20:15:47 +00:00
Emilio Cobos Álvarez 1cc19dee6a Bug 1689477 - Remove number-input padding special-case so that we size them the same way as text controls. r=spohl
This means that the number input by default shows some white space to
the right of the spinners. I think it's probably not the end of the
world, and depending on the different trade-offs we might want to do
this instead of fixing the test.

Depends on D103270

Differential Revision: https://phabricator.services.mozilla.com/D103271
2021-01-28 23:22:51 +00:00
Emilio Cobos Álvarez a091ae7d29 Bug 1689603 - Return 2px border for most widgets in nsNativeBasicTheme. r=spohl
This is slightly unfortunate on one hand because we're technically lying
(but so is chromium and our GTK theme, on the other hand).

It is nice because it means that themed and unthemed controls have the
same size by default though, which seems desirable.

So I'm a bit on the edge here, but I think this is probably the less bad
option to grow our form controls if we want to do it.

Differential Revision: https://phabricator.services.mozilla.com/D103477
2021-01-29 21:18:54 +00:00
Barret Rennie eebe62f30e Bug 1689740 - Check for nsIFile::GetParent() returning null in IOUtils r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D103520
2021-01-30 05:47:25 +00:00
Emilio Cobos Álvarez 06078ea6e0 Bug 1598613 - Remove single-caller method in PreloadService. r=edgar
Just drive-by cleanup, no behavior change.

Depends on D103563

Differential Revision: https://phabricator.services.mozilla.com/D103564
2021-01-31 21:16:30 +00:00
Emilio Cobos Álvarez db7e961185 Bug 1598613 - Fix non-unified build in nsHtml5TreeOpExecutor.cpp. r=edgar
Just drive-by cleanup, no behavior change.

There's an using namespace mozilla, so also remove some useless
namespace qualifications while at it.

Depends on D103562

Differential Revision: https://phabricator.services.mozilla.com/D103563
2021-01-31 21:19:23 +00:00
Emilio Cobos Álvarez 0f3f2503ea Bug 1598613 - Remove some useless kNamespaceID_Nones in HTMLLinkElement. r=edgar
Just drive-by clean-up, no behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D103562
2021-01-31 21:17:18 +00:00
Micah Tigley d245fddb87 Bug 1686316 - Show the allowFocusCheckbox for dialogs opened from TabDialogBox. r=Gijs
This revision introduces helpers for determining whether or not dialogs opened with TabDialogBox show the checkbox for allowing focus (tab switching). The approach for showing the checkbox follows the pattern similar to how its handled for TabModalPromptBox:

First, when a prompt is opened, the "DOMWillOpenModalDialog" event is fired from `PromptParent.jsm` on the browser tab. The browser then determines if the tab the event is dispatched on is the current selected tab. If the dialog was opened from another tab, then we check if the content prompt principal permission "focus-tab-by-prompt" is allowed for the URI the dialog was opened for and store its prompt principal on the tab prompt's `_onNextPromptShowAllowFocusCheckboxFor` property.  This presence for this value is ultimately what determines whether or not the checkbox is shown. Everything after that, the prompt's UI component is responsible for handling the checkbox's state and setting a handler for setting the permission when it's checked.

Implementing this for TabDialogBox makes it so we also store the prompt principal on the dialog box. We then process this value and send some information (such as explicitly setting a `checkLabel` value) via the `args` object for common dialog to process. And finally, we set the "focus-tab-by-prompt" permission for that URI via a closing callback for the dialog.

Differential Revision: https://phabricator.services.mozilla.com/D102076
2021-01-31 03:05:00 +00:00
Tim Nguyen cf8a197c9f Bug 1689727 - Followup: fix missing CSS in preferences #updateDeck. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D103593
2021-01-31 17:03:06 +00:00
Bob Owen 4967e1cddf Bug 1689398 p2: Add prefs to allow CET Strict Mode to be turned on for each sandboxed child process. r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D103474
2021-01-31 16:47:11 +00:00
Bob Owen cc73dd0338 Bug 1689398 p1: Add MITIGATION_CET_STRICT_MODE to chromium sandbox code. r=handyman
The patch for the chromium changes doesn't include the updates to
windows_version, because these are already in the release version of chromium
and so will be picked up when we next update.

Differential Revision: https://phabricator.services.mozilla.com/D103473
2021-01-31 16:46:48 +00:00
Mihai Alexandru Michis bd92b9b4a3 Bug 1689885 - Update expectations for beta. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D103587
2021-01-31 16:23:03 +00:00
Jan de Mooij 72b0edc3ed Bug 1674777 part 4 - Change some JSAPI byteLength and byteOffset accessors to return size_t instead of uint32_t. r=sfink
Of these four, only JS_GetTypedArrayByteLength is used outside jsapi-tests.

Differential Revision: https://phabricator.services.mozilla.com/D103277
2021-01-28 16:11:52 +00:00
Jan de Mooij 41621582c6 Bug 1674777 part 3 - Change Get*LengthAndData outparam from uint32_t to size_t. r=sfink,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D103275
2021-01-31 08:35:40 +00:00
Jan de Mooij 27b285bc46 Bug 1674777 part 2 - Enable large ArrayBuffers for jsapi-tests. r=sfink
Depends on D103273

Differential Revision: https://phabricator.services.mozilla.com/D103274
2021-01-28 15:54:23 +00:00
Jan de Mooij e6456075d7 Bug 1674777 part 1 - Change JS::NewArrayBuffer and JS_New*Array size argument from uint32_t to size_t. r=sfink
A later patch will add a jsapi-test for this.

Differential Revision: https://phabricator.services.mozilla.com/D103273
2021-01-28 15:53:44 +00:00
Emilio Cobos Álvarez 6168703191 Bug 1689854, bug 1689855 - Two more nnt fuzzy tweaks.
MANUAL PUSH: Unreviewed intermittent fix.
2021-01-31 09:04:03 +01:00
Jan de Mooij 8d290159a6 Bug 1688616 part 2 - Check for large ArrayBuffer{View}s in WebIDL bindings. r=edgar,lth
The dom::TypedArray type currently represents its length as uint32_t. Changing
that to size_t/uint64_t would cause problems (truncation) for many 'Length()' callers.
Instead of requiring a length check for each of those call sites, for now check for
and reject large array buffers and views in the generated bindings.

Code and tests are based on the implementation of the [AllowShared] attribute.
Additional tests for the new JSAPIs will be added as part of bug 1674777.

Differential Revision: https://phabricator.services.mozilla.com/D102912
2021-01-31 07:33:41 +00:00
Jan de Mooij 6b0004f4f5 Bug 1688616 part 1 - Add a browser pref for large ArrayBuffers. r=lth
The pref is only checked on startup and sets a process-wide flag, so that we
don't have to worry about the value changing from under us.

Differential Revision: https://phabricator.services.mozilla.com/D102911
2021-01-30 16:14:30 +00:00
longsonr c04dd7eafa Bug 1689799 - Ensure we move to the next path when displaying multiple adjacent textPaths r=emilio
reverts part of bug 1678756

Differential Revision: https://phabricator.services.mozilla.com/D103558
2021-01-30 21:35:17 +00:00
Emilio Cobos Álvarez 4d3481a3a2 Bug 1689359 - Two more fuzzy annotation tweaks.
MANUAL PUSH: Orange fix
2021-01-31 03:16:52 +01:00
Csoregi Natalia a7cb602561 Backed out changeset 73c1995ff098 (bug 1685779) for failures on browser_ext_menus_replace_menu.js. CLOSED TREE 2021-01-31 00:57:04 +02:00
Emilio Cobos Álvarez 20babafe8f Bug 1689359 - scrolling-attr-1 needs the same threshold as scrolling-attr-2.
MANUAL PUSH: Preventive orange fix.
2021-01-30 23:22:49 +01:00
Chris Peterson 119f424dc2 Bug 1685779 - Add Alt/Command + Left Arrow keyboard shortcut to Back button tooltip. r=Gijs,masayuki,fluent-reviewers,flod
We disabled Backspace as a keyboard shortcut to go back one page (bug 1041377). We can use the Back and Forward buttons' tooltips to advertise the other shortcuts users can use instead of Backspace (like we do on the Reload button's tooltip).

Differential Revision: https://phabricator.services.mozilla.com/D102053
2021-01-29 14:50:44 +00:00
Chris Peterson b84f179e44 Bug 1685779 - Remove unused and unneeded aNoCloverLeaf hack from prettifyShortcut. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D103144
2021-01-27 13:04:17 +00:00
Emilio Cobos Álvarez d8111fb49e Bug 1689359 - Tweak some fuzzy thresholds.
MANUAL PUSH: Orange on a CLOSED TREE
2021-01-30 20:47:59 +01:00
Csoregi Natalia 201492aa8e Merge mozilla-central to autoland on a CLOSED TREE 2021-01-30 21:44:12 +02:00
Csoregi Natalia 0a489e6757 Merge autoland to mozilla-central. a=merge 2021-01-30 21:39:38 +02:00
Emma Malysz 205673ebee Bug 1689405: remove components of library panel r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D103532
2021-01-30 17:12:51 +00:00
Tim Nguyen 553283a8aa Bug 1689742 - Stop using XUL <deck> for #setDefaultPane. r=preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D103522
2021-01-30 16:31:53 +00:00
stransky 50f8840f49 Bug 1689623 [Linux] Check mWidget before use at GtkCompositorWidget::GetTransparentRegion(), r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D103554
2021-01-30 15:55:18 +00:00
Emilio Cobos Álvarez 656310ede8 Bug 1689359 - Enable non-native-theme on Linux Nightly by default. r=spohl
Once all the remaining patches for test tweaks / fixes have landed, this
patch should be green on try. Couple test annotation changes:

 * clip-003.html fails the same way it fails on mac (odd, but couldn't
   repro...). I'll try to dig a bit more before calling it a day.

 * radiobutton-min-size starts behaving like every other platform.

 * Event-dispatch-redispatch and baseline-alignment-and-overflow start
   passing.

 * Couple minor fuzzy annotations (one was backwards, the other was
   missing).

Differential Revision: https://phabricator.services.mozilla.com/D103327
2021-01-30 15:55:00 +00:00
Butkovits Atila 80ba5dd933 Backed out 2 changesets (bug 1688616) for casing failures on test_large_arraybuffers.html. CLOSED TREE
Backed out changeset 560718ce8d2c (bug 1688616)
Backed out changeset 7985fd012bc7 (bug 1688616)
2021-01-30 18:10:09 +02:00
Tim Nguyen d21554599f Bug 1689727 - Stop using XUL <deck> for #updateDeck. r=preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D103519
2021-01-30 15:02:35 +00:00
Andreea Pavel 425a0f1be9 Backed out changeset 292d5c030eff (bug 1689232) on suspicion of cause macOS startup crashes (bug 1689807) a=backout 2021-01-30 16:46:35 +02:00
Butkovits Atila c5035ee52b Backed out 3 changesets (bug 1627111) for causing bug 1689505. CLOSED TREE
Backed out changeset 28e150b3df59 (bug 1627111)
Backed out changeset 5ff84c1e2f55 (bug 1627111)
Backed out changeset 8d0cb8c6bb7c (bug 1627111)
2021-01-30 16:33:26 +02:00
Mats Palmgren f6ef0ea044 Bug 1683748 - Support Grid/Flex/Table/Column layout for the rendered legend of a fieldset. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D101555
2021-01-30 13:47:10 +00:00
Narcis Beleuzu 868935867c Backed out 2 changesets (bug 1596897) for bc failures on browser_search_discovery.js
Backed out changeset 635972f169e7 (bug 1596897)
Backed out changeset a84b667007e2 (bug 1596897)
2021-01-30 04:01:21 +02:00
Narcis Beleuzu 37d1a797ce Backed out 2 changesets (bug 1689740, bug 1649611) for mochitest failures on test_ioutils_mkdir.html
Backed out changeset 91181a01b68c (bug 1649611)
Backed out changeset 4dd71fe08a0e (bug 1689740)
2021-01-30 02:47:37 +02:00
Ted Campbell f5fafb46ce Bug 1689734 - Further restrict ScriptPreloader use of CompileOptions. r=kmag,arai
The JS CompileOptions used to load cache entries must be consistent with
eachother to avoid subtle and serious bugs. This adds additional checks and
makes more consistent use of `FillCompileOptionsForCachedScript`.

This patch is a refactoring and should not change any behaviour.

Depends on D103515

Differential Revision: https://phabricator.services.mozilla.com/D103516
2021-01-29 22:54:59 +00:00
Ted Campbell a70f9b9fe5 Bug 1689734 - Cleanup lazy-source in nsFrameMessageManager if using ScriptPreloader. r=kmag
For consistency with other uses of the ScriptPreloader, we ensure we use lazy
script source when compiling for the cache. This generates full bytecode for
the cache but also avoids saving a copy of the source. If the frame script
were to call Function.prototype.toString, the existing source-hook would load
it in the same way as the JSM loader. In practice, we avoid relying on this
in our chrome code. If we will not be writing to the cache, we can instead
compile with the JS syntax parser, similar to what we do for JSM loader.

Differential Revision: https://phabricator.services.mozilla.com/D103515
2021-01-29 22:53:26 +00:00
Erica Wright b97c12efa4 Bug 1688683 - Personalize button and search should not overlap. r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D103195
2021-01-29 20:09:05 +00:00
Jon Coppeard 92b6ff7e1b Bug 1689394 - Don't inline error paths in marking r=sfink
Not related to the rest of this bug, I just happened to find it while looking at the generated code.  It seems clang inlines a bunch of error paths which should only very rarely be taken.  The patch adds hints to stop this from happening.

Depends on D103502

Differential Revision: https://phabricator.services.mozilla.com/D103503
2021-01-29 19:20:24 +00:00
Jon Coppeard b03fa64f6b Bug 1689394 - Simplify TraceKind definition to reduce code generated by switch statements r=sfink
Currently we arrange for the low thre bits of the TraceKind value be set for all trace kinds greater than seven (see definition of JS::TraceKind). This is to save a branch creating a GCCellPtr in GCCellPtr::checkedCast.

This has the side effect of generating an 80 entry lookup table when we switch on TraceKind when there are only 12 distinct trace kinds. And clang doesn't use a branch in checkCast anyway.

The patch changes TraceKind so that the values increment by one each time. This affects performance by increasing inlining opportunities in the marking code.

Depends on D103501

Differential Revision: https://phabricator.services.mozilla.com/D103502
2021-01-29 19:47:47 +00:00
Jon Coppeard 7199cefdef Bug 1689394 - Make sure the non-marking path is inlined in TraceEdgeInternal r=sfink
Previously this called a separate function in another file to do the virtual dispatch. This moves the DoCallback functions to Marking.cpp and marks them inline.

Depends on D103500

Differential Revision: https://phabricator.services.mozilla.com/D103501
2021-01-29 19:39:13 +00:00
Jon Coppeard 4234a7dca4 Bug 1689394 - Make updating tracing context information unconditional on the tracer kind r=sfink
One thing we have to do when tracaing is udpate context information (e.g. edge name) if the tracer is a kind that requires it. It's simpler and more efficient to give all tracers this context and perform an unconditional write to the stack.

Mostly we can get away without saving/restoring context information too. This adds AutoClearTracingContext for the one place we need to do this because of nested use of the same tracer while tracing something else.

Differential Revision: https://phabricator.services.mozilla.com/D103500
2021-01-30 11:21:28 +00:00
Butkovits Atila ae40e11a24 Backed out changeset 4500122fa98d (bug 476384) as requested by Henri. CLOSED TREE 2021-01-30 11:36:07 +02:00