Commit Graph

758051 Commits

Author SHA1 Message Date
Marian-Vasile Laza
338fc0a451 Backed out changeset 2f74f8f2ed19 (bug 1689816) for causing reftest failures on skip-ink-multiline-position.html. 2022-09-26 23:24:03 +03:00
Marian-Vasile Laza
b7f6194b8d Backed out changeset 0679274d6ed5 (bug 1792398) for causing bc failures on browser_sendQuery.js. CLOSED TREE 2022-09-26 22:53:00 +03:00
Shane Hughes
1577034f2f Bug 1791770 - Prevent add-ons from showing Fx View tab. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D158009
2022-09-26 19:33:52 +00:00
Mozilla Releng Treescript
0ff2264b28 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
cy -> 5a3ee1374fbf3a5ee828976c84438bd25734c5ff
fr -> d7058633f469816a48e2cc1f8984884d6f53fefd
lo -> f5a4f14ad609ec384f2f217d0f5115ed521edf66
sk -> 607b50eb44985657d9017c0bba610ba7844af4f7
tg -> 0f398c4c591dc24095c1193f9b6ad84757c34000
2022-09-26 19:04:00 +00:00
Mark Banner
5dcae1ed44 Bug 1792398 - Enable ESLint rule 'strict' on mjs files as the directive is not necessary for modules. r=arai,pip-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D158115
2022-09-26 18:51:57 +00:00
Dan Mosedale
d86e156394 Bug 1791873 - fix FxView sync-setup-container kbd access,r=Gijs
Backout tabIndex changes that caused the problem and add an integration test.

Differential Revision: https://phabricator.services.mozilla.com/D157988
2022-09-26 18:43:31 +00:00
William Durand
d04b6ba91b Bug 1790843 - Reduce the min width of the urlbar on small screens. r=dao
This patch adds some space after the menu button in the toolbar, which
makes things a lot better on MacOS and I noticed a small improvement on
Windows too.

Differential Revision: https://phabricator.services.mozilla.com/D158138
2022-09-26 18:34:00 +00:00
Emilio Cobos Álvarez
ba878e30c1 Bug 1689816 - Implement <tabpanels> and <deck> without XUL layout. r=Gijs,Jamie,morgan,preferences-reviewers,mconley,TYLin
Gijs for front-end bits, layout for the new CSS properties and the
removal of nsDeckFrame / nsStackLayout, Jamie and Morgan for the a11y
changes.

As discussed in the bug, the main tricky part here is handling a11y
correctly. For <deck>, that's trivial (just use `visibility: hidden` to
hide the panels visually, while removing the unselected panels from the
a11y tree).

For <tabpanels> however we need to do something special. We do want to
hide stuff visually, but we want to preserve the contents in the a11y
tree.

For that, the easiest fix is introducing a new privileged CSS property
(-moz-subtree-hidden-only-visually), which takes care of not painting
the frame, but marks stuff offscreen in the accessibility tree. This is
not intended to be a property used widely.

Other than that, the changes are relatively straight-forward, though
some of the accessible/mac changes I could get a sanity-check on.

Differential Revision: https://phabricator.services.mozilla.com/D157875
2022-09-26 17:40:30 +00:00
Narcis Beleuzu
95ae6b7d0f Backed out changeset 849faf753208 (bug 1792398) for bc failures on browser_sendQuery.js . CLOSED TREE 2022-09-26 20:44:40 +03:00
Mark Banner
ff212fab8b Bug 1792398 - Enable ESLint rule 'strict' on mjs files as the directive is not necessary for modules. r=arai,pip-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D158115
2022-09-26 16:51:10 +00:00
Alexandre Poirot
dd41349dba Bug 1786467 - [devtools] Sort debugger SourceTree in a meaningful way. r=bomsy
The main thread is always displayed first,
then we display all content process targets (sorted by PID number),
and we end up with worker targets (sorted alphabetically).

This should follow the same order as the js context selector.

Differential Revision: https://phabricator.services.mozilla.com/D155336
2022-09-26 16:42:30 +00:00
Ting-Yu Lin
1f1d620f94 Bug 1792391 Part 3 - Override GetFrameName() for BRFrame, and improve nsLineBox::List(). r=emilio
Override GetFrameName() for BRFrame so that frame tree dump shows `BR(br)`
rather than `Frame(br)`.

Also, expand nsLineBox::StateToString() in List() to get rid of `cbuf`.

Differential Revision: https://phabricator.services.mozilla.com/D158111
2022-09-26 16:32:33 +00:00
Ting-Yu Lin
3b0b96670c Bug 1792391 Part 2 - Replace !IsBlock() with IsInline() in nsLineBox. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D158110
2022-09-26 16:32:33 +00:00
Ting-Yu Lin
8baa2862b0 Bug 1792391 Part 1 - Remove unneeded keyword for BRFrame method's declaration. r=emilio
Remove `virtual` for methods already having `override`. Remove `explicit` for
the constructor because it has two parameters.

Differential Revision: https://phabricator.services.mozilla.com/D158109
2022-09-26 16:32:33 +00:00
Ben Hearsum
89c064c808 Bug 1791981: guard against null dereference in Windows 7 taskbar pinning code r=bytesized
Differential Revision: https://phabricator.services.mozilla.com/D158140
2022-09-26 16:30:56 +00:00
Sandor Molnar
fe09902090 Backed out changeset 2afbb35af4d7 (bug 1492570) for causing build bustages in js/src/vm/Realm.cpp CLOSED TREE 2022-09-26 19:24:55 +03:00
Mike Maksymowych
3db2688888 Bug 1492570 - Resolve shadow variable warnings. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D155799
2022-09-26 16:09:52 +00:00
Mathew Hodson
52287e7f89 Bug 1776578 - Make no-addtask-setup eslint rule check for init tasks. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D150333
2022-09-26 13:58:49 +00:00
Mathew Hodson
f84488ba91 Bug 1776578 - Replace init tasks with add_setup in mochitests. r=application-update-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D149486
2022-09-26 13:58:49 +00:00
Alexandre Poirot
58b38d7c16 Bug 1791969 - [devtools] Import all JSM in DevTools via ChromeUtils.import. r=jdescottes
Convert all imports but the one related to SessionDataHelper
as that's an hybrid module which is loaded as a JSM from the main thread,
but loaded as a common js module from the worker thread.

We will be able to drop this once we can migrate this JSM to ESM
once we support loading ESM from the worker thread.

Differential Revision: https://phabricator.services.mozilla.com/D158007
2022-09-26 13:01:33 +00:00
Alexandre Poirot
13775af5a0 Bug 1791969 - [devtools] Import all JSMs in DevTools with absolute URIs. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158006
2022-09-26 13:01:33 +00:00
Alexandre Poirot
633eb069ef Bug 1791832 - [devtools] Convert devtools/startup JSM to ES Modules. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157911
2022-09-26 10:48:05 +00:00
Alexandre Poirot
90ddca703f Bug 1791828 - [devtools] Remove eslint support for DevTools's lazyImporter. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158004
2022-09-26 10:48:05 +00:00
Alexandre Poirot
94fbe736c2 Bug 1791828 - [devtools] Remove devtools lazyImporter in favor of ChromeUtils.defineModuleGetter. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157910
2022-09-26 10:48:04 +00:00
Alexandre Poirot
3f479154b1 Bug 1276347 - [devtools] Remove "reportError" from devtools module globals. r=jdescottes
This might have only be useful from the source actor.
In workers, you don't have access to Cu, so nor have access to Cu.reportError.
Otherwise from the main thread, you can safely use Cu.reportError.

In couple of places I'm removing the usage of reportError.
Hopefully throwing an exception is enough to get the error displayed!

Differential Revision: https://phabricator.services.mozilla.com/D157909
2022-09-26 10:48:04 +00:00
Mohamed Atef
d9f2c24cdc Bug 1788709: Clean up leftover functions from ReportOutOfMemory XDR transition. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D157842
2022-09-26 09:50:57 +00:00
Mozilla Releng Treescript
ef42fcdea1 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
it -> f81a8bc59550d9103b7616a242de894de4f9df5b
lo -> c538d8b5bfa25fb59758782b4ccccea51705f611
tg -> eeb4fd4a702ee953d3df69ff51c94ecb32426008
2022-09-26 06:58:16 +00:00
sotaro
84347a9ce9 Bug 1792008 - Check size when mNotLost->mCanvasRenderer is re-used r=lsalzman,gfx-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D158096
2022-09-26 05:14:45 +00:00
Paul Bone
2f27878131 Bug 1786860 - Use phys_footprint on MacOS to provide MEMORY_TOTAL r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D156309
2022-09-26 02:42:43 +00:00
Paul Bone
4f8dc9b127 Bug 1786860 - Add a comment about ResidentUnique's performance on MacOS r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D156308
2022-09-26 02:42:43 +00:00
Paul Bone
e006f39ca6 Bug 1786860 - Use TASK_VM_INFO on Mac to provide a new about:memory measurement r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D153569
2022-09-26 02:42:42 +00:00
Masayuki Nakano
f1a20cf34a Bug 1791223 - Use MoveNodeResult as the ok type of mozilla::Result r=m_kato
Unfortunately, it's hard to split this (and similar) patch because we need to
touch `MoveNodeResult` itself for making it available as the ok type of
`Result`.  However, I guess that it's not so hard to investigate regression
point if something would be found later because `MoveNodeResult` is mainly
used by deletion which is the most complicated part of `HTMLEditor`, but
`MoveNodeResult` is used only in a few cases.

Differential Revision: https://phabricator.services.mozilla.com/D157574
2022-09-26 00:56:46 +00:00
Dale Harvey
3e229c9f49 Bug 1790790 - Add Nimbus flag to control Search Private Default. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D157605
2022-09-26 00:34:11 +00:00
Jonathan Kew
af7c2fd1ca Bug 1740526 - Let OTS validate the COLR/CPAL tables. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D157476
2022-09-25 23:04:31 +00:00
Mozilla Releng Treescript
d678e115e0 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
kk -> fb5e622c57a8c364c4db0e36f0766c4599b85dc1
ko -> e90d42d902a61ea21e0e574d4c7ea2d533392215
lo -> f1807fe2dffcfb11beaa858f29a95bdaaf9843ec
ru -> 06d6bf5c7adb54c67fb9e9f8c27d1af973d2fd3d
sk -> 90ac720f20704cfa61508e9c4dcf4759009fe30a
te -> f48eb7c14603a7405827af48b2ac9ad3c7b84460
tg -> aa0b52b88e19005289dd9ed663e8bdf980fe7544
zh-TW -> ac94972630881d0d61900aecfbe8952e386cfbd9
2022-09-25 19:03:57 +00:00
Steve Fink
be264ec2bc Bug 1790149 - Fix spelling of perfherder-data.json output file for awsy r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D157002
2022-09-25 18:14:15 +00:00
Masayuki Nakano
10b799c6bf Bug 1782911 - part 10: Make HTMLEditor::MoveOneHardLineContentsWithTransaction delete trailing linefeed if it becomes not preformatted r=m_kato
This is a hack for compatibility with the other browsers.  When we move first
line of `<pre>` to left paragraph whose `white-space` style does not make it
preformatted, they drop the last linefeed because of unnecessary.

Differential Revision: https://phabricator.services.mozilla.com/D157419
2022-09-25 12:49:47 +00:00
Masayuki Nakano
ad7a74b296 Bug 1782911 - part 9: Make WhiteSpaceVisibilityKeeper::MergeFirstLineOfRightBlockElementIntoAncestorLeftBlockElement stop creating empty nodes r=m_kato
It splits inline elements at the destination of first line in the right block.
However, it typically creates empty inline elements before the right block and
may be never used because it sets the insertion point to before the right node
of the splitting.

Therefore, it should stop creates empty inline elements (if they are required,
they should be created in `HTMLEditor::MoveNodeOrChildrenWithTransaction`
instead) and adjust split point after the element if it didn't split any nodes.

Differential Revision: https://phabricator.services.mozilla.com/D157418
2022-09-25 12:49:46 +00:00
Masayuki Nakano
f021958117 Bug 1782911 - part 8: Make HTMLEditor::MoveOneHardLineContentsWithTransaction clean up line break before right block if its first line is moved there r=m_kato
When the first line of right block element is moved before the block element,
unnecessary line break may be moved to immediately before the right block
element.  In the case, it needs to clean it up instead of trying to find
unnecessary line break at end of the left block which is a container of the
right block element.

Differential Revision: https://phabricator.services.mozilla.com/D157417
2022-09-25 12:49:46 +00:00
Masayuki Nakano
d932af0a3b Bug 1782911 - part 7: Make HTMLEditor::MoveOneHardLineContentsWithTransaction stop moving empty inline nodes r=m_kato
Empty inline nodes except non-container nodes are not required in the
destination paragraph.  Therefore, it should just remove the node from the
DOM tree.

Differential Revision: https://phabricator.services.mozilla.com/D157416
2022-09-25 12:49:45 +00:00
Masayuki Nakano
bd97363cbd Bug 1782911 - part 6: Make HTMLEditor::MoveOneHardLineContentsWithTransaction delete new empty inline parents if deleting unnecessary line break creates them r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D157415
2022-09-25 12:49:45 +00:00
Masayuki Nakano
f760d775d9 Bug 1782911 - part 5: Make HTMLEditor::AutoBlockElementsJoiner scan previous (or next) paragraph with ignoring invisible data nodes r=m_kato
We don't ignore invisible data node at joining 2 paragraphs and this is
a different behavior from the other browsers.  When looking for a content
from current block boundary, `AutoBlockElementsJoiner` should keep scanning
visible things with ignoring invisible data nodes.  Then, it should delete
all invisible things after joining the paragraphs.

Differential Revision: https://phabricator.services.mozilla.com/D157414
2022-09-25 12:49:44 +00:00
Masayuki Nakano
939b5ca8f4 Bug 1782911 - part 4: Make HTMLEditor::MoveNodeOrChildrenWithTransaction preserve white-space style at moving different style node r=m_kato
Chrome and Safari preserve `white-space` with `style` attribute to keep
collapsible or preserved white-spaces as-is.  If an HTML element is moved,
`style` attribute should be set to it.  Otherwise, create `<span>` element
whose `style` attribute has the declaration for `white-space` and move
content into it.

Differential Revision: https://phabricator.services.mozilla.com/D157413
2022-09-25 12:49:44 +00:00
Masayuki Nakano
bbb312974a Bug 1782911 - part 3: Make HTMLEditor always move first line of right block only when the blocks have different white-space style r=m_kato
Gecko just joins 2 blocks when editable block parents are same element, e.g.,
both are `<div>`.  However, Chrome and Safari moves only first line of the
right block into the left block, and Gecko does it when both blocks are
different elements.

Ideally, we should take same behavior as Chrome and Safari because it's
reasonable for both compatibility with the other browsers and consistency
when both blocks are different but has same style, then we don't need to
maintain different behavior paths.

However, doing it for all elements are too risky because right block will be
merged into left block if right block has no line break.  On the other hand,
without doing it, preserving `white-space` is really hard because we need to
maintain the both paths.

Therefore, I'd like to change the behavior only when both blocks have different
`white-space` styles.  Usually, web apps do not change `white-space` for each
block, so I think that this is safer than doing this in all elements,
additionally, we can revert the behavior easy since this patch is really small.

Differential Revision: https://phabricator.services.mozilla.com/D157412
2022-09-25 12:49:43 +00:00
Masayuki Nakano
f1076d3f4c Bug 1782911 - part 2: Clean up unnecessary line break at block boundary while moving first line of right paragraph to left paragraph r=m_kato
This fixes bug 503838 partially.  The new utility method scans unnecessary
`<br>` with strict check as far as possible.  Then, we can delete the node or
the preformatted line break at end of the last text node.

Differential Revision: https://phabricator.services.mozilla.com/D157411
2022-09-25 12:49:43 +00:00
Masayuki Nakano
a641eef400 Bug 1782911 - part 1: Port most tests of test_bug772796.html to WPT r=m_kato
This patch ports most part of `editor/libeditor/tests/test_bug772796.html` to
WPT because this kind of behaviors are not tested by `editing/run/delete.html`
nor `editing/run/forwarddelete.html`. (Not ported tests are invalid HTML
structure cases and list item cases, the reason why not doing this for the
latter is, it needs a lot of cases and not important for most web apps.)

The most expectations are based on Chrome and Safari (they both behave almost
same), but they fail a lot in `join-pre-and-other-block.html` and
`white-space: pre-line` cases in the other tests.

Even though this ports a lot of cases, for making easier to compare the
behavior change in the following patches, we should keep the tests.

Differential Revision: https://phabricator.services.mozilla.com/D157410
2022-09-25 12:49:42 +00:00
Ted Campbell
ff455a75f3 Bug 1790912 - Migrate js/ductwork/debugger to devtools/platform. r=ochameau
This gecko integration code is better managed with the other devtools platform
hook code. To simplify resolving the JSM and avoiding issues around restricted
use of eval in chrome, I also reset the DIST_SUBDIR config and run the xpcshell
tests without a firefox-appdir. The test works on Android these days, so
re-enable it on that platform.

Differential Revision: https://phabricator.services.mozilla.com/D157522
2022-09-25 09:03:34 +00:00
Ted Campbell
b88c12d932 Bug 1790912 - Fix lint issues in js/ductwork/debugger. r=ochameau
When we move this out of the js/ directory, a number of lint exceptions stop
applying so we should just fix the issues now.

Differential Revision: https://phabricator.services.mozilla.com/D157521
2022-09-25 09:03:33 +00:00
Ted Campbell
7eb7d39c99 Bug 1790912 - Use globalThis instead of this with jsdebugger.jsm. r=jandem,ochameau
Use 'globalThis' instead of 'this' when trying to attach a debugger to the
current global to avoid subtle footguns with the varied definitions of 'this'.
The debugger interface needs a true GlobalObject so this is much clearer. In
particular, this is a problem in test_nativewrappers.js when the test runs in
strict mode since the 'this' in the test function is no long implicitly the
global.

Differential Revision: https://phabricator.services.mozilla.com/D157544
2022-09-25 09:03:33 +00:00
Mozilla Releng Treescript
6ff43724a1 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
sl -> ad95573f93ba628d14ded08ed14dc585ba0ca8dd
sv-SE -> 13c7bce8d37954d32cb6a736e944eb65fb4957bf
tg -> 0856230c9cbd021338626886d7bb4629d8bbef77
2022-09-25 06:59:06 +00:00