Commit Graph

27369 Commits

Author SHA1 Message Date
Noemi Erli
a4dae64f34 Backed out 2 changesets (bug 1851816) for causing private browsing related failures CLOSED TREE
Backed out changeset d2f63b3f6342 (bug 1851816)
Backed out changeset 7d0d2fe95e67 (bug 1851816)
2023-11-07 00:18:54 +02:00
Daisuke Akatsuka
a899e73b55 Bug 1855386: Remove nsNavBookmarks::ResultNodeForContainer() r=mak
Differential Revision: https://phabricator.services.mozilla.com/D190650
2023-11-06 21:28:19 +00:00
Tom Ritter
19d70df0a2 Bug 1851816: Pass PBM Status into RFPIsEnabledFor r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D192501
2023-11-06 21:02:40 +00:00
Bas Schouten
0a171fad03 Bug 1862939 - Part 3: Add Glean histogram telemetry for LCP, mirrored to legacy telemetry. r=sefeng
Differential Revision: https://phabricator.services.mozilla.com/D192710
2023-11-06 20:32:44 +00:00
Bas Schouten
f84fd4c255 Bug 1862939 - Part 2: Add LCP information to the Pageload Event. r=dpalmeiro
Differential Revision: https://phabricator.services.mozilla.com/D192695
2023-11-06 20:32:44 +00:00
Bas Schouten
c5c5d07e9f Bug 1862939 - Part 1: Add LCP to nsDOMNavigationTiming. r=sefeng
Differential Revision: https://phabricator.services.mozilla.com/D192689
2023-11-06 20:32:43 +00:00
Emilio Cobos Álvarez
f3cfe85712 Bug 1789214 - When forcing colors without a color-scheme, compute prefers-color-scheme based on them. r=morgan
This requires moving some code around to PreferenceSheet, but that makes
stuff actually a bit simpler.

Depends on D192574

Differential Revision: https://phabricator.services.mozilla.com/D192575
2023-11-06 19:59:38 +00:00
Emilio Cobos Álvarez
be8b88445c Bug 1855861 - Make stylesheet load events only fire if the sheet has an owner node. r=smaug
This matches the behavior of other browsers, and avoids having to keep
alive the link element and thus associated document etc for too long.

Differential Revision: https://phabricator.services.mozilla.com/D192834
2023-11-06 17:05:10 +00:00
Mark Banner
a033642737 Bug 1858148 - Remove Cu.importGlobalProperties from sjs files as it is no longer needed. r=mossop,webdriver-reviewers,necko-reviewers,search-reviewers,devtools-reviewers,anti-tracking-reviewers,sessionstore-reviewers,pbz,dao,daleharvey,valentin
Differential Revision: https://phabricator.services.mozilla.com/D190759
2023-11-04 09:29:27 +00:00
Emilio Cobos Álvarez
963fd8d292 Bug 1862924 - Remove devtools.toolbox.force-chrome-prefs. r=devtools-reviewers,nchevobbe
Instead, use forced-color-adjust: none to disable HCM forced colors in
DevTools, for now. It's a more straight-forward way of doing it.

Differential Revision: https://phabricator.services.mozilla.com/D192669
2023-11-03 21:46:49 +00:00
Norisz Fay
c24a942776 Backed out 2 changesets (bug 1861848) for causing Linux asan J1 exceptions CLOSED TREE
Backed out changeset 69a9a6852a6b (bug 1861848)
Backed out changeset 1496b731cc40 (bug 1861848)
2023-11-03 22:19:17 +02:00
owlishDeveloper
5dbae0b525 Bug 1855514 - Disable currently failing M-xorig tests on Fission Android and start running M-xorig for Fission Android on central and autoland r=extension-reviewers,jmaher,robwu
Differential Revision: https://phabricator.services.mozilla.com/D192647
2023-11-03 19:26:26 +00:00
Cathie Chen
1a3d0bd724 Bug 1668136 - Set visible the content relevancy of an element with content-visibility:auto if its descendant is called scrollIntoView, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D186943
2023-11-03 15:37:29 +00:00
Olli Pettay
8b37c598f6 Bug 1861848 - Let foreground content processes run idle tasks and GC without consulting the parent process, r=farre,pbone
Differential Revision: https://phabricator.services.mozilla.com/D192144
2023-11-03 10:14:19 +00:00
Sean Feng
539e32202b Bug 1722322 - Implement LargestContentfulPaint r=emilio
Spec: https://w3c.github.io/largest-contentful-paint

Differential Revision: https://phabricator.services.mozilla.com/D151079
2023-11-02 20:53:36 +00:00
Victor Boivie
78c69e2b34 Bug 1859759: Use enum class for partial reliability policy r=jesup,bwc
This commit changes from using a C style enum to a C++ enum class which adds
type safety. This is just a refactoring commit with no changes in behavior.

This avoids an (potentially unsafe) untyped downcast from PeerConnection.idl
types to what's used in DataChannel.h.

Differential Revision: https://phabricator.services.mozilla.com/D192070
2023-11-02 18:57:17 +00:00
Victor Boivie
fc332d7f61 Bug 1859759: Use enum class for data channel states r=jesup,bwc
There are two states; One for the entire data channel connection, which is
an internal property (now called just "state") indicating the state of the
SCTP connection setup.

The other state is the per-data channel state, indicating if it's opening, open
or closing. This is called "readyState" in the RTCDataChannel API, and that
(somewhat odd) name is kept in the underlying C++ representation.

This commit changes from using a C style enum to a C++ enum class which adds
type safety. Some minor code style cleanup was done as well as code was
refactored.

Differential Revision: https://phabricator.services.mozilla.com/D192066
2023-11-02 18:57:16 +00:00
Sandor Molnar
a4163792c6 Backed out 7 changesets (bug 1722322) for causing bp-nu bustages
Backed out changeset 0ebd32e273b8 (bug 1722322)
Backed out changeset 7a75717f127c (bug 1722322)
Backed out changeset c2a6440a83d7 (bug 1722322)
Backed out changeset 9955756855bd (bug 1722322)
Backed out changeset 37fccb407777 (bug 1722322)
Backed out changeset f52b1f28f753 (bug 1722322)
Backed out changeset 0121c8cf5d2f (bug 1722322)
2023-11-02 21:27:24 +02:00
Sean Feng
611093989e Bug 1722322 - Implement LargestContentfulPaint r=emilio
Spec: https://w3c.github.io/largest-contentful-paint

Differential Revision: https://phabricator.services.mozilla.com/D151079
2023-11-02 17:04:47 +00:00
Norisz Fay
37cbcfe9be Backed out changeset 6e5782df6da1 (bug 1668136) for causing wpt failures on content-visibility-vs-scrollIntoView-003.html CLOSED TREE 2023-11-01 18:02:54 +02:00
Butkovits Atila
6607e61cf6 Backed out changeset e2815494f2f2 (bug 1861848) for causing failures at browser_gc_schedule.js. CLOSED TREE 2023-11-01 16:39:16 +02:00
Cathie Chen
eeb53397a8 Bug 1668136 - Set visible the content relevancy of an element with content-visibility:auto if its descendant is called scrollIntoView, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D186943
2023-11-01 12:01:51 +00:00
Olli Pettay
29531c0f31 Bug 1861848 - Let foreground content processes run idle tasks and GC without consulting the parent process, r=farre,pbone
Differential Revision: https://phabricator.services.mozilla.com/D192144
2023-11-01 10:11:35 +00:00
Makoto Kato
c9e6ad1c35 Bug 628825 - Don't break line by Break After. r=TYLin,jfkthame
Legacy segmenter breaks line by some Break After properties. But UAX#14 rule
doesn't break Break After (BA) at force.

So I would like to remove some legacy rules that isn't ASCII white space from
`nsLineBreaker`.

Differential Revision: https://phabricator.services.mozilla.com/D192174
2023-11-01 05:46:50 +00:00
Dave Townsend
201e447fd0 Bug 1855427: The DOMLinkRemoved chrome event is not used anywhere. r=emilio
The event isn't dispatched correctly for DOM manipulations anymore. It is
dispatched when swapping docshells but we don't actually use this event anywhere
except tests so we might as well just remove it entirely.

Differential Revision: https://phabricator.services.mozilla.com/D192333
2023-10-31 15:10:43 +00:00
Natalia Csoregi
f62ca31731 Backed out changeset aa66fda02aac (bug 1668136) for causing failures on content-visibility. CLOSED TREE 2023-10-31 06:49:20 +02:00
Cathie Chen
5046f7ee73 Bug 1668136 - Set visible the content relevancy of an element with content-visibility:auto if its descendant is called scrollIntoView, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D186943
2023-10-31 01:38:16 +00:00
John Schanck
1c4c762e43 Bug 1860635 - deprecate isExternalCTAP2SecurityKeySupported. r=keeler,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D191702
2023-10-30 16:05:48 +00:00
Tooru Fujisawa
b2ce602d52 Bug 1858040 - Part 2: Add FunctionFlags::LAZY_ACCESSOR_NAME to lazily create accessor function name from unprefixed name. r=jandem
For accessors with FunctionFlags::LAZY_ACCESSOR_NAME, JSFunction::AtomSlot
contains unprefixed name.

This patch also split existing methods and APIs for function name into 3:
  1. infallible, and can return unprefixed name
  2. fallible, and returns correct name
  3. (internal only) infallibe, and returns correct name (only for functions known to not have FunctionFlags::LAZY_ACCESSOR_NAME)

If the result doesn't have to be exactly correct name, for example if it's for
debug logging or profiler marker, the 1st infallible functions are used.

Differential Revision: https://phabricator.services.mozilla.com/D191457
2023-10-27 22:08:04 +00:00
sunil mayya
8ce40ef93d Bug 1851992 - implement nsIThreadRetargetableStreamListener::OnDataFinished to multiple listeners. r=necko-reviewers,extension-reviewers,jesup,rpl
Differential Revision: https://phabricator.services.mozilla.com/D187833
2023-10-27 13:30:11 +00:00
Ziran Sun
54f7be0077 Bug 1858912 - Refine popover focusing steps to follow the specs. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D190917
2023-10-27 13:02:17 +00:00
Mark Banner
833fc90714 Bug 1860988 - Enable all ESLint rules on the rest of dom/**/*.xhtml files that were renamed from xul. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D191850
2023-10-27 12:43:04 +00:00
Mark Banner
21e52b9399 Bug 1860988 - Enable ESLint rule object-shorthand on remaining parts of dom/*. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D191849
2023-10-27 12:43:04 +00:00
Mark Banner
6119729476 Bug 1860988 - Enable ESLint rule no-useless-return on all of dom/*. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D191848
2023-10-27 12:43:03 +00:00
Masayuki Nakano
7e6da5b9b6 Bug 1859245 - part 4: Make HTMLEditor handle only the new direction mode r=m_kato
Depends on D191607

Differential Revision: https://phabricator.services.mozilla.com/D191608
2023-10-27 01:57:29 +00:00
Gregory Pappas
5ac17f188a Bug 1847726 - Stop rewriting YouTube flash embeds in Nightly r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D191931
2023-10-26 23:24:39 +00:00
Narcis Beleuzu
454b002486 Backed out changeset 0b9fa7430923 (bug 1847726) for mochitest failure on test_youtube_flash_embed.html . CLOSED TREE 2023-10-27 00:30:28 +03:00
Gregory Pappas
dc882a5060 Bug 1847726 - Stop rewriting YouTube flash embeds in Nightly r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D191931
2023-10-26 20:46:14 +00:00
Tom Schuster
8a1a37e712 Bug 1857488 - Set RTPCallerType when creating the global/realm in the browser. r=smaug,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D190677
2023-10-26 17:49:01 +00:00
Benjamin VanderSloot
ae1d974be7 Bug 1858143 - "has storage access" should only persist during navigations that do not change the iframe's window origin - r=anti-tracking-reviewers,smaug,pbz
Minor correction from https://phabricator.services.mozilla.com/D184821.
The definition of "same-origin" used in that patch was that the iframe's origin after navigation is the same as the triggering principal.
This was incorrect.
Instead, the origin of the iframe before navigation should be the same as after navigation, which is the frame's document principal at the time this is called.

Also, I found places where I missed adding the new fields to the loadinfo: LocationBase and nsFrameLoader.
And I added the redirect tainting check and a missing nullcheck before calling SetTriggeringWindowId in nsDocShell.

Differential Revision: https://phabricator.services.mozilla.com/D190577
2023-10-26 14:24:14 +00:00
Robert Longson
5e9128187c Bug 1302705 - Add console warning about SVGSVGElement.deselectAll() being deprecated r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D191859
2023-10-26 07:50:55 +00:00
Masayuki Nakano
e302445217 Bug 1244437 - part 1: Make HTMLEditUtils::IsFormatNode check same tags as Chromium does r=m_kato
I realized that our `HTMLEditUtils::IsFormatNode` is not maintained different
from the other browsers.  Therefore, only we do not check new elements defined
after HTML 4.01.  This patch aligns the list of the format elements to the
others [1].

Then, this also changes some expectations of `editing/run/formatblock.html`
to align common behavior of the browsers.

Note that we mapped `formatBlock` of `execCommand` to `cmd_paragraphState`,
and the XUL command handles `<blockquote>` in a different path [2] and the
behavior is pretty different from the other formatBlock command implementations.
Therefore, this patch creates new command for `formatBlock` and makes
`HTMLEditor` switch behavior in any places.

1. ba50f40fc4:third_party/WebKit/WebCore/editing/FormatBlockCommand.cpp;l=114-134
2. https://searchfox.org/mozilla-central/rev/6602bdf9fff5020fbc8e248c963ddddf09a77b1b/editor/libeditor/HTMLEditor.cpp#2461-2474

Differential Revision: https://phabricator.services.mozilla.com/D190900
2023-10-26 03:45:17 +00:00
Makoto Kato
9956d39635 Bug 1860222 - Cache previous result of nsLineBreaker::UpdateCurrentWordLanguage. r=TYLin,jfkthame
We will call `nsLineBreaker::UpdateCurrentWordLanguage` per `nsLineBreaker`
instance with utf-16 text or hyphen support. When browsing Wikipedia's large
page (browsertime uses https://en.wikipedia.org/wiki/Barack_Obama), this method
is called over 400 times with same atom (mostly "en", a few is "en-us") on
pageload time of Wikipedia.

As long as looking profiler data, nsLineBreaker::UpdateCurrentWordLanguage is
shown. And this isn't very fast due to parse the locale string with ICU4C.

So I think that we can improve a few pageload time to cache previous result.

Differential Revision: https://phabricator.services.mozilla.com/D191732
2023-10-26 02:24:23 +00:00
Natalia Csoregi
da7a394242 Backed out changeset ce62de041fca (bug 1860041) for causing failures on test_focus_display_none_xorigin_iframe.html. CLOSED TREE 2023-10-25 23:16:00 +03:00
Emilio Cobos Álvarez
a02618d9fb Bug 1860041 - Remove a leftover PropagateIsUnderHiddenEmbedderElement call. r=CanadaHonk,layout-reviewers,tnikkel
It's done as a result of ShowViewer via
https://searchfox.org/mozilla-central/rev/10d0e01455559a433670bd718a3ecc0ece5d2cb9/layout/generic/nsSubDocumentFrame.cpp#214

We have existing tests for this in
layout/base/tests/chrome/test_css_visibility_propagation.xhtml

Depends on D191750

Differential Revision: https://phabricator.services.mozilla.com/D191751
2023-10-25 17:34:24 +00:00
Adam Brouwers-Harries
a26eafe5c3 Bug 1421651 - Remove obseleted timeline and TimelineMarker code r=canaltinova,webidl,devtools-reviewers,saschanaz,smaug,ochameau
This patch removes the old docshell timeline and timeline markers codebase and replaces them with equivalent Gecko profiler marker. This patch also fixes Bug 1834143, which is a subset of 1421651.

Differential Revision: https://phabricator.services.mozilla.com/D184217
2023-10-24 15:18:12 +00:00
Narcis Beleuzu
948c7279ee Backed out changeset 714aaf6484fb (bug 1421651) for causing Bug 1860719. CLOSED TREE 2023-10-24 17:31:02 +03:00
Kagami Sascha Rosylight
7c65270854 Bug 1858707 - Use ThrowQuotaExceededError for Crypto::GetRandomValues r=dom-core,peterv
Differential Revision: https://phabricator.services.mozilla.com/D190811
2023-10-24 10:18:44 +00:00
Narcis Beleuzu
722f6a1679 Backed out 6 changesets (bug 1851992) for DT failure on browser_net_image_cache.js . CLOSED TREE
Backed out changeset 3ceaf46f8f55 (bug 1851992)
Backed out changeset c9d322362e22 (bug 1851992)
Backed out changeset 673df3f83249 (bug 1851992)
Backed out changeset 46e18c56dd39 (bug 1851992)
Backed out changeset f9f9143ac713 (bug 1851992)
Backed out changeset 38c40d735ab7 (bug 1851992)
2023-10-24 13:16:40 +03:00
sunil mayya
1acfb3f11f Bug 1851992 - implement nsIThreadRetargetableStreamListener::OnDataFinished to multiple listeners. r=necko-reviewers,extension-reviewers,jesup,rpl
Differential Revision: https://phabricator.services.mozilla.com/D187833
2023-10-24 01:48:09 +00:00