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

795327 Коммитов

Автор SHA1 Сообщение Дата
Masayuki Nakano e220fdf55a Bug 1730442 - part 4: Rewrite `HTMLEditor::GetFirstTableRowElement()` as returing `Result<RefPtr<Element>, nsresult>` r=m_kato
This change is tested by `test_nsITableEditor_getFirstRow.html` and
`test_nsITableEditor_insertTableColumn.html`.

Depends on D146361

Differential Revision: https://phabricator.services.mozilla.com/D146362
2022-05-17 00:12:10 +00:00
Masayuki Nakano 757378b453 Bug 1730442 - part 3: Make `HTMLEditor::InsertTableCellsWithTransaction()` work without layout information r=m_kato
It refers the layout information for getting row/column index of selected cell
element or a cell element which contains selection.  However, it can stop
referring it if all callers can specify insertion point of new cells, and it's
possible.  Therefore, we can make it free from layout information.

Note that this blocks legacy mutation events during inserting table cell
elements, but perhaps this does not cause problems in the wild.
`DOMNodeInserted` will be fired after all cell elements are inserted, so
from point of view of the event listeners, editor content is different from
traditional behavior, but this works only when user uses inline table editor
which is disabled by default.  I.e., in the wild, this path is rarely run.

Note that the changes are tested by `test_nsITableEditor_insertTableColumn.html`
and `test_nsITableEditor_insertTableCell.html`.

Depends on D146360

Differential Revision: https://phabricator.services.mozilla.com/D146361
2022-05-17 00:12:09 +00:00
Masayuki Nakano 4db95885b9 Bug 1730442 - part 2: Rewrite `HTMLEditor::GetSelectedOrParentTableElement()` as returing `Result<RefPtr<Element>, nsresult>` r=m_kato
Depends on D146359

Differential Revision: https://phabricator.services.mozilla.com/D146360
2022-05-17 00:12:09 +00:00
Masayuki Nakano 216035e16f Bug 1730442 - part 1: Make all `nsITableEditor` features flush pending layout at start to handle their jobs r=m_kato
Our table editor depends on layout information for getting raw/column position
of a cell, checking rawspan/colspan information and table size.  Therefore,
they require the latest information, but they don't flush pending layout by
themselves.  Therefore, this patch makes them do it by themselves and deleting
unnecessary hack from their tests.

Differential Revision: https://phabricator.services.mozilla.com/D146359
2022-05-17 00:12:08 +00:00
Byron Campen 2ac0551241 Bug 1768559: Do something safe in this weird corner case. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D145979
2022-05-17 00:01:26 +00:00
Molnar Sandor 4fd6d28fda Backed out 4 changesets (bug 1715547) for causing leakcheck failures in ServiceWorkerPrivate. CLOSED TREE
Backed out changeset c2114b608577 (bug 1715547)
Backed out changeset c8985e7c6a71 (bug 1715547)
Backed out changeset 8af1f4a4be08 (bug 1715547)
Backed out changeset 85b20f601145 (bug 1715547)
2022-05-17 02:27:10 +03:00
Scott 7a035ffc99 Bug 1769656 - Pocket newtab update fallback spoc positions. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D146515
2022-05-16 23:11:53 +00:00
Eden Chuang 8c76de0197 Bug 1715547 - Remove ServiceWorkerPrivate::Inner r=asuth,dom-worker-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D139274
2022-05-16 22:52:24 +00:00
Eden Chuang 79cfeaf33c Bug 1715547 - Remove ServiceWorker::Inner r=dom-worker-reviewers,asuth
Depends on D138999

Differential Revision: https://phabricator.services.mozilla.com/D139000
2022-05-16 22:52:24 +00:00
Eden Chuang 2b97dacb22 Bug 1715547 - Remove ServiceWorkerContainer::Inner r=dom-worker-reviewers,asuth
Depends on D117344

Differential Revision: https://phabricator.services.mozilla.com/D138999
2022-05-16 22:52:23 +00:00
Eden Chuang de30e4ecdc Bug 1715547 - Remove ServiceWorkerRegistration::Inner r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D117344
2022-05-16 22:52:23 +00:00
Andrew McCreight 01913de302 Bug 1769442 - Remove nsIFactory::lockFactory, breaking compatibility with IClassFactory. r=xpcom-reviewers,Jamie,necko-reviewers,kershaw,nika
nsIFactory is binary compatible with Windows COM's IClassFactory,
but nothing seems to depend on it. This patch removes the test
for compatibility, TestCOM, and removes the lockFactory
method that isn't otherwise needed.

Differential Revision: https://phabricator.services.mozilla.com/D146386
2022-05-16 22:38:51 +00:00
Molnar Sandor 18fcb78a92 Backed out 10 changesets (bug 1756245, bug 1756049, bug 1754607, bug 1755094, bug 1755541) for causing lint failure in eckoview/Autofill.java. CLOSED TREE
Backed out changeset a5a317b9336a (bug 1754607)
Backed out changeset 1023e45ecd5c (bug 1755094)
Backed out changeset a8dd33d43779 (bug 1755094)
Backed out changeset 18d8a147dcc7 (bug 1756049)
Backed out changeset 9699559151ef (bug 1756049)
Backed out changeset e3386e161d4a (bug 1756245)
Backed out changeset 2ee50ba56798 (bug 1754607)
Backed out changeset 7899080ec86a (bug 1755541)
Backed out changeset 7c9fba1576c5 (bug 1755094)
Backed out changeset fe2864aaa7ac (bug 1755094)
2022-05-17 01:14:15 +03:00
Cosmin Sabou 241f586c68 Merge mozilla-central to autoland. 2022-05-17 01:00:59 +03:00
Cosmin Sabou 24c1cdc33c Backed out changeset e8751087ba26 (bug 1746983) for causing regressions. a=backout 2022-05-17 00:56:55 +03:00
Cosmin Sabou 17d77a6555 Merge autoland to mozilla-central. a=merge 2022-05-17 00:53:26 +03:00
Agi Sferro e7bcb30d1d Bug 1754607 - Make sure autofill session is reset after navigation. r=owlish
With Fission, `pageshow` and `pagehide` are not guaranteed to happen in order,
e.g. we might get the following order of events:

pageshow -- navigate to example.org
pageshow -- navigate to google.com
pagehide -- example.org is now hidden

which would break the previous assumption that we could rely on the order of
show and hide events.

To handle that, we keep track of the most-recent-added session and we assume
that that is the session bening displayed.

In the future, we might consider keeping state of all sessions until a
`pagehide` event for the specific session arrives.

Differential Revision: https://phabricator.services.mozilla.com/D143961
2022-05-16 21:52:55 +00:00
Agi Sferro 1bf387b593 Bug 1755094 - Make autofill tree immutable. r=owlish
Before this patch, the autofill tree was mutable, which makes it hard to follow
updates and reason about state.

This change makes the autofill tree immutable and adds a separate `HashMap` to
track mutable values like `value`, `callback`.

This change also modifies the way we track nodes internally, using exclusevely
the UUID of the node rather then the int autofill ID which is now only used at
the boundary of the Autofill API.

We also simplify the API by only providing the necessary information about the
node rather than the entire tree structure.

Differential Revision: https://phabricator.services.mozilla.com/D143960
2022-05-16 21:52:54 +00:00
Agi Sferro 45b9c67472 Bug 1755094 - Use separate methods instead of onAutofill. r=owlish
This is a minor API fix wherby we call `onSessionStart`, `onNodeAdd` instead of
having a single `onAutofill` call that passes in the type of call. This aligns
the API with all our other delegates.

Note that because this API is normally implemented inside GeckoView itself,
we dont expect any action on embedders for this change.

Differential Revision: https://phabricator.services.mozilla.com/D143959
2022-05-16 21:52:54 +00:00
Agi Sferro c17a53bf0d Bug 1756049 - Don't load GeckoViewWebExtension in child process. r=jonalmeida
I believe this was a mistake and never needed in the first place.

Differential Revision: https://phabricator.services.mozilla.com/D141976
2022-05-16 21:52:53 +00:00
Agi Sferro 134493c268 Bug 1756049 - Migrate GeckoViewPrompter.jsm to actor. r=ohall,owlish
Differential Revision: https://phabricator.services.mozilla.com/D141973
2022-05-16 21:52:53 +00:00
Agi Sferro fffdc8a3ab Bug 1756245 - Migrate GeckoViewMedia to actor. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D141688
2022-05-16 21:52:53 +00:00
Agi Sferro d16fbd366d Bug 1754607 - Adjust GeckoViewAutoFillChild for ActorDispatcher r=owlish
The test failure in the bug is failing because the eventDispatcher in the actor
was previously only available in the top-level-frame.

In addition to adjusting for ActorDispatcher, this patch also makes every actor
handle its own frame (rather than handling all the in-process children) which
simplifies the code a bit.

We also modify the test to use a third-party iframe so that the OOP iframe case
is covered.

Differential Revision: https://phabricator.services.mozilla.com/D141647
2022-05-16 21:52:52 +00:00
Agi Sferro a16703ec46 Bug 1755541 - Migrate GeckoViewPermission to Actor. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D141646
2022-05-16 21:52:52 +00:00
Agi Sferro 07fb9f95ee Bug 1755094 - Adjust SelectionActionDelegate for ActorDispatcher. r=owlish
ActorDispatcher does not support receiving multiple callbacks for one message
so we need to change the strategy a little bit.

We need to centralize handling actions are each sequential ID is incremented
independently for each child, so it won't work for iframes.

To avoid this problem in the future, the sequential ID is no just a
randomly-generated UUID.

We also do all the checking on the parent process, so we don't need to check in
the child again whether we got a message that was out-of-date.

Differential Revision: https://phabricator.services.mozilla.com/D141645
2022-05-16 21:52:51 +00:00
Agi Sferro fe75b477df Bug 1755094 - Implement ChildActorDispatcher. r=calu
The existing EventDispatcher messaging infrastracture uses cpmm (content
process message manager) which is deprecated and will be removed for Fission.

The current behavior with fission is that cpmm is available only on in-frame
frames, so on any oop frame we're not able to send or receive eventDispatcher
messages.

To allow OOP frames actors to send messages, this patch implements a new type
of dispatcher, called ChildActorDispatcher which routes messages through the
actor messaging system.

We then catch these messages on the parent actor side and send them to Java.

To be able to reroute messages from the Parent actor we need to make sure that
each actor that we define extends GeckoViewActorParent, so we define an actor
parent for each missing child actor.

In the future we could consider moving GeckoViewActorParent to a native
implementation for performance reasons.

Differential Revision: https://phabricator.services.mozilla.com/D139073
2022-05-16 21:52:51 +00:00
Molnar Sandor c8400a0b45 Backed out 2 changesets (bug 1760843) for causing wpt failures in /screen-capture/getdisplaymedia.https.html CLOSED TREE
Backed out changeset 198b1e078f7e (bug 1760843)
Backed out changeset d4b6bfda83c5 (bug 1760843)
2022-05-17 00:32:39 +03:00
Mark Banner 36861c2f72 Bug 1769047 - Replace remaining uses of OS.* in search. r=mcheang
Differential Revision: https://phabricator.services.mozilla.com/D146189
2022-05-16 21:00:37 +00:00
Kirk Steuber 94ebd2f73c Bug 1762957 - Tests for Update Pinning r=bhearsum
Note that these tests only ensure that the pin is properly added to the update URL and to the telemetry. They do not test that the update applied will be of the correct version. This is because we are not attempting to have Firefox check if the update provided is valid given the pin, we are leaving it to the update server (Balrog) to find and serve the correct version.

Differential Revision: https://phabricator.services.mozilla.com/D143788
2022-05-16 20:55:07 +00:00
Kirk Steuber d3f343a9d0 Bug 1762957 - Telemetry for Application Update Pinning feature r=bhearsum
Depends on D143786

Differential Revision: https://phabricator.services.mozilla.com/D143787
2022-05-16 20:55:06 +00:00
Kirk Steuber 4027ae1269 Bug 1762957 - When the AppUpdatePin policy is set, include the specified pin in the update url r=bhearsum
Depends on D143785

Differential Revision: https://phabricator.services.mozilla.com/D143786
2022-05-16 20:55:06 +00:00
Kirk Steuber 1f183a698d Bug 1762957 - Add Firefox Enterprise Policy for application update pinning r=mkaply,bhearsum,fluent-reviewers,flod
This patch also adds the capability for Policy implementations (in Policies.jsm) to have a `validate` function. If it returns `false`, the Enterprise Policy engine will consider the policy's parameter to be invalid and the policy will not be activated. This capability is used to validate the update pin policy's parameter to make sure that it takes the expected format ("X." or "X.Y.", where X is the pinned major version and Y is the pinned minor version).

Differential Revision: https://phabricator.services.mozilla.com/D143785
2022-05-16 20:55:05 +00:00
Nika Layzell 59f3f40567 Bug 1767517 - Part 2: Annotate nsPipe for the thread safety analysis, r=jesup,xpcom-reviewers,KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D145394
2022-05-16 20:40:49 +00:00
Nika Layzell ae118208e9 Bug 1767517 - Part 1: Fix incorrect annotation for GUARDED_VAR and PT_GUARDED_VAR, r=jesup
Differential Revision: https://phabricator.services.mozilla.com/D145393
2022-05-16 20:40:49 +00:00
Gavin Suntop 77a94bba72 Bug 1769596 - More STP design tweaks r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D146473
2022-05-16 20:28:14 +00:00
Bryce Seager van Dyk 1ef33504a4 Bug 1769156 - Use content sig checks for GMP updates if controlling pref is missing. r=Gijs
Currently if the pref for using content sig checks with GMP updates is missing
we will use cert pinning. I.e. the default behaviour in the absence of a pref
value is cert pinning. This changes that so that we use content sig by default.

This is done as we're moving to content signatures as default behaviour, so it
makes sense to have it be the default if the pref is missing.

Differential Revision: https://phabricator.services.mozilla.com/D146260
2022-05-16 20:21:27 +00:00
Jeff Muizelaar 00872fd515 Bug 1769614 - Add some more prefs/telemetry around GMP installation failure. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D146479
2022-05-16 20:18:45 +00:00
manisha27 522d600c93 Bug 1767323 - Title-text for saved addresses and credit cards readable in dark/light mode. r=tgiles
Differential Revision: https://phabricator.services.mozilla.com/D146374
2022-05-16 19:45:08 +00:00
Joel Maher db28226dd1 Bug 1769098 - initial work to allow taskcluster/mozbase/mozharness to support conditioned profiles. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D146220
2022-05-16 19:11:46 +00:00
Mozilla Releng Treescript 0129462ea7 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
de -> 3788d4f52168287f1452d60e40ef1185a0ed94c7
el -> c6afffbc56b1d358ef26973fe2ece49d62996b54
nn-NO -> 188a51b96295c870a5f131a5d2703ac605292f39
sl -> 4a0028856d749b39283e6e50541941d10514998e
tg -> ef1ffcb145019c88f61c87958e7c63ad7a801034
2022-05-16 19:03:05 +00:00
Marco Bonardo 41bc97f8a1 Bug 1768164 - MR2-1400 - Initial Time of Day heuristic for Snapshots. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D142502
2022-05-16 18:42:25 +00:00
Nico Grunbaum f8155cb190 Bug 1760843 - P1 - add WPT for gDM frameRate:max;r=jib
Differential Revision: https://phabricator.services.mozilla.com/D142323
2022-05-16 18:12:36 +00:00
Nico Grunbaum a0bb9c82df Bug 1760843 - P0 - fix desktop capture frame timing;r=jib
A previous patch introduced an inner loop within the desktop capture run
loop. The PlatformUIThread always does a single execution of the run
loop before it goes into its alertable sleep -> dispatch -> repeat
cycle. We should not be looping within the desktop capture impl and
should allow the platform UI thread to repeated dispatch to the capture
impl instead. Additionally the startup code was racy with the shutdown
code. Fixing the former caused lock ups durring shutdown while startup
was still happening. Static analysis guards were added in this patch
to help reduce the fragility of this code.

Differential Revision: https://phabricator.services.mozilla.com/D141937
2022-05-16 18:12:35 +00:00
Jonathan Kew 4b0c616f3e Bug 1768096 - Add testcase from report as a crashtest. r=lsalzman
Depends on D145902

Differential Revision: https://phabricator.services.mozilla.com/D145903
2022-05-16 18:03:27 +00:00
Jonathan Kew 107fde6326 Bug 1768096 - Correct the not-in-stylo-thread assertion in fontgroup destructor. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D145902
2022-05-16 18:03:27 +00:00
Nika Layzell 7d84828a9c Bug 1769332 - Generate XPCOM error code lists for Java, r=geckoview-reviewers,agi,calu
This allows us to replace a number of magic numbers in the
WebRequestError code with automatically generated constants which are
guaranteed to be kept up to date.

This build script is able to run early enough during the build step as
generated files which take a `.jinja` file as an argument are hard-coded
to be run during the pre-export phase for Android builds. As it is just
as simple python script with no other dependencies, this shouldn't
impact geckoview build performance even when using build artifacts.

Differential Revision: https://phabricator.services.mozilla.com/D146356
2022-05-16 18:01:19 +00:00
Kagami Sascha Rosylight c0ac0addf7 Bug 1769290 - Part 5: Apply mozilla-js-handle-rooted-typedef against xpcom r=xpcom-reviewers,mccr8
Depends on D146454

Differential Revision: https://phabricator.services.mozilla.com/D146469
2022-05-16 17:20:30 +00:00
Kagami Sascha Rosylight 2093ec97cf Bug 1769290 - Part 3: Use fully qualified JS types in xpidl r=xpcom-reviewers,mccr8
Depends on D146439

Differential Revision: https://phabricator.services.mozilla.com/D146453
2022-05-16 17:20:30 +00:00
Alexandre Lissy 2be35f16d6 Bug 1769547 - Do not MOZ_CRASH() on missing process r=nika
Differential Revision: https://phabricator.services.mozilla.com/D146462
2022-05-16 17:02:44 +00:00
Francesco Lodolo (:flod) 8247c7c0d8 Bug 1768502 - Add esr102 to cross-channel configuration, drop esr91, r=aki
Differential Revision: https://phabricator.services.mozilla.com/D146412
2022-05-16 16:55:45 +00:00