roytam1
db9b04cc44
Merge remote-tracking branch 'origin/tracking' into custom
2025-08-04 21:33:36 +08:00
Moonchild
a036cfeb69
Issue #2714 - Implement the Visual Viewport API
...
This DOM/Web API is entirely irrelevant for desktop use.
We give back the width/height of the root scrollframe of content and
for scale we pass forward our dpp resolution (usually 1.0).
Since we have no "no touch" zones in our content on desktop,. the rest
(origin and offset) is hard-coded to (0,0).
2025-08-04 21:32:39 +08:00
roytam1
bf90272692
Merge remote-tracking branch 'origin/tracking' into custom
2025-01-29 12:26:22 +08:00
Martok
0590764f1f
Issue #2686 - Don't rely on return value of ExecutionContext::Compile when the context may forbid running scripts
...
This is relevant if scripting is terminated due to execution timeout but there are setTimeout/Interval callbacks pending
or if scripting is disabled altogether.
2025-01-29 12:23:50 +08:00
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
7b6e3a2d4a
Issue #2653 - Part 1: Initial cleanup of AppId and isolated mozbrowser.
...
This removes a lot of the plumbing for having the platform embed itself
through IPC which was required for B2G running the browser as both
shell and browser application.
2024-11-21 21:01:27 +08:00
roytam1
2b0cdc7b62
Merge remote-tracking branch 'origin/tracking' into custom
2024-09-22 20:54:25 +08:00
FranklinDM
97a40adc75
Issue #2251 - Expose ghost window unlinking to release builds.
2024-09-22 20:43:48 +08:00
roytam1
d27ddaffd7
Merge remote-tracking branch 'origin/tracking' into custom
2024-08-05 10:39:53 +08:00
Moonchild
7e3f0d53a2
Issue #2515 - Remove mForceContentDispatch and mNoContentDispatch
2024-08-05 10:29:26 +08:00
roytam1
0d1cf674f0
Merge remote-tracking branch 'origin/tracking' into custom
2024-07-10 14:55:58 +08:00
Moonchild
2b8d75e136
Issue #2546 - Part 2: Remove special FoxEye CreateImageBitmap method.
2024-07-10 14:50:16 +08:00
Moonchild
60fbaa2155
Issue #2546 - Part 1: Remove BufferSource support in CreateImageBitmap.
2024-07-10 14:50:00 +08:00
roytam1
c416859636
Merge remote-tracking branch 'origin/tracking' into custom
2024-06-24 23:12:00 +08:00
Moonchild
fb16b1b4ae
Issue #2534 - Part 1: window.postMessage should provide a trusted MessageEvent
2024-06-24 23:11:25 +08:00
roytam1
aed4ca8fc5
Merge remote-tracking branch 'origin/tracking' into custom
2024-04-16 15:16:58 +08:00
Moonchild
2811d30051
[DOM] Add nullcheck on mDoc in GetEventTargetParent
2024-04-16 14:58:23 +08:00
roytam1
0acd996e03
dom: check mDoc before use, as it can be null
2024-04-14 20:39:31 +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
roytam1
fa72b197d9
Merge remote-tracking branch 'origin/tracking' into custom
2024-01-05 10:11:42 +08:00
Moonchild
b47cb0f6a4
Issue #2407 - Rename full-screen-api.ignore-widgets
...
Renames to full-screen-api.restrict-to-window and clarifies comments for
its intended use.
Resolves #2407 .
2024-01-05 10:07:43 +08:00
roytam1
774822105f
Merge remote-tracking branch 'origin/tracking' into custom
2023-12-06 15:14:19 +08:00
Moonchild
dc253ce953
Issue #2362 - Fix click handling according to the spec.
...
This removes some hackery surrounding preventing content clicks, and in
general handles auxclick as it should, firing that event on secondary
buttons (wheel/right on default setup for right-handed mouse).
2023-12-06 14:50:08 +08:00
roytam1
8183d7b70c
Merge remote-tracking branch 'origin/tracking' into custom
2023-10-21 11:53:44 +08:00
Brian Smith
373fb9ae07
Issue #2282 - Align the Performance Observer navigation and resource with the spec. This now passes the conformance tests. https://bugzilla.mozilla.org/show_bug.cgi?id=1425458 Resource timing entries Workers - part 2 - PerformanceTimingData. https://bugzilla.mozilla.org/show_bug.cgi?id=1462605 PerformanceNavigationTiming.name must be the value of the address of the current document. https://bugzilla.mozilla.org/show_bug.cgi?id=1462883 Update PerformanceTimingData::mReportCrossOriginRedirect in SetPropertiesFromHttpChannel. https://bugzilla.mozilla.org/show_bug.cgi?id=1462879 PerformanceNavigationTiming must be notified correctly - part 1 - notify.
2023-10-21 11:04:41 +08:00
roytam1
35ff27f838
Merge remote-tracking branch 'origin/tracking' into custom
2023-10-03 22:04:58 +08:00
Martok
e0e1542913
Issue #2321 - Fall back to 0 if setInterval interval not supplied
2023-10-03 22:03:18 +08:00
roytam1
beb68187e5
Merge remote-tracking branch 'origin/tracking' into custom
2023-04-30 21:26:08 +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
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
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
Brian Smith
13fcc4a046
Issue #1829 - Revert "Issue #1751 "
2022-05-04 09:40:24 +08:00
Moonchild
d4eac725fd
Issue #1877 - Resolve RELEASE_OR_BETA conditionals.
2022-04-21 21:46:47 +08:00
Moonchild
13c48d24b0
Issue #1797 - Implement WindowOrWorkerGlobalScope.origin
...
Resolves #1797
2021-08-19 09:45:43 +08:00
Moonchild
d29e4f8306
Issue #1751 -- Remove XP_MACOSX conditionals from /dom
2021-05-05 10:26:13 +08:00
Moonchild
0ced696351
Issue #1053 - Remove Android-specific blocks from system headers and /dom
2021-03-12 08:57:47 +08:00
Moonchild
21f707390d
Issue #1705 - Part 3: Rename ScrollbarStyles to ScrollStyles.
...
ScrollbarStyles contains values of overflow, (over)scroll-behavior, etc.
The only one which is marginally related to scroll _bars_ is overflow, which can
be used to hide scrollbar (by making an element not scrollable) or enforce the
scrollbar to display.
It makes more sense to be called ScrollStyles as it's mainly concerning behavior
of scrolling, not scrollbars. Also, with the addition of scrollbar width
properties, the current name can be confusing.
2021-01-14 22:19:53 +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
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
Moonchild
f85b274e94
Issue #1603 - Part 1: Reorganize ScriptLoader/ScriptElement
...
- Moves scripting parts of DOM into 'dom/script'
- Renames nsScript{Loader/Element} to Script{Loader/Element}
- Adjusts all callers
2020-07-04 07:01:00 +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