summaryrefslogtreecommitdiffstats
path: root/dom/base
Commit message (Collapse)AuthorAgeLines
* Issue #1689 - Part 4: Add a preference for {Document,Element}.getAnimations()Moonchild2021-01-14-0/+10
| | | | | This is probably the last thing we will ship (if ever) since it needs the most spec and implementation work for arbitrary use that is pretty far into a corner.
* Issue #1689 - Part 2: Add a preference for implicit keyframesMoonchild2021-01-14-0/+10
| | | | | | | | | This preference controls whether authors are allowed to specify animations without a 0% or 100% keyframe. We intend to ship this but it isn't implemented yet (needs a follow-up) but this preference acts as a safeguard in case we discover we need to disable it once it's implemented.
* Issue #1689 - Part 1: Add pref for DOM Animation timelines APIMoonchild2021-01-14-0/+11
| | | | Default false, no intent to ship for web content. Always enabled for Chrome.
* Issue #1705 - Part 3: Rename ScrollbarStyles to ScrollStyles.Moonchild2021-01-06-14/+14
| | | | | | | | | | | 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.
* Issue #1053 - Part 1c: Remove references to mobile/android targets and pathsMoonchild2020-12-25-2/+0
|
* Issue #1624 - Make ion inlining optimizations a pref.Moonchild2020-12-03-2/+3
| | | | This also adds it to JS_SetGlobalJitCompilerOption()
* [dom] Remove attributes from descendants when setting sanitized style.Henri Sivonen2020-11-19-0/+19
| | | | This avoids a number of problems with incomplete sanitation.
* Issue #1682 - Remove vibrator DOM interface and support code.Moonchild2020-11-13-195/+1
| | | | Resolves #1682
* [DOM] When failing to create a channel and an image request, make sure to setMoonchild2020-10-22-1/+5
| | | | | | | the image blocking status appropriately. This is the same status as we do for known no-data protocols and ensures we treat these two cases the same.
* Issue #1643 - Follow-up: Ensure we properly clear our pointers when theMoonchild2020-10-16-9/+24
| | | | Presentation of a document is destroyed.
* Issue #1643 - Follow-up: Make sure things aren't changed while iterating.Moonchild2020-09-30-2/+10
| | | | This fixes some crashing scenarios.
* Issue #1643 - Follow up: Add a null check for mOwner in ↵Matt A. Tobin2020-09-29-0/+6
| | | | | | | ResizeObserverNotificationHelper::Unregister A race condition seemed to exist between tab destruction and un-registering a ResizeObserver resulting in a null deref crash. The original reporter in Forum Topic 25311 experienced this on msn.com so that was the functional test reference.
* Issue #1656 - Part 6: Clean up the build filesMoonchild2020-09-23-4/+0
|
* Issue #1656 - Part 4: Tackle *.idl, *.css, *.ipdlh, *.webidl, *.ccMoonchild2020-09-23-6/+0
|
* Issue #1656 - Part 2: Unmangle some unfortunate UTF-8 victims.Moonchild2020-09-23-7/+7
| | | | The poor fellows got lost in an ASCII-interpretation of the world.
* Issue #1656 - Part 1: Nuke most vim config lines in the tree.Moonchild2020-09-23-351/+7
| | | | | | 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 #1655: Update MediaQueryList to the current draft spec.Moonchild2020-09-23-1/+1
| | | | | | | This make MediaQueryList inherit from EventTarget and adds MediaQueryListEvent as an interface as well as the onchange() method. This should not affect compatibility with other code; the event object is a MediaQueryListEvent instance, which is recognized as a MediaListQuery instance.
* Issue #1224 - Remove constant expressions from /domMoonchild2020-09-17-6/+6
| | | | | This excludes DOMProxy handlers in dom bindings because that's intertwined with codegen and js that needs to be handled together.
* Issue #1643 - Part 4: Hook up all the plumbing.Moonchild2020-09-16-2/+41
|
* Issue #1643 - Part 3: Implement ResizeObserverControllerMoonchild2020-09-16-0/+365
|
* Issue #1643 - Part 2: Implement ResizeObserver APIMoonchild2020-09-16-0/+560
| | | | Implements ResizeObserver, ResizeObserverEntry and ResizeObservation
* Issue #1643 - Part 1: Add GetNodeDepth() to nsContentUtils.Moonchild2020-09-16-0/+22
|
* Issue #618 - (async) Implement async attribute for inline module scripts.Moonchild2020-08-25-0/+15
| | | | | | | | | | This commit does several things: - Moves the pref check from ScriptLoader to ns[I]Document so it can be called on the document. - Changes the atrribute freezing function to a better name that takes the document as a parameter. - Sets the proper async/defer attributes on HTML script elements based on keywords and whether they are module scripts or not.
* Merge pull request #1632 from athenian200/link_element_disabledMoonchild2020-08-18-6/+10
|\ | | | | Respond to disabled attribute set on <link> elements from HTML
| * Issue #1629 - Part 2: Implement the Explicitly Enabled flag.athenian2002020-08-13-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This part of the bug was significantly complicated by the following major refactors: https://bugzilla.mozilla.org/show_bug.cgi?id=1456435 https://bugzilla.mozilla.org/show_bug.cgi?id=1459498 As best as I can tell, we just need to implement the explicitly enabled flag on every instance of GetStyleSheetInfo, make sure aIsExplicitlyEnabled is false in every situation except the one where the disabled content attribute is removed from a link element, and enable alternate stylesheets if this flag is set on them. So we take the explicitly enabled flag as an input to PrepareSheet, and also add it to LoadStyleLink and LoadInlineStyle. I also decided not to defer loading of alternate stylesheets that have been explicitly enabled.
* | [network/dom] Improve sanitization of download filenames.Moonchild2020-07-29-0/+8
| |
* | Issue #1391 - Remove the DOM battery APIMoonchild2020-07-28-51/+0
|/
* Issue #618 - Remove eager instantiation - Debug follow upGaming4JC2020-07-11-1/+2
| | | | | | | The added debug assertion did not take into account microtask refactoring done in BZ 1405821. Resulting in error: no member named 'IsInMicroTask' in 'nsContentUtils'. This resolves the error.
* Issue #618 - Slightly improve module scripting tests.Moonchild2020-07-04-16/+44
| | | | Ref: BZ 1388728
* Issue #618 - Remove eager instantiationMoonchild2020-07-04-0/+1
| | | | | This backs out the stuff added in Bug 1295978. Ref: BZ 1295978, 1388728
* Issue #618 - Match JSAPI names with the changes in ↵Moonchild2020-07-03-10/+10
| | | | | | 9ca74147225eed305e28c7887f9b2251aeeb0f36 Ref: BZ 1388728
* Issue #1603 - Part 2: Split some classes out of ScriptLoader.cppMoonchild2020-07-01-0/+1
| | | | | | | This splits ScriptLoader up the same way Mozilla did with the exception of ScriptRequest due to the fact that ScriptLoader and ScriptRequest are interdependent and would create a circular dependency if split apart when not using unified building.
* Issue #1603 - Part 1: Reorganize ScriptLoader/ScriptElementMoonchild2020-06-30-5695/+30
| | | | | | - Moves scripting parts of DOM into 'dom/script' - Renames nsScript{Loader/Element} to Script{Loader/Element} - Adjusts all callers
* Issue #1602 - Make sure we have a JSObject before trying to get global.wolfbeast2020-06-27-1/+7
| | | | | | | | Dynamic script loading/unloading (thank you modules) can yank the script out from under us before the JS API for it is initialized, leading to null deref crashes. This adds a simple check if the passed-in object is sane and present. Resolves #1602
* Bug 1429656 - Implement ShadowRoot.activeElementMatt A. Tobin2020-06-13-17/+86
| | | | Tag #1375
* Bug 1426494 - Share more code between nsIDocument and ShadowRootMatt A. Tobin2020-06-13-314/+360
| | | | Tag #1375
* Bug 1355787 - nsIdentifierMapEntry should let one to use either strings or ↵Matt A. Tobin2020-06-13-21/+75
| | | | | | atoms as keys to avoid slow string assignments when possible. Tag #1375
* Bug 1217436 - Make nsIdentifierMapEntry::mIdContentList an AutoTArray to ↵Matt A. Tobin2020-06-13-4/+12
| | | | | | save an allocation Tag #1375
* Issue #1587 - Part 4: Implement FetchObserverMoonchild2020-06-11-0/+2
|
* Issue #1585 - Replace node.rootNode with node.getRootNode()Moonchild2020-06-10-4/+31
| | | | | | | This removes the (default disabled) node.rootNode readonly attribute and replaces it with a node.getRootNode() function per WhatWG spec discussion. Based on work by John Dai <jdai@mozilla.com>
* Issue #439 - Remove, fix and clean up automated testsMoonchild2020-06-08-4/+0
| | | | | | | With the big amount of code churn around DOM a lot of tests broke severely enough that they caused build bustage. This commit cleans up, removes or otherwise fixes tests that are broken, no longer relevant or obsolete.
* Issue #1525 - Kill marquee elementMoonchild2020-06-01-1006/+2
| | | | | | * Remove marquee code * Regenerate HTML Elements/parser code for Removal of Marquee. Co-authored-by: Gaming4JC <g4jc@hyperbola.info>
* Revert "Issue #1564 - Fix debug build dependencies for g4jc"wolfbeast2020-05-27-1/+0
| | | | This reverts commit 101c06946e6174734e494d260fa53d78255fea89.
* Issue #1564 - Fix debug build dependencies for g4jcwolfbeast2020-05-26-0/+1
|
* Issue #1564 - Split off nsIdentifierMapEntry in its own headerwolfbeast2020-05-25-146/+176
| | | | + Fix dependency fallout from removing nsDocument.h from ShadowRoot.h
* Issue #1557 - Allow event dispatch on disabled form controls.athenian2002020-05-21-1/+2
| | | | | | | | Based on https://bugzilla.mozilla.org/show_bug.cgi?id=329509 This seems to resolve #1356 without causing #1557. Also reverts previous changes as they no longer appear to serve a purpose.
* Issue #1543 - Align <img> with no src to the updated spec.Moonchild2020-05-11-1/+1
|
* Issue #457 - Fix warning about inline ↵adeshkp2020-05-05-0/+1
| | | | nsINode::GetFlattenedTreeParentNodeForStyle being undefined
* Issue #1375 - Merge CustomElements pref with Webcomponents PrefMatt A. Tobin2020-04-17-2/+2
|
* Issue #1375 - Fix IsWebComponentsEnabled checksMatt A. Tobin2020-04-17-64/+28
|