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

769472 Коммитов

Автор SHA1 Сообщение Дата
criss 54043ff723 Backed out changeset 4c5f2e282204 (bug 1729421) for bc failures 2021-09-14 17:42:03 +03:00
Jonathan Kew 56e3aa0a0f 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 14:17:25 +00:00
Harry Twyford 3519e40d46 Bug 1729534 - Change Customize window theme picker to a button that points to about:addons#themes. r=dao,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D125120
2021-09-14 14:11:47 +00:00
Niklas Goegge 0c3899b477 Bug 1722252: Check if frame options should be ignored after checking if frame options are present. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D121872
2021-09-14 14:06:49 +00:00
criss 71bcf7f68f Backed out changeset 9888c5676034 (bug 1727158) for causing failures on image-loading-lazy-negative-margin.html 2021-09-14 17:02:43 +03:00
Micah Tigley ebe64856b4 Bug 1724319 - Fix remaining failing tests in browser/components/downloads/test/browser. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D125294
2021-09-14 13:50:27 +00:00
Katherine Patenio 63104627a6 Bug 1724319 - Fix tests in toolkit/mozapps/downloads/test + browser_first_download_panel.js when download pref enabled. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D125214
2021-09-14 13:50:27 +00:00
Alexandre Poirot 733bcba31b Bug 1728071 - [devtools] Avoid leaking the previous target via DOCUMENT_EVENT's will-navigate. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D123924
2021-09-14 13:44:58 +00:00
Alexandre Poirot 0a1bd5a05d Bug 1728070 - [devtools] Avoid leaking the MarkupView via a DOM event listener. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D123923
2021-09-14 13:44:57 +00:00
Alexandre Poirot 26c0737f53 Bug 1728069 - [devtools] Avoid leaking the markup view via a dangling listener on node picker. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D123922
2021-09-14 13:44:57 +00:00
Alexandre Poirot 7493eb86dc Bug 1727839 - [devtools] Avoid leaking targets from the ResourceCommand. r=nchevobbe
These off listeners were only cleaned on toolbox destroy,
whereas we should clear them on target destruction.

Differential Revision: https://phabricator.services.mozilla.com/D123921
2021-09-14 13:44:57 +00:00
Manuel Bucher ecf25dc8fa Bug 1730672 - Update neqo to 0.5.0 r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D125528
2021-09-14 13:37:19 +00:00
Tooru Fujisawa f1be6c68b4 Bug 1729859 - Use raw pointer or already_AddRefed in stencil API. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D125036
2021-09-14 13:26:44 +00:00
Emilio Cobos Álvarez 5f285c94eb Bug 1729421 - Do not key rule tree children by cascade level. r=jwatt
This was needed before, since we used to optimize empty style rules away
(and thus we could get confused between the important and non-important
block for two different elements).

But now we always keep them, and thus there's no way for the same
declaration block to appear in two similar paths of the rule tree
without different cascade levels.

I found this because if we want to implement the revert-layer CSS-wide
keyword, we need to put the layer order in the rule tree. However the
same thing applies: The same style source will always have the same
layer for a given cascade-data rebuild, so I believe this should be
fine.

Differential Revision: https://phabricator.services.mozilla.com/D124740
2021-09-14 13:24:37 +00:00
hxu 2f266214d2 Bug 1727497 - Return Dispatch result from NS_ProxyRelease; r=dom-storage-reviewers,xpcom-reviewers,nika,janv
Differential Revision: https://phabricator.services.mozilla.com/D124455
2021-09-14 13:17:55 +00:00
Drew Willcoxon c5ee0cc259 Bug 1730580 - Open the Privacy pref pane and highlight the Address Bar section when the Customize button in the Firefox Suggest online onboarding dialog is clicked. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D125457
2021-09-14 12:58:01 +00:00
Alexandre Poirot b88a847f5e Bug 1730108 - [devtools] Introduce a test to track memory while opening and closing the browser console. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D125154
2021-09-14 12:47:49 +00:00
Alexandre Poirot e856c50e32 Bug 1729500 - [devtools] Fix stack recording in the memory panel. r=jdescottes
Without this, server side target were breaking stack record in the memory panel.
We have to ensure toggling stack record ON before the page starts loading.

Differential Revision: https://phabricator.services.mozilla.com/D124823
2021-09-14 12:46:48 +00:00
Alexandre Poirot 7621eb3a9f Bug 1729500 - [devtools] Implement TargetConfigurationCommands.supports r=jdescottes
To help know if a given configuration is supported by the backend.

Differential Revision: https://phabricator.services.mozilla.com/D124824
2021-09-14 12:46:48 +00:00
Alexandre Poirot c69fc70787 Bug 1730507 - [devtools] Track globals of panel's documents from the leak scripts. r=jdescottes
We were correctly tracking the top toolbox document, while ignoring any of its children document,
which are all having about:blank location when processed by the allocation tracker.

While I can't easily add coverage for this particular code,
I'm adding some more coverage around the leak scripts.

Differential Revision: https://phabricator.services.mozilla.com/D125413
2021-09-14 12:18:27 +00:00
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