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

769402 Коммитов

Автор SHA1 Сообщение Дата
colin_czb 2936b8c51a Bug 1619312 - Add match highlighting to codemirror in devtools. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D124130
2021-09-14 11:57:38 +00:00
Narcis Beleuzu e5d3122984 Backed out changeset 88fee7a54781 (bug 1729578) for crashtest failures on 1507961-1.html . CLOSED TREE 2021-09-14 15:20:04 +03:00
Emilio Cobos Álvarez 0fc9c3ee58 Bug 1729795 - Clean up openNewWindowWithFlushedXULCacheForMozSupports. r=jaws,extension-reviewers,zombie
The only test that still needs it is browser_tab_manager_visibility.js.
The rest look like proton leftovers.

After bug 1729477 those sheets are stored in the shared style sheet
cache, not in the XUL prototype cache, so remove that.

Differential Revision: https://phabricator.services.mozilla.com/D124983
2021-09-14 10:43:49 +00:00
Emilio Cobos Álvarez ba00bd23b7 Bug 1729477 - Remove nsXULPrototypeCache::mStyleSheetTable. r=smaug
With a very simple tweak to SheetLoadDataHashKey::KeyEquals we should
get the same kind of caching but in a much simpler way.

Depends on D125450

Differential Revision: https://phabricator.services.mozilla.com/D124807
2021-09-14 10:43:49 +00:00
Emilio Cobos Álvarez 3d56b49731 Bug 1729477 - Prevent SheetLoadData from creating cycles for too long. r=smaug
This fixes a leak that my previous patch uncovers. See comment 9 for the
diagnostic, I had missed mRequestingNode in comment 10.

The observer change is not technically necessary but since observers can
theoretically keep alive random stuff as well, clean them up as well.

In particular, clear mOwningNode after we've fired load / error events
(which is what we need it for), and mRequestingNode once we call
LoadComplete, where it is no longer useful.

Differential Revision: https://phabricator.services.mozilla.com/D125450
2021-09-14 10:43:48 +00:00
Emilio Cobos Álvarez 459a0551b8 Bug 1730625 - Walk the flat tree to search for links. r=smaug
Also make some other context-menu code a lot more straight-forward, and
remove some enabledness checks now that shadow dom can't be disabled.

Differential Revision: https://phabricator.services.mozilla.com/D125487
2021-09-14 10:26:46 +00:00
Jonathan Kew 0b513c5331 Bug 1729578 - Adjust overly-strict assertion in nsContinuingTextFrame::FirstContinuation(). r=emilio
It turns out this assertion (added as part of bug 1725555) is not necessarily valid.
When we're updating the frame tree in response to DOM modifications (in the testcase
here, we're under nsCSSFrameConstructor::ContentRemoved), we may call DeleteFrom on
the primary textFrame first, which results in calling SetPrevInFlow(nullptr) on its
nextContinuation; this in turn clears the mFirstContinuation back-pointers in all
the successors. But if we then call DeleteFrom on one of the continuations later
in the chain, those nulled-out pointers trigger this assertion. In fact, it's OK
for them to be null in this case, so the assertion is over-zealous and we should
drop it.

I believe the only time it's OK for this to happen is if the chain of nsContinuingTextFrames
has been "detached" from the primary frame during frame-tree updating, as has happened in
this example.

We can still sanity-check the mFirstContinuation pointer here by asserting that it
matches the FirstContinuation() reported by our prev-continuation, or is null if there
is no prev-continuation. This is a bit expensive, though, so it's a only a debug-mode
assertion (for the fuzzers to try and hit).

Differential Revision: https://phabricator.services.mozilla.com/D125444
2021-09-14 10:10:11 +00:00
André Bargull 691b7f9b13 Bug 1639515 - Part 6: Remove no longer used Intl.getDisplayNames. r=platform-i18n-reviewers,gregtatum
This function is no longer needed after part 5.

Differential Revision: https://phabricator.services.mozilla.com/D76118
2021-09-14 09:20:33 +00:00
André Bargull 1d8f2c8af6 Bug 1639515 - Part 5: Rewrite mozIntl.getDisplayNames to work in terms of mozIntl.DisplayNames. r=platform-i18n-reviewers,gregtatum,webidl,emilio
Rewrite `mozIntl.getDisplayNames` to use `mozIntl.DisplayNames`, so we can use
it for `intlUtils.getDisplayNames`, which doesn't have direct access to
`mozIntl.DisplayNames`.

This change will allow to remove `getDisplayNames` from SpiderMonkey in a later
patch in this stack.

Differential Revision: https://phabricator.services.mozilla.com/D76117
2021-09-14 09:20:33 +00:00
André Bargull 82ecb29b4c Bug 1639515 - Part 4: Update docs to point to Intl.DisplayNames. r=platform-i18n-reviewers,gregtatum
Update the documention to mention `Intl.DisplayNames` instead of
`Intl.getDisplayNames`.

Differential Revision: https://phabricator.services.mozilla.com/D76116
2021-09-14 09:20:32 +00:00
André Bargull 57f47703d6 Bug 1639515 - Part 3: Port mozIntl.getDisplayNames users to mozIntl.DisplayNames. r=platform-i18n-reviewers,gregtatum
Update callers to the previous `mozIntl.getDisplayNames` function to use
`mozIntl.DisplayNames`.

Differential Revision: https://phabricator.services.mozilla.com/D76115
2021-09-14 09:20:32 +00:00
André Bargull 5680bb810a Bug 1639515 - Part 2: Add mozIntl.DisplayNames. r=platform-i18n-reviewers,gregtatum
Expose `Intl.DisplayNames` to `mozIntl`. The exposed `Intl.DisplayNames` version
supports date-time types, which have been removed from the spec proposal, but
may be re-enabled at some point in the future.

The existing `getDisplayNames` WebIDL function had to be renamed, because WebIDL
doesn't allow specify an attribute named `DisplayNames` and a separate function
called `getDisplayNames`.

Drive-by change:
- Removed an out-dated comment in "mozIMozIntlHelper.idl" which mentioned calling
  `addDateTimeFormatConstructor` twice throws an error.

Differential Revision: https://phabricator.services.mozilla.com/D76114
2021-09-14 09:20:31 +00:00
André Bargull 4c720e7e22 Bug 1639515 - Part 1: Add non-standard "abbreviated" style to MozDisplayNames. r=platform-i18n-reviewers,gregtatum
As a non-standard extension, add the "abbreviated" style to be able to select
CLDR's abbreviated format. This style is used by the DateTimePicker component
for weekdays.

Differential Revision: https://phabricator.services.mozilla.com/D125174
2021-09-14 09:20:31 +00:00
criss 5d4d35a7da Bug 1730603 - Fix reftest failures.r=emilio. CLOSED TREE 2021-09-14 12:34:37 +03:00
Henrik Skupin f2bb39df37 Bug 1729280 - Fix links to WebDriver mailing list. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D125455
2021-09-14 08:37:55 +00:00
Henrik Skupin 7f5bca14c6 Bug 1729280 - Fix links to WebDriver chat. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D125454
2021-09-14 08:37:54 +00:00
Mirko Brodesser f4c5025751 Bug 1728955: part 7) Log result of Windows' `OleGetClipboardResult` . r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D125394
2021-09-14 08:01:18 +00:00
Jon Coppeard cb019e4cef Bug 1730140 - Fix calculation of compartments that are expected to be cleaned up now gray roots are marked later r=sfink
Previously we did this calculation after marking all the roots that doesn't
work any more. This handles setting the maybeAlive flag based on gray root
marking after that happens for each sweep group, and moves the calculation of
the compartments expected to die to the end of sweeping.

Depends on D125188

Differential Revision: https://phabricator.services.mozilla.com/D125380
2021-09-14 07:49:39 +00:00
Jon Coppeard fe43168478 Bug 1730140 - Remove the gray root buffer and mark gray roots after the start of collection r=sfink,mccr8
This removes gray root buffering from the first marking slice and traces the
gray roots directly in a later slice. This relies on Heap<T> read barriers
being sufficient to ensure correctness.

This is conservative in that it makes no effort to skip tracing roots added
after the start of GC. It also doesn't trace roots removed after the start of
GC, but this is OK because barriers ensure marking of any observed values.

The gray root tracing callback will be called once per sweep group, which means
we will trace all zone holders and xpconnect gray roots for every group rather
than just once. This should not be a problem in practice as we expect the
number of zones and hence zone groups to decrease with fission.

On the plus side we no longer have to do a virtual dispatch per root traced
(for the buffering tracer), allocate memory for the buffer, or trace each root
twice.

Note that this doesn't make the gray root marking itself incremental yet.

Differential Revision: https://phabricator.services.mozilla.com/D125188
2021-09-14 07:49:39 +00:00
Valentin Gosu 0500b123b6 Bug 1718267 - Flip network.cache.bug1708673 to false to fix browsertime regression r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D125398
2021-09-14 07:48:37 +00:00
criss 59cdd2a63e Backed out 6 changesets (bug 1639515) for causing failures on test_intlUtils_getDisplayNames.html. CLOSED TREE
Backed out changeset eaff696ed6a6 (bug 1639515)
Backed out changeset 6d361f92b27e (bug 1639515)
Backed out changeset 6919213b03f7 (bug 1639515)
Backed out changeset 5a08d3b17fa7 (bug 1639515)
Backed out changeset 3681111b7ed3 (bug 1639515)
Backed out changeset 970826244d07 (bug 1639515)
2021-09-14 10:45:35 +03:00
Mark Banner ad1d27699f Bug 1730477 - Change SessionStore.getWindowState to return an object instead of a string. r=kashav
Differential Revision: https://phabricator.services.mozilla.com/D125382
2021-09-14 07:25:29 +00:00
Sylvestre Ledru f1425a24ac Bug 1730407 - Update dependency Sphinx to v4.2.0 r=firefox-source-docs-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D125339
2021-09-14 06:57:30 +00:00
André Bargull 5ca3012766 Bug 1639515 - Part 6: Remove no longer used Intl.getDisplayNames. r=platform-i18n-reviewers,gregtatum
This function is no longer needed after part 5.

Differential Revision: https://phabricator.services.mozilla.com/D76118
2021-09-14 06:52:34 +00:00
André Bargull 1609d3964f Bug 1639515 - Part 5: Rewrite mozIntl.getDisplayNames to work in terms of mozIntl.DisplayNames. r=platform-i18n-reviewers,gregtatum,webidl,emilio
Rewrite `mozIntl.getDisplayNames` to use `mozIntl.DisplayNames`, so we can use
it for `intlUtils.getDisplayNames`, which doesn't have direct access to
`mozIntl.DisplayNames`.

This change will allow to remove `getDisplayNames` from SpiderMonkey in a later
patch in this stack.

Differential Revision: https://phabricator.services.mozilla.com/D76117
2021-09-14 06:52:33 +00:00
André Bargull 252e2973ec Bug 1639515 - Part 4: Update docs to point to Intl.DisplayNames. r=platform-i18n-reviewers,gregtatum
Update the documention to mention `Intl.DisplayNames` instead of
`Intl.getDisplayNames`.

Differential Revision: https://phabricator.services.mozilla.com/D76116
2021-09-14 06:52:33 +00:00
André Bargull acb7b9bcfc Bug 1639515 - Part 3: Port mozIntl.getDisplayNames users to mozIntl.DisplayNames. r=platform-i18n-reviewers,gregtatum
Update callers to the previous `mozIntl.getDisplayNames` function to use
`mozIntl.DisplayNames`.

Differential Revision: https://phabricator.services.mozilla.com/D76115
2021-09-14 06:52:33 +00:00
André Bargull 3607216c74 Bug 1639515 - Part 2: Add mozIntl.DisplayNames. r=platform-i18n-reviewers,gregtatum
Expose `Intl.DisplayNames` to `mozIntl`. The exposed `Intl.DisplayNames` version
supports date-time types, which have been removed from the spec proposal, but
may be re-enabled at some point in the future.

The existing `getDisplayNames` WebIDL function had to be renamed, because WebIDL
doesn't allow specify an attribute named `DisplayNames` and a separate function
called `getDisplayNames`.

Drive-by change:
- Removed an out-dated comment in "mozIMozIntlHelper.idl" which mentioned calling
  `addDateTimeFormatConstructor` twice throws an error.

Differential Revision: https://phabricator.services.mozilla.com/D76114
2021-09-14 06:52:32 +00:00
André Bargull d527935302 Bug 1639515 - Part 1: Add non-standard "abbreviated" style to MozDisplayNames. r=platform-i18n-reviewers,gregtatum
As a non-standard extension, add the "abbreviated" style to be able to select
CLDR's abbreviated format. This style is used by the DateTimePicker component
for weekdays.

Differential Revision: https://phabricator.services.mozilla.com/D125174
2021-09-14 06:52:32 +00:00
Timothy Nikkel 23e5fd11c1 Bug 1730131. HitTestingTreeNode::GetRemoteDocumentScreenRect() double applies the resolution. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D125484
2021-09-14 02:33:36 +00:00
Nika Layzell d676bbdc6d Bug 1727158 - Part 2: Bump processCount.webIsolated to 4 on desktop, r=annyG
Differential Revision: https://phabricator.services.mozilla.com/D125293
2021-09-14 01:30:51 +00:00
Nika Layzell 6deb2cb2b7 Bug 1727158 - Part 1: Fix tests which will fail when processCount.webIsolated is set to 4, r=annyG,extension-reviewers,rpl
Differential Revision: https://phabricator.services.mozilla.com/D125292
2021-09-14 00:55:04 +00:00
Emilio Cobos Álvarez f39a1503ae Bug 1730603 - Use standins if forced to in nsNativeBasicTheme.
MANUAL PUSH: hcm test fix CLOSED TREE
2021-09-14 02:55:51 +02:00
Timothy Nikkel e0efc502a5 Bug 1729606. Remove unused LayerClip, Layer::Get/SetScrolledClip, Layer::*AncestorMaskLayer* and related code. r=botond
Depends on D125473

Differential Revision: https://phabricator.services.mozilla.com/D125476
2021-09-14 00:05:49 +00:00
Timothy Nikkel e913e150ed Bug 1729606. Remove unused ScrollMetadata::mScrollClip. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D125473
2021-09-14 00:05:48 +00:00
Byron Campen 527386b7e7 Bug 1730238: Re-enable these tests on windows 2004. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D125443
2021-09-13 23:57:36 +00:00
Jonathan Kew 2535a4390c Bug 1730084 Part 6 - Add some empty fragments to the word-breaker test data. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D125180
2021-09-13 23:55:34 +00:00
Ting-Yu Lin f8152b2b24 Bug 1730084 Part 5 - Remove WordBreaker::BreakInBetween(). r=jfkthame
The motivation of this patch is to remove rarely used API in
WordBreaker. WordBreaker::BreakInBetween() is used only in
nsFind::BreakInBetween() in production, and it can be replaced by
Next().

If the user wants to know whether there is a word break between two
strings such as the use cases in gtest, joining the two strings and
passing the result to Next() is the preferred way.

Note: I delete the buggy forward word search algorithm in
TestFindWordBreakFromPosition() because from the test expectations, it
doesn't expect to continue the search in previous fragments. Also, the
buggy part comes from the following code, which had undefined behavior
before Part 4, and does nothing after Part 4.

```
wbk->FindWord(prevFragText.get(), prevFragText.Length(), prevFragText.Length());
```

Differential Revision: https://phabricator.services.mozilla.com/D125151
2021-09-13 23:55:33 +00:00
Ting-Yu Lin bd25bca479 Bug 1730084 Part 4 - Clean up and fix an edge case of FindWord(). r=jfkthame
* Rename arguments so that their names are consistent with Next().
* Make the function not assert on an empty string, i.e. aLen == 0, like
Next().
* Fix an undefined behavior when the user passes aTextLen == aOffset.
The methods used to access `aText[aOffset]` that is clearly out of range
because the string may not be null-terminated. After this patch, it
returns a sentinel WordRange when aLen == aPos.
* Add document and gtest TestFindWordWithEmptyString().
* Change the sentinel return value to {aLen,aLen} for FindWord(), and
adapt one caller.

Differential Revision: https://phabricator.services.mozilla.com/D125434
2021-09-13 23:55:33 +00:00
Ting-Yu Lin d801856fe0 Bug 1730084 Part 3 - Remove unused declaration in nsFind.h. r=jfkthame
nsFindContentIterator was removed in Bug 1455891.
https://hg.mozilla.org/mozilla-central/rev/2eca66a467ee

Differential Revision: https://phabricator.services.mozilla.com/D125150
2021-09-13 23:55:33 +00:00
Ting-Yu Lin 1cb1be5597 Bug 1730084 Part 2 - Change nextChar from char16_t to char32_t in nsFind::Find(). r=jfkthame
nextChar gets its value from DecodeChar() and PeekNextChar(), and both
functions return char32_t. It also passes as a char32_t argument to
BreakInBetween(). Therefore it really should have 32 bits to avoid
potential truncation.

Differential Revision: https://phabricator.services.mozilla.com/D125149
2021-09-13 23:55:32 +00:00
Ting-Yu Lin b94f1b97c5 Bug 1730084 Part 1 - Run TestNextWordBreakWithEmptyString as a test. r=jfkthame
The function is added in Bug 1728708 Part 4, but it never get called, so
this patch transforms it into a test in WordBreak test suite to make it
run.

While I'm here, other individual functions are also transformed into
tests so that we can have more granular results if some of them failed.

Differential Revision: https://phabricator.services.mozilla.com/D125148
2021-09-13 23:55:32 +00:00
Emilio Cobos Álvarez 1f6f8d1fee Bug 1730603 - Blend with ancestor backgrounds until we compute an opaque backplate color. r=morgan
This should ensure the correct behavior when system colors are
semi-transparent, like on macOS on dark mode.

Testing this without hard-coding the system color seems hard (and I
think macOS on automation might not even hard native dark mode support
anyways).

In fact, if it did I think backplat-bg-image-006 would've caught it.

Differential Revision: https://phabricator.services.mozilla.com/D125475
2021-09-13 23:49:55 +00:00
Daniel Holbert b1a516037c Bug 1730595: Remove unused constants from nsDOMOfflineResourceList.cpp. r=mccr8
The removed entries all have zero usages in this file; i.e. they're all dead
code.

Differential Revision: https://phabricator.services.mozilla.com/D125466
2021-09-13 23:38:57 +00:00
Morgan Reschenberg eae2965c1b Bug 1730545: Add CopyableTArray<int32_t> to AccAttributes variant r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D123398
2021-09-13 23:02:47 +00:00
Steve Fink 3ff9c34f6e Bug 1729602 - Forward T constructor arguments through `PersistentRooted<T> foo(cx, ...args...)` r=tcampbell,jonco
Differential Revision: https://phabricator.services.mozilla.com/D124996
2021-09-13 22:58:53 +00:00
Steve Fink 2ddcc9e183 Bug 1729602 - Templatize RootHolder in PersistentRooted to more closely match Rooted r=tcampbell,jonco
Differential Revision: https://phabricator.services.mozilla.com/D124995
2021-09-13 22:58:53 +00:00
Steve Fink 90d784a9bd Bug 1729602 - Forward T constructor arguments through `Rooted<T> foo(cx, ...args...);` r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D124869
2021-09-13 22:58:52 +00:00
Steve Fink c6e64ca198 Bug 1729602 - Remove the magic cx constructor handling in `Rooted<TypeConstructibleWithCx> foo(cx);` r=tcampbell,jonco
Differential Revision: https://phabricator.services.mozilla.com/D124994
2021-09-13 22:58:52 +00:00
Byron Campen a546dccdaf Bug 1730267: Clean up wpt meta files. r=jib
Fix lots of intermittents, add bug links where necessary, and fix a handful
of tests.

Differential Revision: https://phabricator.services.mozilla.com/D125299
2021-09-13 22:20:04 +00:00