Commit graph

62 commits

Author SHA1 Message Date
roytam1
904406a497 Merge remote-tracking branch 'origin/tracking' into custom 2025-01-20 21:13:46 +08:00
Moonchild
139e7a7ac6 Issue #2678 - Remove NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED
This no longer does anything at this point, except add indirection.
2025-01-20 21:12:18 +08:00
roytam1
310c05b97a Merge remote-tracking branch 'origin/tracking' into custom 2024-11-21 21:09:29 +08:00
Moonchild
ff89fee91d Issue #1787 - Remove nsIAppsService, mozIApplication and mozapp data cleanup. 2024-11-21 21:09:05 +08:00
Moonchild
04b285b848 Issue #2653 - Part 5: Simplify and clean up some quota code
Since we no longer need a complex check, we can remove some indirection.
2024-11-21 21:03:17 +08:00
Moonchild
53cab0f8ce Issue #2653 - Part 4: Remove isApp from quota manager and its clients 2024-11-21 21:02:50 +08:00
Moonchild
0e6fa95840 Issue #2653 - Part 2: Update tests 2024-11-21 21:01:54 +08:00
roytam1
d4a80aa2c4 Merge remote-tracking branch 'origin/tracking' into custom 2024-01-09 12:01:14 +08:00
Martok
f059bb0a59 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-09 11:59:32 +08:00
Martok
73b14eae31 Issue #2435 - Make CycleCollectedJSContext.h dependency explicit 2024-01-09 11:59:09 +08:00
roytam1
eb8748c537 Merge remote-tracking branch 'origin/tracking' into custom 2023-03-06 16:29:00 +08:00
Job Bautista
c920f32df3 Issue #1693 - Use scoped enums for IDBTransaction.
Based on a patch from Mozilla bug 1598164.
Needed due to identifier collision between NSS and IDBTransaction.

Co-authored by: Simon Giesecke <simon.giesecke@gmail.com>
Co-authored by: Matt A. Tobin <email@mattatobin.com>
2023-03-06 16:10:42 +08:00
roytam1
a48debaabe Merge remote-tracking branch 'origin/tracking' into custom 2023-01-10 08:22:51 +08:00
Martok
a6a420259c Issue #2073 - m-c 1546500: Avoid dispatching synchronous thread shutdown runnables 2023-01-10 07:31:26 +08:00
roytam1
591552c5bb partly import changes from tenfourfox:
- #651: M1767365+backbugs M1757604 M1771774 M1776658 (bc6daa0ae)
2022-09-19 16:18:37 +08:00
roytam1
866ded0b0a Merge remote-tracking branch 'origin/tracking' into custom 2022-09-07 11:03:19 +08:00
Moonchild
5dfded811d Issue #80 - reinstated unified building for some large chunks of our code.
This should reduce compile complexity saving time and reducing linker stress.
2022-09-07 10:36:23 +08:00
roytam1
b0eda70edf Merge remote-tracking branch 'origin/tracking' into custom 2022-01-19 10:29:12 +08:00
roytam1
7d7c1ab08a Bug 1741201 - Increase intermediate byte storage maximum capacity. r=janv, a=tjr 2022-01-19 10:27:48 +08:00
roytam1
e54fcd15f1 Merge remote-tracking branch 'origin/master' into custom 2021-03-12 09:00:51 +08:00
Moonchild
348c6604be Issue #1053 - Remove MOZ_WIDGET_ANDROID and IDB_MOBILE 2021-03-12 08:59:50 +08:00
roytam1
56aaf6a15a Merge remote-tracking branch 'origin/master' into custom 2020-09-25 22:18:48 +08:00
Moonchild
0cd673d720 Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
Moonchild
8c395520d9 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-25 22:04:12 +08:00
roytam1
d8c338b6d9 Merge remote-tracking branch 'origin/master' into custom 2020-09-18 20:54:18 +08:00
Moonchild
f5f9c8c597 Issue #1224 - Remove constant expressions from /dom
This excludes DOMProxy handlers in dom bindings because that's intertwined with
codegen and js that needs to be handled together.
2020-09-18 20:53:42 +08:00
Roy Tam
1453f13d33 Merge remote-tracking branch 'origin/master' into custom 2020-05-02 09:19:25 +08:00
Moonchild
9a61935395 Issue #80 - De-unify dom/indexedDB 2020-05-02 08:23:29 +08:00
Roy Tam
924da4a2cc Merge remote-tracking branch 'origin/master' into custom 2020-04-18 07:25:50 +08:00
Matt A. Tobin
2ee3ce62fc Bug 1412775 - Implement Event.composedPath
Tag #1375
2020-04-18 07:06:15 +08:00
Matt A. Tobin
cb2b45e472 Bug 1305458 - Changing -moz-appearence on hover breaks change event
* Rename nsIDOMEventTarget::PreHandleEvent to nsIDOMEventTarget::GetEventTargetParent
* Add nsIDOMEventTarget::PreHandleEvent
* Add EventTargetChainItem::GetFirstEventTarget
* Call EventTargetChainItem::PreHandleEvent even it sets mCanHandle=false
* Move form control frame focus/blur from nsGenericHTMLFormElement::GetEventTargetParent to PreHandleEvent
* Move fire change event from HTMLTextAreaElement::GetEventTargetParent to PreHandleEvent
* Refine nsXULElement::GetEventTargetParent
* Move dispatch XUL command from nsXULElement::GetEventTargetParent to PreHandleEvent
* Move fire events and set value from HTMLInputElement::GetEventTargetParent to PreHandleEvent
* Add test case
* Let HTMLInputElement delegate event handling to it's parent class
* Refine EventTargetChain flags to reduce overheads
* Refine event target chain creation
* Refine assertion in EventTargetChainItem::Create

Tag #1375
2020-04-18 07:02:44 +08:00
Roy Tam
3a29482353 Merge remote-tracking branch 'origin/master' into custom 2020-02-14 22:49:37 +08:00
Simon Giesecke
2da1f51f91 [IndexedDB] Ensure that strong references to newly created cursors are
kept until the DOM Binding is created.

This fixes random crashes on websites that use IndexedDB cursors.
See also BZ bug 1599420
2020-02-14 22:46:13 +08:00
Roy Tam
09a915bd50 Merge remote-tracking branch 'origin/master' into custom 2019-11-28 10:34:50 +08:00
wolfbeast
afa716fcd3 Add crashtest for resolved bug 1558522. 2019-11-28 10:32:35 +08:00
Roy Tam
27884ac351 Merge remote-tracking branch 'origin/master' into custom 2019-11-08 20:30:31 +08:00
wolfbeast
3bfa0a4c34 Issue #1263 - Part 2: Remove DiskSpaceWatcher tests 2019-11-08 20:23:35 +08:00
wolfbeast
92b01bf08a Issue #1263 - Part 1: Remove DiskSpaceWatcher 2019-11-08 20:23:33 +08:00
Roy Tam
f55c7f6d89 Merge remote-tracking branch 'origin/master' into custom 2019-10-25 12:02:58 +08:00
Simon Giesecke
8b52506007 Ensure that file actors created after the database was closed are expired. 2019-10-25 12:00:19 +08:00
wolfbeast
21f7feb805 Avoid following the prototype chain
No longer follow the value's prototype chain when creating index updates
in IndexedDB.
2019-10-25 12:00:16 +08:00
Roy Tam
aeda91f1d0 import changes from tenfourfox:
- #574: M1581950 M1584216 M1577107 M1584907 M1558522 (71cf5b95a)
- #574: new tzdata (842c3af2a)
2019-10-22 14:13:42 +08:00
wolfbeast
cfc50f18c4 Fix a crash in IndexedDB. 2019-09-06 23:49:51 +08:00
wolfbeast
4ad12f3588 Get RefPtr for IDBOpenDBRequest before using it. (DiD) 2019-07-20 06:25:23 +08:00
wolfbeast
a6d976c0cd [IndexedDB] Call SendFailureResult if the actor has been destroyed.
Normally we wouldn't need to send any notifications if the actor was
already destroyed, but it can be a VersionChangeOp which needs to
notify its parent operation (OpenDatabaseOp) about the failure.
So SendFailureResult needs to be called even when the actor was
destroyed.  Normal operations redundantly check if the actor was
destroyed in SendSuccessResult and SendFailureResult, therefore it's
ok to call it in all cases here.
2019-05-31 07:18:37 +08:00
Ascrod
f1d39b624e Issue #991 Part 5: DOM and layout 2019-04-27 08:21:58 +08:00
wolfbeast
183aae036f Get RefPtr to transaction before using it. (DiD)
Avoid potential use-after-free by getting a RefPtr to a transaction
before calling content code that could cause its de-allocation.
2019-02-16 00:28:07 +08:00
wolfbeast
39d5eb7759 Remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS 2019-02-16 00:27:49 +08:00
adeshkp
aea50f182f Telemetry: Remove stubs and related code 2019-02-16 00:24:04 +08:00
wolfbeast
429b2125de Apply CheckedInt to infoLength for preventing it from overflowing in the future.
CheckedInt propagates the mIsValid in each add operation so that it avoids needing a bunch of code
for the overflow check in each add operation. Additionally, it avoids mismatching parameters
between the computing result and the additional overflow check.

This patch uses CheckedInt to take advantage of those implicit features of it.
2019-02-16 00:18:39 +08:00