summaryrefslogtreecommitdiffstats
path: root/dom/base
Commit message (Collapse)AuthorAgeLines
* [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-18-195/+1
|
* [DOM] When failing to create a channel and an image request, make sure to setMoonchild2020-10-24-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-24-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 #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-21-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-21-2/+41
|
* Issue #1643 - Part 3: Implement ResizeObserverControllerMoonchild2020-09-21-0/+365
|
* Issue #1643 - Part 2: Implement ResizeObserver APIMoonchild2020-09-21-0/+560
| | | | Implements ResizeObserver, ResizeObserverEntry and ResizeObservation
* Issue #1643 - Part 1: Add GetNodeDepth() to nsContentUtils.Moonchild2020-09-21-1/+23
|
* Issue #1525 - Kill marquee element (uplift)Moonchild2020-09-05-1001/+2
|
* Issue #618 - Implement async attribute for inline module scripts. (uplift)Moonchild2020-08-30-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.
* Issue #1629 - Uplift implementation of <link disabled> behavior for stylesheets.Moonchild2020-08-30-6/+10
|
* [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-12-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-10-16/+44
| | | | Ref: BZ 1388728
* Issue #618 - Remove eager instantiationMoonchild2020-07-10-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-10-10/+10
| | | | | | 9ca74147225eed305e28c7887f9b2251aeeb0f36 Ref: BZ 1388728
* Issue #1603 - Part 2: Split some classes out of ScriptLoader.cppMoonchild2020-07-10-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-07-10-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
* Issue #1587 - Part 4: Implement FetchObserverMoonchild2020-06-13-0/+2
|
* Issue #1585 - Replace node.rootNode with node.getRootNode()Moonchild2020-06-13-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>
* [DOM] Hard-disable webcomponents and customelements prefs (redwood)Moonchild2020-06-07-7/+11
|
* Issue #1557 - Allow event dispatch on disabled form controls. (uplift)athenian2002020-05-23-1/+2
|
* Issue #1543 - Align <img> with no src to the updated spec.Moonchild2020-05-20-1/+1
|
* Issue #457 - Fix warning about inline ↵adeshkp2020-05-06-0/+1
| | | | nsINode::GetFlattenedTreeParentNodeForStyle being undefined
* Fix additional deprot in dom/basewolfbeast2020-04-14-0/+4
|
* Issue #80 - De-unify dom/base and fix deprot.wolfbeast2020-04-14-2/+35
|
* [DOM] Make sure to exit fullscreen mode if popups are opened or focused.wolfbeast2020-04-14-0/+9
|
* [DOM] Add a null checkwolfbeast2020-04-14-1/+1
|
* Issue #1395 - Remove FlyWeb ServiceMatt A. Tobin2020-04-14-50/+0
|
* Issue #1390 - Get rid of the Presentation APIMatt A. Tobin2020-04-14-26/+0
|
* Issue #1384 - Match standard for colSpan/rowSpanwin7-72020-04-14-1/+51
| | | | | | 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.
* Issue #1366 - Fix build bustage from erroneously removing 2 function ↵wolfbeast2020-01-22-0/+14
| | | | implementations.
* Issue #1366 - Completely remove showModalDialogGaming4JC2020-01-21-521/+6
|
* Issue #1118 - Part 8: Remove no-longer-used mDidDocumentOpen andwolfbeast2019-12-23-38/+0
| | | | | | | | | | | CheckForOutdatedParent() This was only used to check for cases when document.open() changed the global, and elements being inserted into the document needing a new reflector as a result. Since document.open() no longer changes the global, this code is no longer needed.
* Issue #1118 - Part 7: Remove no-longer-used mWillReparent debug code.wolfbeast2019-12-23-17/+0
|
* Issue #1118 - Part 6: Fix various tests that are no longer correct.wolfbeast2019-12-22-10/+16
| | | | | The behavior change of document.open() requires these tests to be changed to account for the new spec behavior.
* Issue #1118 - Part 5: Change the way document.open() workswolfbeast2019-12-22-23/+147
| | | | | | | | | | | | This changes the work we do for document.open() in the following ways: - We no longer create a new Window when doing document.open(). We use the same Window but remove all the event listeners on the existing DOM tree and Window before removing the document's existing children to provide a clean slate document to use for .write(). - We no longer create a session history entry (previously would be a wyciwyg URI). We now replace the current one, effectively losing the entry for the original document. - We now support document.open() on windowless documents.
* Issue #1219 - Align computed DOM styles with mainstream behvior.wolfbeast2019-12-20-25/+2
| | | | | | | | | This updates our behavior for computed DOM styling to no longer return null on elements that have no display, but return a 0-length (empty) style instead and don't throw. For this we stop looking at having a presentation for the style and just look at the document instead. This resolves #1219
* Fix incorrect values for saving ordered lists as text.wolfbeast2019-12-06-29/+33
|
* Update identifier map entries and notify if they get removed.wolfbeast2019-12-06-6/+34
| | | | | This can happen through DestroyElementMaps() Based on work by Markus Stange and Edgar Chen.
* Merge branch 'master' into js-moduleswolfbeast2019-11-10-786/+718
|\ | | | | | | | | # Conflicts: # modules/libpref/init/all.js
| * Merge pull request #1262 from athenian200/solaris-workMoonchild2019-11-02-1/+5
| |\ | | | | | | Support Modern Solaris
| | * MoonchildProductions#1251 - Part 27: Fix ifdef style.athenian2002019-10-21-2/+2
| | | | | | | | | | | | This should do it for all the commits to files I changed, but while I'm in here I could probably go ahead and turn ALL the singular if defined statements into ifdef statements by using grep/find on the tree. On the other hand, perhaps we should do that as a separate issue so that this doesn't become a case of scope creep.
| | * MoonchildProductions#1251 - Part 1: Restore initial Solaris support, fixed up.athenian2002019-10-21-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compared with what Pale Moon had for Solaris originally, this is mostly the same zero point I started patching from, but I've made the following changes here after reviewing all this initial code I never looked at closely before. 1. In package-manifest.in for both Basilisk and Pale Moon, I've made the SPARC code for libfreebl not interefere with the x86 code, use the proper build flags, and also updated it to allow a SPARC64 build which is more likely to be used than the 32-bit SPARC code we had there. 2. See Mozilla bug #832272 and the old rules.mk patch from around Firefox 30 in oracle/solaris-userland. I believe they screwed up NSINSTALL on Solaris when they were trying to streamline the NSS buildsystem, because they started having unexplained issues with it around that time after Firefox 22 that they never properly resolved until Mozilla began building NSS with gyp files. I'm actually not even sure how relevant the thing they broke actually is to Solaris at this point, bug 665509 is so old it predates Firefox itself and goes back to the Mozilla suite days. I believe $(INSTALL) -t was wrong, and they meant $(NSINSTALL) -t because that makes more sense and is closer to what was there originally. It's what they have for WINNT, and it's possible a fix more like that could serve for Solaris as well. Alternatively, we could get rid of all these half-broken Makefiles and start building NSS with gyp files like Mozilla did. 3. I've completely cut out support for the Sun compiler and taken into account the reality that everyone builds Firefox (and therefore its forks) with GCC now on Solaris. This alone helped clean up a lot of the uglier parts of the code. 4. I've updated all remaining SOLARIS build flags to the newer XP_SOLARIS, because the SOLARIS flag is no longer set when building Solaris. 5. I've confirmed the workaround in gtxFontconfigFonts.cpp is no longer necessary. The Solaris people got impatient about implementing a half-baked patch for a fontconfig feature that wasn't ready yet back in 2009, and somehow convinced Mozilla to patch their software to work around it when really they should have just fixed or removed their broken fontconfig patch. The feature they wanted has since been implemented properly, and no version of Solaris still uses the broken patch that required this fix. If anyone had ever properly audited this code, it would have been removed a long time ago.