roytam1
1956d3d66b
Merge remote-tracking branch 'origin/tracking' into custom
2023-08-08 10:09:40 +08:00
Brian Smith
42b2de6fe9
Issue #2285 - Ensure we don't try to treat non-DOM-Node event targets as such, https://bugzilla.mozilla.org/show_bug.cgi?id=1440809 Fix crash on https://beeper.notion.site
2023-08-08 09:43:09 +08:00
Brian Smith
6464b061c3
Issue #2026 - Follow-up: Support Big(U)Int64Array in crypto.getRandomValues. https://bugzilla.mozilla.org/show_bug.cgi?id=1718932
2023-08-08 09:42:55 +08:00
roytam1
a7a525c65e
Merge remote-tracking branch 'origin/tracking' into custom
2023-05-15 09:19:37 +08:00
Job Bautista
ae27fff4bb
Issue #2241 - Part 7.2 Follow-up: Fix build bustage due to unified building in Basilisk.
...
Tag #80
2023-05-15 09:13:28 +08:00
Job Bautista
e072ef0dfc
Issue #2241 - Part 8: Remove non-working layout.css.DOM*.enabled prefs.
...
A follow-up to fdfe7a8245eb33db252f2a9a3474ac931f15a7d8.
2023-05-15 09:13:07 +08:00
Job Bautista
4ec35fdcf2
Issue #2241 - Part 7.2: Implement .fromRect and .fromQuad.
...
Backported from Mozilla bug 1558101.
2023-05-15 09:12:47 +08:00
Job Bautista
0e2f687f4d
Issue #2241 - Part 7.1: Implement .fromFloat{32/64}Array.
...
Backported from Mozilla bug 1558101.
2023-05-15 09:12:41 +08:00
Job Bautista
10bdcb7e5f
Issue #2241 - Part 6: Implement DOMMatrix.fromMatrix.
...
Also fixes .multiply() to use DOMMatrixInit.
Backported from Mozilla bug 1560462.
2023-05-15 09:12:03 +08:00
Job Bautista
c3042a2f41
Issue #2241 - Part 5: Expose Geometry interfaces to web workers.
...
Exposes DOMMatrix, DOMPoint, DOMQuad, and DOMRect to workers.
Backported from Mozilla bug 1420580.
2023-05-15 09:11:24 +08:00
Job Bautista
840658ab39
Issue #2241 - Part 4.2: Resurrect DOMQuad.bounds, but deprecated.
...
This also forces DOMQuad.toJSON() to only return the points.
Backported from Mozilla bug 1186265.
2023-05-15 09:10:49 +08:00
Job Bautista
60c88dd11b
Issue #2241 - Part 4.1: Get DOMPoint, DOMQuad, DOMRect, DOMMatrix a bit closer to spec.
...
Backported from Mozilla bug 1186265's part 1.
2023-05-15 09:10:31 +08:00
Job Bautista
d2c3ea08eb
Issue #2241 - Part 3: Extend DOMMatrixReadOnly to allow instantiation with a Matrix4x4.
...
Backported from Mozilla bug 1355675.
2023-05-15 09:10:14 +08:00
roytam1
6235ca420d
Merge remote-tracking branch 'origin/tracking' into custom
2023-05-04 10:47:54 +08:00
Moonchild
c9b8a576da
Issue #1656 - Remove more vim control lines.
...
Vim control lines were re-introduced or not entirely cleaned up.
This nukes them again.
Removing from dom. More to come.
2023-05-04 10:47:14 +08:00
roytam1
f0dfd9ac73
Merge remote-tracking branch 'origin/tracking' into custom
2023-05-02 23:56:43 +08:00
FranklinDM
ae50e9e01d
Issue #2225 - Implement Element.replaceChildren
...
This accounts for refactoring changes (e.g. avoids RemoveChild*
changes).
Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=1626015
2023-05-02 23:55:52 +08:00
roytam1
beb68187e5
Merge remote-tracking branch 'origin/tracking' into custom
2023-04-30 21:26:08 +08:00
Brian Smith
a892a75903
Issue #1691 - Part 12: Fix return value in ExecScript() and debug assert in ParseTask. https://bugzilla.mozilla.org/show_bug.cgi?id=1331662 Replace nsJSUtils::EvaluateString calls by ExecutionContext scopes. ExecutionContext: The mRetValue is not used even though it is checked in various asserts. This is how it is in the Mozilla code even years later, only the passed in value is used. ParseTask: JoinDecode() and JoinCompile() run the same code but the type is different causing a debug assert when it checks the type Script vs ScriptDecode.
...
(cherry picked from commit 8f577428b7834b7d0f0d5afacbe060fbb1ff2136)
2023-04-30 21:22:00 +08:00
Brian Smith
1109559a5d
Issue #1691 - Part 8: Fix --enable-debug builds and continue dynamic module import changes. https://bugzilla.mozilla.org/show_bug.cgi?id=1342012 Support import from timeout handlers by associating the initiating script with the compiled JSScript. Fix error message that covers all import() failures that don't throw a JS exception. https://bugzilla.mozilla.org/show_bug.cgi?id=1331662 Partial - Replace nsJSUtils::EvaluateString calls by ExecutionContext scopes. Left EvaluateString() in nsXBLProtoImplField.cpp until ExecutionContext errors can be fixed.
...
(cherry picked from commit 22fcfc77971a9bb204df664c474681f4dcf54211)
2023-04-30 21:21:06 +08:00
Brian Smith
c69a47c393
Issue #1691 - Part 7f: Split up compile and execute so we can use ClassicScript. https://bugzilla.mozilla.org/show_bug.cgi?id=1342012 Refactor nsJSUtils::ExecutionContext to separate compilation and execution steps and allow extraction of compiled JSScript. https://bugzilla.mozilla.org/show_bug.cgi?id=1366773 Move buffer argument from JS::StartIncrementalEncoding to JS::FinishIncrementalEncoding.
...
(cherry picked from commit d4b520b08b958e116dfeeffdc61f3425610d1ce9)
2023-04-30 21:20:47 +08:00
Brian Smith
993476283d
Issue #1691 - Part 7e: Dependencies for required to finish part 7d. https://bugzilla.mozilla.org/show_bug.cgi?id=1331662 Reimplement EvaluateString using the ExecutionContext class. https://bugzilla.mozilla.org/show_bug.cgi?id=1316078 Extract redudant code into StartOffThreadParseTask. Use an ExclusiveContext instead of a JSContext in XDR functions. Add a script decoder as a valid off-main-thread parse-task. https://bugzilla.mozilla.org/show_bug.cgi?id=900784 Add nsJSUtils functions for encoding and decoding the bytecode. https://bugzilla.mozilla.org/show_bug.cgi?id=1316081 Add XDRIncrementalEncoder to replace delazified LazyScript in the encoded XDR buffer. Add an XDRIncrementalEncoder instance on the ScriptSource. Expose a new JSAPI to incrementally encode bytecode when it is generated. https://bugzilla.mozilla.org/show_bug.cgi?id=1334091 XDR function use the sourceObject instead of the enclosingScript as argument.
...
(cherry picked from commit d6de9a669f4b2f5115670bd771cd53d7cfb3956a)
2023-04-30 21:20:33 +08:00
roytam1
bc3eb89dee
Bug 1159003 - setResourceTimingBufferSize shouldn't affect user timing, but we should clean user markers if we have memory pressure, r=bz
2023-04-13 16:42:19 +08:00
roytam1
265490b550
Merge remote-tracking branch 'origin/tracking' into custom
2023-04-12 10:05:03 +08:00
FranklinDM
ef8e3b5419
Issue #2053 - Part 5: Throw a DOMException instead of a JS exception for some errors
2023-04-12 10:03:50 +08:00
roytam1
20b787a4df
Merge remote-tracking branch 'origin/tracking' into custom
2023-04-10 07:27:58 +08:00
FranklinDM
31283d993b
Issue #595 - Implement window.event
...
This MSIE extension is still technically part of the standard*, although its use is discouraged. This API will also likely never go away based on some comments at this issue on MDN content**.
Note that this uses a different approach for getting the inner window.
* https://dom.spec.whatwg.org/#interface-window-extensions
** https://github.com/mdn/content/issues/21848
Spec PR: https://github.com/whatwg/dom/pull/407
Spec discussion: https://github.com/whatwg/dom/issues/334
Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=218415
2023-04-10 07:27:37 +08:00
FranklinDM
bbcfb62753
Issue #2197 - Part 4: Expose structuredClone in Sandbox
...
Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=1734320
2023-04-10 07:27:03 +08:00
FranklinDM
ef6b8db1d5
Issue #2197 - Part 3: Implement self.structuredClone()
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1722576
2023-04-10 07:26:49 +08:00
FranklinDM
4174037d8a
Issue #2197 - Part 2d: Implement PostMessageOptions for Window
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1502802
2023-04-10 07:26:20 +08:00
FranklinDM
47147d58b0
Issue #2197 - Part 1b: Transferables should be arrays of objects
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1336020
2023-04-10 07:25:20 +08:00
FranklinDM
438cdbd913
Issue #2197 - Part 1a: postMessages should have transferable as [] by default
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1336020
2023-04-10 07:25:03 +08:00
roytam1
d27b63fc1c
Merge remote-tracking branch 'origin/tracking' into custom
2023-04-08 07:34:30 +08:00
FranklinDM
b2d7504112
Issue #252 - Move getElementsByName from HTMLDocument to Document
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1415176
2023-04-08 07:29:02 +08:00
roytam1
3298c8907d
Merge remote-tracking branch 'origin/tracking' into custom
2023-03-24 09:14:11 +08:00
FranklinDM
b29522749a
Issue #1592 - Follow-up: Don't post a restyle event if restyleElement is null
...
This fixes a potential crash caused if restyleElement is null.
2023-03-24 09:13:34 +08:00
FranklinDM
9a071f3b7a
Issue #1592 - Part 9: Post a restyle event after changing the slot of a slottable
2023-03-24 09:12:52 +08:00
roytam1
6a7219fb70
Merge remote-tracking branch 'origin/tracking' into custom
2023-03-23 09:04:10 +08:00
Moonchild
f09d2bba0f
Issue #2171 - Skip over shadow nodes that don't have an owning node.
...
Resolves #2171
2023-03-23 09:03:06 +08:00
roytam1
64329d41b6
add comments and formatting in mozilla upstream "bug 1440809, ensure we don't try to treat non-DOM-Node event targets as such, r=masayuki (89c8025537a5)"
2023-03-20 10:38:29 +08:00
roytam1
af28af9f85
follow-up rev 24572438, targetInKnownToBeHandledScope can be null
2023-03-20 07:34:56 +08:00
roytam1
2b9187d8bf
Merge remote-tracking branch 'origin/tracking' into custom
2023-03-12 07:16:48 +08:00
FranklinDM
18e693464d
Issue #2135 - Destroy the host frame and restyle when there are content changes
...
This is likely inefficient, but I haven't found a way other than this to ensure that the host frame is updated if the inserted/removed content isn't slotted. I'm assuming that Firefox is handling this somewhere else (and may have been even moved to Stylo), but was mentioned in an m-c bug we haven't seen yet. In fact, this is actually similar to how we handled elements passed to ContentInserted before landing e31ed5b07466d4a579fe4b025f97c971003fbc3f.
2023-03-12 07:10:24 +08:00
roytam1
5303f2f60d
Merge remote-tracking branch 'origin/tracking' into custom
2023-03-09 15:59:52 +08:00
FranklinDM
cfef3fa487
Issue #2135 - Follow-up: Ensure document is not null in nsImageLoadingContent::BindToTree
2023-03-09 14:26:54 +08:00
roytam1
eb8748c537
Merge remote-tracking branch 'origin/tracking' into custom
2023-03-06 16:29:00 +08:00
FranklinDM
ad929c5dd5
Issue #2135 - Follow-up: Fix potential crash if shadow root is null
2023-03-06 16:27:34 +08:00
FranklinDM
015148fcc3
Issue #2135 - Bug 1425864: Ensure printing documents which have shadow DOM works
2023-03-06 16:24:46 +08:00
FranklinDM
9f0fb9c16e
Issue #2135 - Bug 1393806/Part 3: Change dom::ReparentWrapper to take an ErrorResult
...
* Bug 1393806 (Part 4) landed as part of Issue #1118 .
* Account for ReparentWrappersInSubtree, introduced in 1466991
2023-03-06 16:24:26 +08:00
FranklinDM
3062964d28
Issue #2135 - Bug 1393806/Part 2: Modify AdoptNodeIntoOwnerDoc to use the non-XPCOM version of document.AdoptNode
...
* Unlike the original patch, this does not remove the XPCOM version of Document.adoptNode/importNode to avoid breaking other applications that might be using those functions.
2023-03-06 16:24:10 +08:00