Moonchild
52f31a682d
Issue #2728 - Remove obsolete CSP referrer policy.
...
This has been superseded by the dedicated Referrer-policy header.
Resolves #2728
2025-04-24 14:27:39 +02:00
Moonchild
118bc5ff5d
Issue #2692 - Part 6: Don't #include js/SourceBufferHolder.h in jsapi.h.
...
Instead, require users to do so. This is a minor translation-unit size
improvement for anyone who never has to use SourceBufferHolder other than
by reference.
2025-03-04 20:16:54 +01:00
Moonchild
0603b037ef
Issue #2678 - Remove NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED
...
This no longer does anything at this point, except add indirection.
2025-01-18 16:15:51 +01:00
Jens Stutte
238226ce46
[DOM] Check if WorkerRunnable::Run runs on top of WorkerThreadPrimaryRunnable::Run in a worker thread.
2024-02-22 19:53:24 +01:00
Martok
8f11d64255
Issue #2453 - Follow-Up: Use hard-coded minimum timer interval in workers.
...
From the spec: "If nesting level is greater than 5, and timeout is less than 4, then set timeout to 4.",
therefore not having it user-configurable doesn't really break anything.
2024-02-10 16:29:23 +01:00
Moonchild
6bb1b66457
Issue #2453 - Simplify CalculateTargetTime() code and fix typo.
...
We should always be on a worker thread so the MainThread call isn't
needed.
Also: DOMMinTimoutValue -> DOMMinTimeoutValue
2024-01-15 20:58:30 +01:00
Moonchild
70f567950b
Issue #2453 - Don't try to directly access pref on worker thread.
2024-01-15 15:10:31 +01:00
Brian Smith
830a634cec
Issue #2402 - Don't call WorkerPrivate::WorkerName() to get service worker scope.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1350433
2024-01-07 07:34:05 -06:00
Brian Smith
f4a49d6063
Issue #2402 - Move WorkerPrivate::SetPrincipal() logic into a WorkerLoadInfo method.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1333573
Make worker SetPrincipalOnMainThread fallible.
https://bugzilla.mozilla.org/show_bug.cgi?id=1338523
2024-01-06 15:32:04 -06:00
Brian Smith
db049fa0cd
Issue #2402 - Factor out code to set WorkerPrivate CSP from headers.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1337543
2024-01-06 15:32:03 -06:00
Martok
0dde96ba82
Issue #2240 - Align Microtasks and promises scheduling with spec
...
Microtasks, resolved Promises and Observers are handled after the sync
task that caused them, in the order they were generated.
Also simplifies reentrancy handling.
Based-on: m-c 1193394
2024-01-05 17:19:42 +01:00
Martok
980956063f
Issue #2435 - Make CycleCollectedJSContext.h dependency explicit
2024-01-05 17:12:34 +01:00
Moonchild
2c2ddd98d2
[DOM] Drop mWrappedRunnable early in workers.
...
This should prevent some intermittent crashes.
2023-10-25 18:04:26 +02:00
Brian Smith
d5020b69bd
Issue #1442 Follow-up: Stop pretending proxies have a JSNative call/construct hook.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1471924 Part 1
Also remove an erroneous debug assert and guard against future issues.
This fixes crashes on vk.com but still does not behave correctly.
2023-10-16 01:10:26 -05:00
Moonchild
5d76f35990
Merge pull request 'Initial implementation of readable streams' ( #2324 ) from dbsoft/UXP:readablestreams into master
...
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2324
2023-10-03 17:23:19 +00:00
Moonchild
16e405f818
Issue #2323 - Part 3: Exclude chrome workers from worker timer clamping.
2023-10-01 20:54:48 +02:00
Moonchild
bfae2ed943
Issue #2323 - Part 2: Implement timer nesting and clamping for workers.
2023-10-01 19:42:45 +02:00
Brian Smith
26cb9b0802
Issue #1442 - Part 12a - Allow idle worker shutdown to begin for an opt-in WorkerHolder mode.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1362444
Pre-requisite for Part 13.
2023-09-28 17:34:54 -05:00
Brian Smith
e748187360
Issue #2282 - - Properly implement Performance Timeline Level 2 w3c spec.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1539006
Do not throw from PerformanceObserver.observe when none of the entryTypes are known.
https://bugzilla.mozilla.org/show_bug.cgi?id=1403027
Implement PerformanceObserver::takeRecords().
https://bugzilla.mozilla.org/show_bug.cgi?id=1436692
"server" is not a valid PerformanceEntry type.
https://bugzilla.mozilla.org/show_bug.cgi?id=1463065
Fix a null ptr crash in PerformanceObserver::Observe.
https://bugzilla.mozilla.org/show_bug.cgi?id=1631346
2023-08-02 02:41:40 -05:00
FranklinDM
83501c86d2
Issue #2197 - Part 2b: Implement StructuredSerializeOptions for Worker
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1502802
2023-04-07 23:41:55 +08:00
FranklinDM
0206e87a2e
Issue #2197 - Part 1b: Transferables should be arrays of objects
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1336020
2023-04-07 23:41:54 +08:00
FranklinDM
253c711a92
Issue #2197 - Part 1a: postMessages should have transferable as [] by default
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1336020
2023-04-07 23:41:48 +08:00
Moonchild
e591cf1e1a
[DOM] worker cleanup.
2022-05-30 08:25:33 +00:00
Moonchild
a5a14974a1
Issue #1797 - Implement WindowOrWorkerGlobalScope.origin
...
Resolves #1797
2021-08-15 11:45:53 +00:00
Jens Stutte
fe2ea0ce88
[DOM] Be more explicit about the WorkerPrivate self-reference.
2021-08-12 11:39:07 +00:00
Moonchild
dce8a3300b
Issue #1053 - Remove Android-specific blocks from system headers and /dom
2021-03-11 06:41:21 +00:00
Moonchild
8fd57ace20
[DOM] Try to avoid slow shrinking GC during sync calls
2021-01-26 22:42:46 +00:00
Moonchild
a680bdc637
Issue #1656 - Part 1: Nuke most vim config lines in the tree.
...
Since these are just interpreted comments, there's 0 impact on actual code.
This removes all lines that match /* vim: set(.*)tw=80: */ with S&R -- there are
a few others scattered around which will be removed manually in a second part.
2020-09-23 13:55:00 +00:00
wolfbeast
c0ab25726d
Add missing call to WaitForIsDebuggerRegistered
2019-12-06 17:03:06 +01:00
Gaming4JC
c76e66fc3d
1283712 - Part 8: Add WorkerErrorBase, WorkerErrorNote, and WorkerErrorReport.
2019-07-18 22:38:33 -04:00
wolfbeast
0384dc34be
Send worker-runnables destined for the main thread actually to the main thread.
...
A case of "one queue too many" here. Instead of worker runnables being sent to the main thread
where they are supposed to run, they are put in a task queue per-worker. This is devastating
for performance if many workers are running.
2018-09-16 11:43:06 +02:00
janekptacijarabaci
a80267e9e8
Bug 604026 - Sync event loops in workers should be created only if compatible with the worker shutdown status
2018-07-05 13:04:44 +02:00
janekptacijarabaci
089a0bd9a4
Bug 1322292 - Some fixes for the Performance API in workers - part 2 - Get rid of NowBaseTimeStamp()
...
https://hg.mozilla.org/mozilla-central/rev/301231f4165a
2018-04-29 12:32:19 +02:00
janekptacijarabaci
aea1fd640e
Bug 1288768 - Better error reporting for network errors in workers
2018-04-04 21:36:19 +02:00
wolfbeast
867bfbd879
Remove GCZeal: Base cleanup
...
UXP repo issue #8
2018-02-03 15:06:40 +01:00
Matt A. Tobin
5f8de423f1
Add m-esr52 at 52.6.0
2018-02-02 04:16:08 -05:00