Moonchild
7e3f0d53a2
Issue #2515 - Remove mForceContentDispatch and mNoContentDispatch
2024-08-05 10:29:26 +08:00
FranklinDM
cac56b8e77
Issue #2486 - Part 1: Initial plumbing and CSSOM support for cascade layers
2024-07-18 22:31:18 +08:00
Moonchild
d0e568577f
Issue #2547 - Remove hidden network.dns.disablePrefetchFromHTTPS pref.
...
Resolves #2547
2024-07-18 22:31:03 +08:00
Moonchild
c94c6a5785
[Dom/network] Disable DNS prefetching if document nodePrincipal is systemPrincipal
2024-07-10 21:58:10 +08:00
Moonchild
7cc4dcb680
Issue #2546 - Part 6: Remove canvas.imagebitmap_extensions.enabled preference.
2024-07-10 14:51:38 +08:00
Moonchild
aaf2dd416c
Issue #2546 - Part 5: Remove tests
2024-07-10 14:51:18 +08:00
Moonchild
b1e5955ceb
Issue #2546 - Part 4: Remove mappedDataLength and findOptimalFormat
2024-07-10 14:50:59 +08:00
Moonchild
1bc0eda791
Issue #2546 - Part 3: Remove mapDataInto
2024-07-10 14:50:41 +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
Moonchild
fffe6c4996
Issue #2542 - Part 7: Move SecFetch.* to /netwerk where it belongs.
2024-07-10 14:49:06 +08:00
Moonchild
53149ed646
Issue #2542 - Part 6: Add Sec-Fetch-User header for all requests that are the direct result of a system principal request.
...
This means navigation resulting from interaction with the browser UI
should result in a -user header (address bar navigation, bookmarks, etc.)
2024-07-10 14:48:35 +08:00
Moonchild
0ef8b05101
Issue #2542 - Part 5: Assume browser-initiated requests for unspecified content types to always be user-triggered.
2024-07-10 14:48:15 +08:00
Moonchild
9846090a38
Issue #2542 - Part 4b: Fix pointer mess-up.
2024-07-10 14:47:58 +08:00
Moonchild
65a588ba17
Issue #2542 - Part 4: Use BasePrincipal's IsSameOrigin() in SecFetch.
2024-07-10 14:47:20 +08:00
Moonchild
8ee9e3bc52
Issue #2542 - Part 2b: Fix typo in pref check
2024-07-10 14:46:36 +08:00
Moonchild
8076de8965
Issue #2542 - Part 2: Base implementation of Sec-Fetch-* header code.
...
Currently following Mozilla putting stuff in /dom for additional porting,
but it's actually the wrong location since it belongs in /netwerk with
the other code that deals with http headers.
2024-07-10 14:45:39 +08:00
Moonchild
1f4b858be2
Issue #2542 - Part 1b: Fix dom.securecontext.whitelist code issues
...
Some minor bugfixes (wrong condition and string type)
2024-07-10 14:44:56 +08:00
Moonchild
0c71a6ada0
Issue #2542 - Part 1: Factor out Potentially Trustworthy URI checks.
...
For sake of ease of use, converted to boolean functions that just assume "false"
in case of errors.
Note: Mozilla makes special arrangements for .onion addresses as well but
we explicitly do not adopt that. TOR browser can do that all day if it wants.
2024-07-10 14:44:37 +08:00
Moonchild
af227c4574
Issue #2534 - Part 2: Update tests
2024-06-24 23:11:39 +08:00
Moonchild
fb16b1b4ae
Issue #2534 - Part 1: window.postMessage should provide a trusted MessageEvent
2024-06-24 23:11:25 +08:00
Moonchild
22f745761b
Issue #2536 - Re-implement plugin enumeration shuffle.
...
Resolves #2536
2024-06-24 23:11:06 +08:00
Moonchild
6a200d5284
No Issue - Add navigator.webdriver attribute.
...
This patch adds an enumerable, configurable, readonly attribute "webdriver" to
the Navigator object. The attribute is always false because we do not support
WebDriver or scripted automation.
The navigator.webdriver attribute is meant as an indication to web authors that
a document is visited by WebDriver. It is important to stress that it is not
meant as a way to detect that a website is being visited by a browser automation
tool or bot, but as a tool for web documents to take alternate code paths.
On the off-chance exposing navigator.webdriver turns out to be catastrophic,
we put it behind a new preference dom.webdriver.enabled that controls its
exposure.
2024-06-17 16:14:48 +08:00
Moonchild
1db268ef50
Issue #2532 - Align dialog submission triggered by form.submit() with the spec.
...
Submission in click handler of submit button should not be deferred
per https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#submit-dialog
See Bug 1719872
2024-06-17 16:12:14 +08:00
Moonchild
f50948c82a
Issue #2532 - Fix a null pointer crash while doing dialog form submission
...
See Bug 1652699
2024-06-17 16:11:29 +08:00
Moonchild
f598fe63cd
Issue #2532 - Default pref check to true
2024-06-17 16:11:07 +08:00
Moonchild
6ee3f46900
Issue #2532 - Implement form[method=dialog]
...
See bug 1557303
2024-06-17 16:10:50 +08:00
Moonchild
a2417d573b
[DOM] Clone video info properly.
2024-06-13 11:28:58 +08:00
Moonchild
359a4a2069
Issue #2524 - Implement smart granularity for canvas poisoning.
...
User-configurable time interval between 1s and 8h. Default 5 minutes.
Resolves #2524
2024-06-11 10:14:09 +08:00
Moonchild
91fc5614ec
Issue #1749 - Remove restriction of SVG width/height element attributes.
...
According to the original SVG spec, the SVG element in documents had to follow
special rules as to what was allowed for width/height attributes. This is no
longer the case, so we can decouple it from whatever internal units SVG/XML
language uses and allow all units like every other element.
2024-06-06 14:11:31 +08:00
Moonchild
7381521cf7
Issue #2518 - Make various arguments optional in XPathEvaluator/XPathExpression.
...
Resolves #2518
2024-06-04 10:16:17 +08:00
Moonchild
22830d18cf
[DOM] Clean up ReportLoadError and normalize error messages.
2024-05-22 15:21:54 +08:00
Brian Smith
de8213f561
Issue #2472 - Part 8: Fix conflicting defines on Mac.
2024-05-08 10:03:58 +08:00
Moonchild
87a7cf7332
Issue #2472 - Part 6: Fire cancel event and close modal <dialog> on [ESC]
...
This implementation is different than Mozilla, not indirectly queueing cancel
tasks to be arbitrarily ordered, but rather synchronously close in reverse
top layer order.
2024-05-08 09:57:53 +08:00
Moonchild
7d34b285e0
Issue #2472 - Part 5: Make modal versions of <dialog> work, and tune styles.
...
This adds a pseudo-class `:-moz-modal-dialog` to be able to track whether the
dialog is in the top layer in CSS.
This implements default styling for modal dialogs following the HTML standard.
Slightly off-extreme color scheme chosen for unstyled <dialog> elements.
2024-05-08 09:57:29 +08:00
Moonchild
7a04afab4a
Issue #2472 - Part 4: Make TopLayer{Push|Pop} part of nsIDocument.
2024-05-08 09:55:38 +08:00
Moonchild
79c7489bb0
Issue #2472 - Part 3: Refactor Fullscreen stack to Top Layer stack
...
Fullscreen stack isn't part of the spec anymore; it's been changed to a more
generic version called Top Layer stack, which is being used by both full-screen
APIs and dialog elements.
This patch refactors it to Top Layer stack so that it can be reused for dialog
elements.
Top Layer stack spec: https://fullscreen.spec.whatwg.org/#new-stacking-layer
2024-05-08 09:55:18 +08:00
Moonchild
3058bef840
Issue #2472 - Part 1: Add helper method to directly dispatch events to widgets.
2024-05-08 09:53:11 +08:00
Moonchild
9eaee03eb4
[dom media] Avoid a potential issue when assigning a media data buffer.
2024-04-19 09:35:53 +08:00
Moonchild
35d7a1fe5a
Issue #2503 - Part 1: add CPU IS support flags to Navigator interface
2024-04-16 14:58:41 +08:00
Moonchild
2811d30051
[DOM] Add nullcheck on mDoc in GetEventTargetParent
2024-04-16 14:58:23 +08:00
Martok
b518af4d45
[DOM] Simplify WorkerRunnable sanity checks and make them more readable.
2024-04-11 15:54:14 +08:00
Moonchild
641b556c53
Issue #2490 - Part 20: Remove the stuff that was added temporarily to deal with a mix of WebIDL and non-WebIDL rules.
2024-04-08 11:12:53 +08:00
Moonchild
7fb5d53a79
Issue #2490 - Part 19: Convert CSSCounterStyleRule to WebIDL.
2024-04-08 11:12:32 +08:00
Moonchild
b984856d8f
Issue #2490 - Part 18: Convert CSSKeyframesRule to WebIDL.
2024-04-08 11:08:39 +08:00
Moonchild
89d96e0226
Issue #2490 - Part 17: Convert CSSKeyframeRule to WebIDL.
2024-04-08 11:08:06 +08:00
Moonchild
f0de637255
Issue #2490 - Part 16: Convert CSSFontFeatureValuesRule to WebIDL.
2024-04-08 11:07:44 +08:00
Moonchild
50f8c18757
Issue #2490 - Part 15: Convert CSSFontFaceRule to WebIDL.
...
The .style PutForwards bit is coming along for the ride here as a new feature.
2024-04-08 11:07:15 +08:00
Moonchild
74fdaed1fe
Issue #2490 - Part 14: Convert CSSPageRule to WebIDL.
...
The .style PutForwards bit is coming along for the ride here as a new feature.
2024-04-08 11:05:31 +08:00
Moonchild
d1b6a584b8
Issue #2490 - Part 13: Convert media, supports, and moz-document rules to WebIDL.
...
This also converts the internal ConditionRule and GroupingRule classes.
2024-04-08 11:03:50 +08:00