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

1646 Коммитов

Автор SHA1 Сообщение Дата
Andrew Sutherland 24e291c07a Bug 1927247 - Regenerate Client Id for ServiceWorkers on termination. r=dom-worker-reviewers,webidl,smaug
Bug 1544232 changed it so ServiceWorker globals used a ClientInfo and
Client Id created by the ServiceWorkerPrivate rather than creating a
random client id.  This allows the ServiceWorkerManager to reliably map
a ServiceWorker Client Id back to the underlying ServiceWorker.

The problem with this was that ClientManagerService is not okay with
there being multiple ClientSources using the same id and it results in
an IPC_FAIL.  This was not a problem in desktop testing because under
fission the potential race window is incredibly small for a
ServiceWorker and its spawned successor to have a live ClientSource at
the same time because the ClientSource will be torn down by the
ClientManager WorkerRef on the transition to canceling and both SWs
will be spawned in the same process.  But on Android where there is no
fission, SWs spawn randomly with no affinity and so a successor can be
spawned on a different, more responsive process.

The fix here is to regenerate the Client Id whenever we terminate the
SW so we are prepared for the next time we spawn the SW.

This patch adds an additional test case to
browser_sw_lifetime_extension.js that is able to reproduce the crash
case on desktop by artificially blocking the ServiceWorker thread with
a monitor so that the ServiceWorker can't transition to Canceling until
its successor has already been spawned.  This reliably reproduces the
bug (when the fix is not in place).  This required adding some new test
infrastructure to WorkerTestUtils.

The new WorkerTestUtils methods provide 2 ways to hang the worker in a
controlled fashion until an observer notification is notified on the
main thread which use a shared helper class:

1. Use a monitor to completely block the thread until notified.  This
   prevents control runnables from running and thereby prevents worker
   refs from being notified.
2. Acquire a ThreadSafeWorkerRef and hold it until notified.  This lets
   the worker advance to Canceling but prevents progressing to Killing.

I added the WorkerRef mechanism first but it wasn't sufficient, so I
added the monitor mechanism, slightly generalizing the mechanism.

A mechanism to generate an observer notification on the main thread is
also added so that the successor ServiceWorker can notify the
predecessor SW without us needing to involve JSActors or other means
of running arbitrary JS in the process hosting the SWs.  This does mean
that when we are in non-fission mode we do need to limit the browser to
a single process in order to ensure both workers are spawned in the
same process.

Differential Revision: https://phabricator.services.mozilla.com/D227446
2024-11-05 06:26:05 +00:00
serge-sans-paille 8a0a0f7524 Bug 1920718 - Annotate all global variable with runtime initialization attributes r=glandium,application-update-reviewers,media-playback-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,gfx-reviewers,aosmond,lina,nalexander,aabh,geckoview-reviewers,win-reviewers,gstoll,m_kato
MOZ_RUNINIT => initialized at runtime
MOZ_CONSTINIT => initialized at compile time
MOZ_GLOBINIT => initialized either at runtime or compile time, depending on template parameter, macro parameter etc
This annotation is only understood by our clang-tidy plugin. It has no
effect on regular compilation.

Differential Revision: https://phabricator.services.mozilla.com/D223341
2024-10-30 11:05:24 +00:00
Joel Maher 4ce101dc6e Bug 1927333 - clean up mochitest.toml files for mac/linux to include processor and os_version. r=aryx,jgilbert,dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D226987
2024-10-29 23:35:47 +00:00
serge-sans-paille e54774d573 Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.

Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-28 08:21:19 +00:00
Alexandru Marc 191ccbe7fe Backed out changeset d92f391b3b0c (bug 1922838) for backing out bug 1915351 2024-10-25 16:42:33 +03:00
serge-sans-paille 53068cdf31 Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.

Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-24 09:06:01 +00:00
Alexandru Marc 83543f20f2 Backed out changeset 448597bce69d (bug 1922838) for causing build bustages. CLOSED TREE 2024-10-24 11:37:49 +03:00
serge-sans-paille c7a369b29a Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.

Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-24 07:38:30 +00:00
Andrew Sutherland a212459d62 Bug 1544232 - Limit lifetime extension of SWs by SWs to the sender's lifetime. r=edenchuang
This patch introduces an explicit concept of lifetimes with mechanisms
in place so that actions taken by Clients (windows or non-ServiceWorker
orkers) will extend the lifetime of a ServiceWorker, but a ServiceWorker
cannot extend the life of another ServiceWorker.

The areas of concern are:
- ServiceWorker.postMessage: With ServiceWorkers exposed on workers and
  the ability to access other registrations via ServiceWorkerContainer
  being exposed, ServiceWorkers can message other ServiceWorkers.  It's
  essential that they never be allowed to give a ServiceWorker a
  lifetime longer than their own.
- ServiceWorkerRegistration.update(): Requesting an update of a
  registration should not allow any installed/updated ServiceWorker to
  have a lifetime longer than the ServiceWorker creating the request.
- ServiceWorkerContainer.register(): Requesting the installation of a
  new ServiceWorker should likewise constrain the lifetime of the newly
  installed ServiceWorker.

Note that in cases where we would potentially spawn a ServiceWorker,
whether it be in response to postMessage or as part of an install or
update, a key criteria is whether the lifetime extends far enough into
the future for us to believe the ServiceWorker can accomplish anything.
Currently we have a constant of 5 seconds against a normal full
lifetime of 30 seconds (before 30 second grace period).  So once a SW
has < 5 seconds of lifetime left, it won't be able to spawn a SW.  Note
that in the case of install/update, we do not prevent the creation of
the job at this time, instead the job will fail during the check script
evaluation step as failure to spawn the ServiceWorker is equivalent to
a script load failure.

A somewhat ugly part of this implementation is that because Bug 1853706
is not yet implemented, our actors that are fundamentally associated
with a global don't have an inherent understanding of their relationship
to that global.  So we approximate that by:
- For postMessage, we always have a ServiceWorkerDescriptor if we are
  being messaged by a ServiceWorker, allowing us direct lookup.
- ServiceWorkerRegistration.update(): In a previous patch in the stack
  we had ServiceWorkerRegistrationProxy latch the ClientInfo of its
  owning global when it was created.  Note that in the case of a
  ServiceWorker's own registration, this will be created at startup
  before the worker hits the execution ready state.
  - Note that because we have at most one live
    ServiceWorkerRegistration per global at a time, and the
    registration is fundamentally associated with the
    ServiceWorkerGlobalScope, that registration and its proxy will
    remain alive for the duration of the global.
- ServiceWorkerContainer.register(): We already were sending the client
  info along with the register call (as well as all other calls on the
  container).

Looking up the ServiceWorker from its client is not something that was
really intended.  This is further complicated by ServiceWorkerManager
being authoritative for ServiceWorkers on the parent process main thread
whereas the ClientManagerService is authoritative on PBackground and
actor-centric, making sketchy multi-threaded maps not really an option.

Looking up the ServiceWorker from a ServiceWorkerDescriptor is intended,
but the primary intent in those cases is so that the recipient of such a
descriptor can easily create a ServiceWorker instance that is
live-updating (by way of its owning ServiceWorkerRegistration; we don't
have IPC actors directly for ServiceWorkers, just the registration).
Adding the descriptor to clients until Bug 1853706 is implemented would
be an exceedingly ugly workaround because it would greatly complicate
the existing plumbing code, and a lot of the code is confusing enough
as-is.

This patch initially adopted an approach of encoding the scope of a
ServiceWorker as its client URL, but it turns out web extension
ServiceWorker support (reasonably) assumed the URL would be the script
URL so the original behavior was restored and when performing our
lookup we just check all registrations associated with the given
origin.  This is okay because register and update calls are inherently
expensive, rare operations and the overhead of the additional checks is
marginal.  Additionally, we can remove this logic once Bug 1853706 is
implemented.

As part of that initial scope tunneling was that, as noted above, we
do sample the ClientInfo for a ServiceWorker's own registration before
the worker is execution-ready.  And prior to this patch, we only would
populate the URL during execution-ready because for most globals, we
can't possibly know the URL when the ClientSource is created.  However,
for ServiceWorkers we can.  Because we also want to know what the id of
the ServiceWorker client would be, we also change the creation of the
ServiceWorker ClientSource so that it uses a ClientInfo created by the
authoritative ServiceWorkerPrivate in its Initialize method.

A minor retained hack is that because the worker scriptloader propagates
its CSP structure onto its ClientInfo (but not its ClientSource, which
feels weird, but makes sense) and that does get sent via register(), we
do also need to normalize the ClientInfo in the parent when we do
equality checking to have it ignore the CSP.

Differential Revision: https://phabricator.services.mozilla.com/D180915
2024-10-24 03:02:42 +00:00
Andrew Sutherland 88723f7fe4 Bug 1544232 - Track the client listening to a registration. r=dom-worker-reviewers,smaug
This will enable propagating lifetime deadlines based on the deadline
of the client calling ServiceWorkerRegistration.update in the
subsequent patch.

Note that the data-flow of the Client here differs from
ServiceWorkerContainer::Register propagating the ClientInfo to
ServiceWorkerManager::Register.  In that case, the binding samples the
client at call-time and propagates it over the register IPC call rather
than during the construction of the PServiceWorkerContainer actor.
This change in approach is to align with Bug 1853706 wherein we plan to
associate the actors strictly to the global.

Differential Revision: https://phabricator.services.mozilla.com/D196702
2024-10-24 03:02:41 +00:00
Andrew Sutherland d17ba40906 Bug 1257977 - Fix SWR updatefound event timing. r=dom-worker-reviewers,edenchuang
This corrects a longstanding race in our updatefound logic and makes
testing/web-platform/tests/service-workers/service-worker/ServiceWorkerGlobalScope/registration-attribute.https.html
consistently pass.  (Other patches in this stack made the test no
longer permafail and removed the meta .ini, but surfaced the race.)

https://bugzilla.mozilla.org/show_bug.cgi?id=1257977#c12 provides
detailed context, but the basic idea is that bug 1510809 cleaned up
our updatefound logic but left a runnable delay introduced in
bug 1471929 that made sense for the fix there, but stopped making sense
with bug 1510809.

This fix repurposes the FireUpdateFound() method declaration that had
no actual implementing method to call into the private
MaybeDispatchUpdateFound which is part of a sufficiently confusing
internal state machine that it makes sense to leave it private and use
a more sane public name.

Differential Revision: https://phabricator.services.mozilla.com/D213726
2024-10-24 03:02:41 +00:00
Andrew Sutherland a83f090d39 Bug 1131324 - Expose ServiceWorkerContainer on WorkerNavigator. r=dom-worker-reviewers,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D213725
2024-10-24 03:02:40 +00:00
Andrew Sutherland 6e5b348a26 Bug 1113522 - ExtendableMessageEvent.source should be ServiceWorker-aware. r=dom-worker-reviewers,edenchuang
ServiceWorkers aren't exposed as clients, so when we are sending a postMessage
from them, we need to capture their ServiceWorkerDescriptor and propagate that
instead of the client state.

Differential Revision: https://phabricator.services.mozilla.com/D213721
2024-10-24 03:02:37 +00:00
Andrew Sutherland 170e73042c Bug 1113522 - Expose ServiceWorker in Workers. r=dom-worker-reviewers,webidl,edenchuang,emilio
We are able to remove ServiceWorkerVisible and instead use
ServiceWorkersEnabled in its place since we are no longer limiting
where ServiceWorker instances are exposed.

The correctness of ExtendableMessageEvent.source is addressed later in
the stack.

Although we enable skip-waiting-installed.https.html here, we also have
to make it expected it will sometimes fail due to an inherent IPC race;
bug 1926641 describes the situation.

Differential Revision: https://phabricator.services.mozilla.com/D180914
2024-10-24 03:02:37 +00:00
Andrea Marchesini 8ae9152b88 Bug 1193373 - Support Permissions API in Worker Context, r=manuel,webidl,asuth,smaug
This commit exposes the Permissions API to DOM Workers. It achieves this goal
by introducing a thread-safe bridge between `PermissionStatus` and the
`PermissionObserver`: the `PermissionStatusSink` object.

Actors:
- The `PermissionObserver` is a main-thread-only singleton that monitors
  permission change events and propagates the notification to the right sink
  objects.
- The `PermissionStatus` is the DOM object exposed to the global. It's not
  thread-safe.
- The `PermissionStatusSink` is the new bridge introduced by this commit.

The `PermissionStatusSink` lifetime:
- This object is kept alive on the current thread by the `PermissionStatus` and
  on the main thread by the `PermissionObserver`.
- The `PermissionStatus` creates the object on its creation thread. When
  `PermissionStatus` object is released (or disconnected from the owner, it
  disentangles itself from the `PermissionStatusSink`. The disentangle
  operation triggers the un-registration procedure from the
  `PermissionObserver` on the main thread.
- A weak `WorkerRef` is used to monitor the worker's lifetime.

Permission change notification:
- When the  `PermissionObserver` is notified for a permission-change event, it
  notifies all the `PermissionStatusSink`. This happens on the main thread (see
  `MaybeUpdatedByOnMainThread` and `MaybeUpdatedByNotifyOnlyOnMainThread`).
- Using `MozPromise`, the `PermissionStatusSink` computes the permission action
  (`PermissionChangedOnMainThread`) on the main thread, then informs the
  parent `PermissionStatus` object on its creation thread.
- The `PermissionStatus` object converts the action to the DOM
  `PermissionState` and dispatches an event.

Differential Revision: https://phabricator.services.mozilla.com/D224594
2024-10-11 06:53:48 +00:00
Stanca Serban 1ab1a63134 Backed out changeset f5c51fd71f7b (bug 1193373) as requested by dmeehan for causing Bug 1923938. CLOSED TREE 2024-10-10 22:03:50 +03:00
Andrea Marchesini f16d10b381 Bug 1193373 - Support Permissions API in Worker Context, r=manuel,webidl,asuth,smaug
This commit exposes the Permissions API to DOM Workers. It achieves this goal
by introducing a thread-safe bridge between `PermissionStatus` and the
`PermissionObserver`: the `PermissionStatusSink` object.

Actors:
- The `PermissionObserver` is a main-thread-only singleton that monitors
  permission change events and propagates the notification to the right sink
  objects.
- The `PermissionStatus` is the DOM object exposed to the global. It's not
  thread-safe.
- The `PermissionStatusSink` is the new bridge introduced by this commit.

The `PermissionStatusSink` lifetime:
- This object is kept alive on the current thread by the `PermissionStatus` and
  on the main thread by the `PermissionObserver`.
- The `PermissionStatus` creates the object on its creation thread. When
  `PermissionStatus` object is released (or disconnected from the owner, it
  disentangles itself from the `PermissionStatusSink`. The disentangle
  operation triggers the un-registration procedure from the
  `PermissionObserver` on the main thread.
- A weak `WorkerRef` is used to monitor the worker's lifetime.

Permission change notification:
- When the  `PermissionObserver` is notified for a permission-change event, it
  notifies all the `PermissionStatusSink`. This happens on the main thread (see
  `MaybeUpdatedByOnMainThread` and `MaybeUpdatedByNotifyOnlyOnMainThread`).
- Using `MozPromise`, the `PermissionStatusSink` computes the permission action
  (`PermissionChangedOnMainThread`) on the main thread, then informs the
  parent `PermissionStatus` object on its creation thread.
- The `PermissionStatus` object converts the action to the DOM
  `PermissionState` and dispatches an event.

Differential Revision: https://phabricator.services.mozilla.com/D224594
2024-10-09 19:22:23 +00:00
Butkovits Atila 5478c35c08 Backed out changeset ac223d01dd41 (bug 1193373) for causing wpt failures complaining about persistent-storage. CLOSED TREE 2024-10-09 20:56:26 +03:00
Andrea Marchesini f158039de6 Bug 1193373 - Support Permissions API in Worker Context, r=manuel,webidl,asuth,smaug
This commit exposes the Permissions API to DOM Workers. It achieves this goal
by introducing a thread-safe bridge between `PermissionStatus` and the
`PermissionObserver`: the `PermissionStatusSink` object.

Actors:
- The `PermissionObserver` is a main-thread-only singleton that monitors
  permission change events and propagates the notification to the right sink
  objects.
- The `PermissionStatus` is the DOM object exposed to the global. It's not
  thread-safe.
- The `PermissionStatusSink` is the new bridge introduced by this commit.

The `PermissionStatusSink` lifetime:
- This object is kept alive on the current thread by the `PermissionStatus` and
  on the main thread by the `PermissionObserver`.
- The `PermissionStatus` creates the object on its creation thread. When
  `PermissionStatus` object is released (or disconnected from the owner, it
  disentangles itself from the `PermissionStatusSink`. The disentangle
  operation triggers the un-registration procedure from the
  `PermissionObserver` on the main thread.
- A weak `WorkerRef` is used to monitor the worker's lifetime.

Permission change notification:
- When the  `PermissionObserver` is notified for a permission-change event, it
  notifies all the `PermissionStatusSink`. This happens on the main thread (see
  `MaybeUpdatedByOnMainThread` and `MaybeUpdatedByNotifyOnlyOnMainThread`).
- Using `MozPromise`, the `PermissionStatusSink` computes the permission action
  (`PermissionChangedOnMainThread`) on the main thread, then informs the
  parent `PermissionStatus` object on its creation thread.
- The `PermissionStatus` object converts the action to the DOM
  `PermissionState` and dispatches an event.

Differential Revision: https://phabricator.services.mozilla.com/D224594
2024-10-09 12:08:44 +00:00
Andrea Marchesini b0c6c72ad0 Bug 1923501 - Fix WPT workers/shared-worker-options-mismatch.html, r=asuth
https://html.spec.whatwg.org/multipage/workers.html#dom-sharedworker 11.4: "If worker global scope is not null, then check if worker global scope's type and credentials match the options values. If not, queue a task to fire an event named error and abort these steps."

Differential Revision: https://phabricator.services.mozilla.com/D224997
2024-10-08 23:05:04 +00:00
Tamas Szentpeteri 8be45dd280 Backed out changeset 4b1409597101 (bug 1920718) for causing bp bustages on rapl.cpp. 2024-10-08 23:27:18 +03:00
serge-sans-paille 069a97307f Bug 1920718 - Annotate all global variable with runtime initialization as MOZ_RUNINIT r=application-update-reviewers,media-playback-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,gfx-reviewers,aosmond,lina,nalexander,aabh
This annotation is only understood by our clang-tidy plugin. It has no
effect on regular compilation.

Differential Revision: https://phabricator.services.mozilla.com/D223341
2024-10-08 16:49:51 +00:00
Mike Hommey d832365263 Bug 1922437 - Rename nsIAndroid* classes to nsIGeckoView*. r=geckoview-reviewers,nika,frontend-codestyle-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D224429
2024-10-03 22:21:51 +00:00
Andrea Marchesini a7281f816e Bug 1681218 - Expose EventSource on ServiceWorkers, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D224058
2024-10-01 06:24:43 +00:00
smayya c3d6a495e4 Bug 1914632 - delete the actors during shutdown for worker keepalive requests.r=edenchuang
Differential Revision: https://phabricator.services.mozilla.com/D222437
2024-09-24 17:10:06 +00:00
Butkovits Atila afadfbae6f Backed out 5 changesets (bug 1906952, bug 1914632, bug 1901761) for causing bustage at RefPtr.h. CLOSED TREE
Backed out changeset 4dadc74e5e51 (bug 1906952)
Backed out changeset 0689a41fae4c (bug 1914632)
Backed out changeset 1f93aaf15cf6 (bug 1914632)
Backed out changeset 37dbae4a6310 (bug 1914632)
Backed out changeset 177540310817 (bug 1901761)
2024-09-24 17:21:15 +03:00
smayya 0b633362f5 Bug 1914632 - delete the actors during shutdown for worker keepalive requests.r=edenchuang
Differential Revision: https://phabricator.services.mozilla.com/D222437
2024-09-24 11:30:22 +00:00
Paul Zuehlcke d1cf259440 Bug 1915419 - Update test callers deleteDataFromBaseDomain -> deleteDataFromSite. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D220607
2024-09-24 09:17:56 +00:00
Paul Zuehlcke 2571c68a9e Bug 1915419 - Extend deleteDataFromSite to support OriginAttributesPattern filtering. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D220606
2024-09-24 09:17:56 +00:00
Paul Zuehlcke e73edb5ea2 Bug 1915419 - Refactor deleteDataFromBaseDomain to deleteDataFromSite. r=anti-tracking-reviewers,geckoview-reviewers,owlish,timhuang
- Renames deleteDataFromBaseDomain to deleteDataFromSite.
 - Cleans up terminology for (schemeless site) to better align with standards.
 - deleteDataFromSite requires a schemeless site to be passed in. We will no longer
   implicitly convert the host to a site.
 - Removes the host fallback for SiteDataManager and ForgetAboutSite. The new schemeless site
   helper Services.eTLD.getSchemelessSiteFromHost accounts for this.

Differential Revision: https://phabricator.services.mozilla.com/D220605
2024-09-24 09:17:55 +00:00
Fatih 406c61a75a Bug 1920128: Use service worker's origin attributes instead of nothing. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D222978
2024-09-23 18:19:04 +00:00
Joel Maher 215f1b08c7 Bug 1920244 - Remove serviceworker_e10s references in .toml and mochitest/xpcshell harnesses. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D223012
2024-09-23 14:21:16 +00:00
Eden Chuang a009c49f93 Bug 1843001 - Allow fetch() to localhost in Workers while network is offline. r=asuth,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D198374
2024-09-23 09:07:52 +00:00
Norisz Fay 29cf8de752 Backed out 6 changesets (bug 1915419) for causing xpcshell failures on test_bounce_tracking_protection.js
Backed out changeset 65896495cce9 (bug 1915419)
Backed out changeset 042d3bc01bdb (bug 1915419)
Backed out changeset 8185b8989a78 (bug 1915419)
Backed out changeset ec3186533ad3 (bug 1915419)
Backed out changeset 0507ac7bb539 (bug 1915419)
Backed out changeset dfde58cea10c (bug 1915419)
2024-09-20 20:50:27 +03:00
Paul Zuehlcke ab011ea956 Bug 1915419 - Update test callers deleteDataFromBaseDomain -> deleteDataFromSite. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D220607
2024-09-20 15:46:37 +00:00
Paul Zuehlcke c425da49b6 Bug 1915419 - Extend deleteDataFromSite to support OriginAttributesPattern filtering. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D220606
2024-09-20 15:46:36 +00:00
Paul Zuehlcke a3cd88ffdb Bug 1915419 - Refactor deleteDataFromBaseDomain to deleteDataFromSite. r=anti-tracking-reviewers,geckoview-reviewers,owlish,timhuang
- Renames deleteDataFromBaseDomain to deleteDataFromSite.
 - Cleans up terminology for (schemeless site) to better align with standards.
 - deleteDataFromSite requires a schemeless site to be passed in. We will no longer
   implicitly convert the host to a site.
 - Removes the host fallback for SiteDataManager and ForgetAboutSite. The new schemeless site
   helper Services.eTLD.getSchemelessSiteFromHost accounts for this.

Differential Revision: https://phabricator.services.mozilla.com/D220605
2024-09-20 15:46:35 +00:00
Butkovits Atila e2848bdc49 Backed out 12 changesets (bug 1915419) for causing failures at test_bouncetracking_purge.js. CLOSED TREE
Backed out changeset e5c32a502e0f (bug 1915419)
Backed out changeset 8cbcbb25fc99 (bug 1915419)
Backed out changeset 947379a2f167 (bug 1915419)
Backed out changeset 4cfe3a954ade (bug 1915419)
Backed out changeset 94fba1a2786b (bug 1915419)
Backed out changeset 477b4f7c2760 (bug 1915419)
Backed out changeset ed6c8d9d39d4 (bug 1915419)
Backed out changeset e534c390101c (bug 1915419)
Backed out changeset bc3fe74a8b03 (bug 1915419)
Backed out changeset afefdce605f9 (bug 1915419)
Backed out changeset e58887b90d39 (bug 1915419)
Backed out changeset 114298b7b855 (bug 1915419)
2024-09-18 17:49:45 +03:00
Paul Zuehlcke 2e91f97c4a Bug 1915419 - Update test callers deleteDataFromBaseDomain -> deleteDataFromSite. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D220607
2024-09-18 12:50:38 +00:00
Paul Zuehlcke fb8d4a4779 Bug 1915419 - Extend deleteDataFromSite to support OriginAttributesPattern filtering. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D220606
2024-09-18 12:50:37 +00:00
Paul Zuehlcke 1694a5c903 Bug 1915419 - Refactor deleteDataFromBaseDomain to deleteDataFromSite. r=anti-tracking-reviewers,geckoview-reviewers,owlish,timhuang
- Renames deleteDataFromBaseDomain to deleteDataFromSite.
 - Cleans up terminology for (schemeless site) to better align with standards.
 - deleteDataFromSite requires a schemeless site to be passed in. We will no longer
   implicitly convert the host to a site.
 - Removes the host fallback for SiteDataManager and ForgetAboutSite. The new schemeless site
   helper Services.eTLD.getSchemelessSiteFromHost accounts for this.

Differential Revision: https://phabricator.services.mozilla.com/D220605
2024-09-18 12:50:36 +00:00
Norisz Fay 483f669512 Backed out 12 changesets (bug 1915419) for causing clearDataFromBaseDomain related gv-junit failures CLOSED TREE
Backed out changeset 6baf34e653ef (bug 1915419)
Backed out changeset 3015863afd5d (bug 1915419)
Backed out changeset 90558f317a75 (bug 1915419)
Backed out changeset 5f07cb9268dd (bug 1915419)
Backed out changeset aedba16d4af7 (bug 1915419)
Backed out changeset d9a2d5c2ba53 (bug 1915419)
Backed out changeset 4a250c451004 (bug 1915419)
Backed out changeset c6da2e632da6 (bug 1915419)
Backed out changeset 9256540ed21a (bug 1915419)
Backed out changeset 7621d766d6a4 (bug 1915419)
Backed out changeset 16d6589ba330 (bug 1915419)
Backed out changeset b3eebd764439 (bug 1915419)
2024-09-16 18:29:55 +03:00
Paul Zuehlcke db9670bdff Bug 1915419 - Update test callers deleteDataFromBaseDomain -> deleteDataFromSite. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D220607
2024-09-16 13:25:28 +00:00
Paul Zuehlcke 6fa6e489f2 Bug 1915419 - Extend deleteDataFromSite to support OriginAttributesPattern filtering. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D220606
2024-09-16 13:25:28 +00:00
Paul Zuehlcke 5d8d5551ac Bug 1915419 - Refactor deleteDataFromBaseDomain to deleteDataFromSite. r=anti-tracking-reviewers,geckoview-reviewers,owlish,timhuang
- Renames deleteDataFromBaseDomain to deleteDataFromSite.
 - Cleans up terminology for (schemeless site) to better align with standards.
 - deleteDataFromSite requires a schemeless site to be passed in. We will no longer
   implicitly convert the host to a site.
 - Removes the host fallback for SiteDataManager and ForgetAboutSite. The new schemeless site
   helper Services.eTLD.getSchemelessSiteFromHost accounts for this.

Differential Revision: https://phabricator.services.mozilla.com/D220605
2024-09-16 13:25:27 +00:00
Andrea Marchesini 8dc8885a91 Bug 1918643 - Enable cookieStore API in Nightly builds, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D222102
2024-09-16 12:56:32 +00:00
Florian Quèze f657343551 Bug 1915228 - Remove expired telemetry scalars serviceworker.registrations and serviceworker.running_max, r=chutten,jesup.
Depends on D220323

Differential Revision: https://phabricator.services.mozilla.com/D220324
2024-08-28 19:44:31 +00:00
Florian Quèze 310eba3ff8 Bug 1915228 - Remove expired telemetry scalars sw.cors_res_for_so_req_count and sw.alternative_body_used_count, r=chutten.
Depends on D220322

Differential Revision: https://phabricator.services.mozilla.com/D220323
2024-08-28 19:44:31 +00:00
Benjamin VanderSloot 8ea1ccd6c8 Bug 1907326 - Fix WPT exceptions after default GeckoView cookieBehavior change to 5. r=bvandersloot,webdriver-reviewers,Sasha
Depends on D216292

Differential Revision: https://phabricator.services.mozilla.com/D217979
2024-08-28 15:11:52 +00:00
Iulian Moraru 0c16dbffa5 Backed out 6 changesets (bug 1907326, bug 1873984, bug 1873986, bug 1899969, bug 1873982) for causing multiple wd assertion failures.
Backed out changeset fa6623f6fbd3 (bug 1873982)
Backed out changeset eba7918d1a27 (bug 1873986)
Backed out changeset 6da85e97c413 (bug 1907326)
Backed out changeset 7781c1ae8573 (bug 1899969)
Backed out changeset 111b1d2a8acd (bug 1873984)
Backed out changeset 6f566eb5a71f (bug 1907326)
2024-08-28 02:37:51 +03:00