summaryrefslogtreecommitdiff
path: root/dom/base/nsContentUtils.cpp
Commit message (Collapse)AuthorAge
* Issue #1442 - Part 16 - Report stream errors during consumption.Brian Smith2023-09-28
| | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
* Issue #1442 - Part 8: Fetch implementation of streams.Brian Smith2023-09-27
| | | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1128959 +worker-friendly pref checking for the DOM API.
* Issue #2197 - Part 4: Expose structuredClone in SandboxFranklinDM2023-04-07
| | | | Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=1734320
* Issue #2197 - Part 1b: Transferables should be arrays of objectsFranklinDM2023-04-07
| | | | Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1336020
* Issue #2135 - Implement sequential focus navigation for shadow DOMFranklinDM2023-03-04
| | | | | | | | | | | | | | | | | | | This covers the following: Bug 1413834 Implement sequential focus navigation regarding shadow DOM > Bug 1430020 Let sequential focus navigation in shadow DOM enter iframes > Bug 1430701 Handle focus navigation on frameless shadow hosts in light DOM > Bug 1430692 Handle focus navigation on NAC in shadow DOM > Bug 1453693 Ensure sequential focus navigation works in Shadow DOM and add some tests > Bug 1466581 Handle sequential focus also in nested shadow DOM > Bug 1481079 Shadow DOM hosts should be focusable > Bug 1507101 Use StyleChildrenIterator instead of custom frame tree walking code to handle NAC inside shadow dom > Bug 1512043 Ensure traverse all nodes owned by the top level shadow host > Bug 1512457 Fix various cases that focus navigation doesn't work well with frameless shadow host > Bug 1513141 Really minor nsFocusManager cleanup > Bug 1519090 Keyboard focus is trapped inside <slot> > Bug 1528034 Make IsHostOrSlot null-safe > Bug 1544826 Wrong focus navigation behavior when the root element is a shadow root >> Bug 1500273 Ensure backward focus navigation works in Shadow DOM
* Issue #2135 - Bug 1413102: Ensure Shadow DOM boundaries are dealt properly ↵FranklinDM2023-03-04
| | | | | | | in event handling * RE: BasicEvents.h - our WidgetEvent is not movable (yet), so the change that requires that wasn't included. * Parts of this use code that was introduced in bug 1427511. For now, they were replaced with their equivalents.
* Issue #2030 - Dispatch click on common interactive ancestor if mousdown/up ↵Martok2022-11-27
| | | | | | | are not on the same element For example, if the mouse is dragged from one element to another while staying inside the same button, dispatch from their common ancestor
* [Network, DOM] Align our implementation with the current CORS/Fetch spec.Moonchild2022-11-18
|
* Issue #1829 - Revert "Issue #1751 -- Remove XP_MACOSX conditionals from /dom"Brian Smith2022-04-26
| | | | This reverts commit 0dd3424f774954627d6f53df9fb47379d9b5c871.
* Issue #1830 - Remove --disable-xul config and conditionals.Moonchild2022-04-01
|
* Issue #1721 - Implement GlobalPrivacyControlMoonchild2022-04-01
| | | | (and get rid of failed DoNotTrack)
* Issue #1783 - Part 1: Move GetNodeDepth to ResizeObserver.cppMoonchild2021-06-18
| | | | | | | | | | GetNodeDepth() is a specialized version for ResizeObserver to get the depth of a node across Shadow DOM. It's better to have this in ResizeObserver.cpp instead of the generic ContentUtils. Also updated the function to bypass the shadow root itself and not count it because ResizeObserver doesn't observe the shadow root and only needs the relative depths among all observed targets. IOW we use the flattened tree here.
* Issue #1751 -- Remove XP_MACOSX conditionals from /domMoonchild2021-04-30
|
* [dom] Update noscript serialization to the changed spec.Moonchild2021-02-24
| | | | Make <noscript> escaping conditional on whether scripting is enabled.
* Issue #1390 - Clean up presentation api leftoversMatt A. Tobin2021-01-25
|
* Issue #1656 - Part 1: Nuke most vim config lines in the tree.Moonchild2020-09-23
| | | | | | 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.
* Issue #1643 - Part 1: Add GetNodeDepth() to nsContentUtils.Moonchild2020-09-16
|
* [network/dom] Improve sanitization of download filenames.Moonchild2020-07-29
|
* Bug 1426494 - Share more code between nsIDocument and ShadowRootMatt A. Tobin2020-06-13
| | | | Tag #1375
* Issue #1375 - Merge CustomElements pref with Webcomponents PrefMatt A. Tobin2020-04-17
|
* Bug 1426536 - Remove nsContentUtils::IsContentInsertionPointMatt A. Tobin2020-04-17
| | | | Tag #1375
* Bug 1422931 - Fix crash with slot element and make webcomponents preference ↵Matt A. Tobin2020-04-17
| | | | | | per-doc Tag #1375
* Bug 1419799 - Fix nsContentUtils::IsInSameAnonymousTree in Shadow DOMMatt A. Tobin2020-04-17
| | | | Tag #1375
* Bug 1409975 - Implement node distribution for shadow tree slotsMatt A. Tobin2020-04-17
| | | | | | | | | | * Implementation for assignedNodes * Include slots in the flat tree * Fix event get-the-parent algorithm for a node * Update and add reftests for Shadow DOM v1 * Update web platform tests expectations Tag #1375
* Bug 1418002 - Remove HTMLContentElementMatt A. Tobin2020-04-17
| | | | Tag #1375
* Bug 1416999 - Remove document.registerElementMatt A. Tobin2020-04-17
| | | | Tag #1375
* Bug 1396584 - Remove support for multiple ShadowRootsMatt A. Tobin2020-04-17
| | | | Tag #1375
* Issue #1375 - Stop largely using the parser serviceMatt A. Tobin2020-04-17
| | | | | | | | | This is based on Bug 1395828 * Add nsHTMLElement::IsBlock() * Rename nsHTMLTags methods * Remove AssertParserServiceIsCorrect() * Remove most uses of nsIParserService/nsParserService
* Bug 1377978 - Make nsRange use uint32_t to offsetMatt A. Tobin2020-04-17
| | | | Tag #1375
* Bug 1330843 - Allow JS to create NAC pseudo-elementsMatt A. Tobin2020-04-17
| | | | Tag #1375
* Bug 1321284 - Crash in nsCSSFrameConstructor::GetInsertionPrevSibling when ↵Matt A. Tobin2020-04-14
| | | | | | | | | | | | trying to reframe native anonymous content * Make StyleChildrenIterator skip NAC generated by root element primary frame ancestors. * Add nsINode::GetFlattenedTreeParentNodeForStyle. * Add iterator class to find all restyle roots. NOTE: Parts 1, 2, and "4.2" Tag #1375
* Issue #1384 - Match standard for colSpan/rowSpanwin7-72020-02-03
| | | | | | HTML standardizes proper behavior of colSpan and rowSpan: The main thing is that getting the .rowSpan and .colSpan IDL properties will now return the actual clamped value that we use.
* Bug 1430951 - Avoid element name atomizing to improve performance of ↵Gaming4JC2020-01-26
| | | | | | | | LookupCustomElementDefinition Since we are dealing with the element (nodeInfo->LocalName() and NameAtom() are the same value), we could use nodeInfo->NameAtom() instead. Tag UXP Issue #1344
* Bug 1405821 - Move microtask handling to CycleCollectedJSContextGaming4JC2020-01-26
| | | | Tag UXP Issue #1344
* Bug 1406325 - Part 5: Implement try to upgrade.Gaming4JC2020-01-26
| | | | Tag UXP Issue #1344
* Bug 1406325 - Part 4: Use mType for LookupCustomElementDefinition and also ↵Gaming4JC2020-01-26
| | | | | | removing parts of v0. Tag UXP Issue #1344
* Bug 1121994 - Implement adopted callback for custom elements.Gaming4JC2020-01-26
| | | | Tag UXP Issue #1344
* Bug 1334043 - Part 2: Make nsContentUtils::EnqueueLifecycleCallback static.Gaming4JC2020-01-26
| | | | | | We make nsContentUtils::EnqueueLifecycleCallback static so that it can be called without a window object. To achive this, we also make CustomElementReaction not taking a CustomElementRegistry in the constructor, as it can call Upgrade statically. Tag UXP Issue #1344
* Bug 1392970 - Part 2: Get CustomElementDefinition from CustomElementData ↵Gaming4JC2020-01-26
| | | | | | when possible. Tag UXP Issue #1344
* Bug 1301024 - Part 2: Implement create an element steps.Gaming4JC2020-01-26
| | | | Tag UXP Issue #1344
* Bug 1334051 - Part 2: Invoke attributeChangedCallback only if attribute name ↵Gaming4JC2020-01-26
| | | | | | | | | | | | | | is in the observed attribute list. We call attributeChangedCallback in two cases: 1. When any of the attributes in the observed attribute list has changed, appended, removed, or replaced. 2. When upgrading an element, for each attribute in element's attribute list that is in the observed attribute list. Note: w/ Fixup for not implementing an API Enhancement Bug 1363481. Tag UXP Issue #1344
* Bug 1357002 - Part 1: Cache dom.webcomponents.customelements.enabled preference;Gaming4JC2020-01-26
| | | | Tag UXP Issue #1344
* Bug 1341898 - Make nsDocument::IsWebComponentsEnabled use a cached bool pref;Gaming4JC2020-01-26
| | | | | | Note: Minus IPC bit. Tag UXP Issue #1344
* Convert dom/base/nsImageLoadingContent.cpp to use AsyncOpen2 and followups ↵win7-72019-08-08
| | | | | | along with it (1445670 and 1373780 part 2 and 3) Convert dom/base/nsImageLoadingContent.cpp to use AsyncOpen2 and followups along with it (1445670 and 1373780 part 2 and 3)
* add main thread only cache for nsIAtoms to speed up atomization dom/basewin7-72019-05-24
| | | add main thread only cache for nsIAtoms to speed up atomization
* Fix build bustage in cbfef7fcdb853916ff04015f6ee2d4b86f424a08wolfbeast2018-09-11
| | | | | - imageDetails.format() needs a cast to SurfaceFormat - style nit: wrap long lines.
* Release mapped surface memory on size check failure to plug a leak.wolfbeast2018-09-11
|
* Move surface data checking to a separate function to make it less "totally nuts"wolfbeast2018-09-11
|
* Bug 1357432 (#750)Moonchild2018-09-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Part 1. Move IsLocalRefURL to nsContentUtils to reuse this function. (port-rewrite) `IsLocalRefURL` is originally designed to be used by URLValue only. Since we need this function in SVGUseElement::LookupHref too, move it to nsContentUtils as a util function. * Revert "Part 1. Move IsLocalRefURL to nsContentUtils to reuse this function. (port-rewrite)" This reverts commit 19f010c62022e269f99066a8d90e3522fe31adaf. * Part 1. Duplicate IsLocalRefURL to nsContentUtils to reuse this function. `IsLocalRefURL` is originally designed to be used by URLValue only. Since we need this function in SVGUseElement::LookupHref too, duplicate it to nsContentUtils as a util function. This is a duplication because CSSValue uses stringbuffers and not nsStrings. While Bug 1356060 - "Just use nsString in URLValueData" converts this use from stringbuffer to nsString, it builds on a bunch of vartype refactoring (nsString vs. nsAString, etc.) which is too much of a headache to deal with just to deduplicate this simple function. * Part 2. Implement nsSVGEffects::GetBaseURLForLocalRef to export local-ref-url-resolving logic. ResolveURLUsingLocalRef is designed to be internally used by nsSVGEffects::Get-{SVGEffect}-URI functions. Since we also need it in SVGUseElement::LookupHref, make it public in nsSVGEffects. * Part 3. Resolve local-ref in SVGUseElement::LookupHref by nsSVGEffects::GetBaseURLForLocalRef. * Part 4. Reftest for using local-ref as xlink:href value.
* Bug 1329032 - Extend loadURIWithOptions by a triggeringPrincipal (without an ↵janekptacijarabaci2018-04-30
| | | | hard e10s)