summaryrefslogtreecommitdiffstats
path: root/dom/base
Commit message (Collapse)AuthorAgeLines
* Dispatch a PluginRemoved event for actual plugins, not ↵win7-72019-07-14-2/+4
| | | | | | | | images/unknown/iframe-type <objects> If a page uses or removes many <object> elements which are not actually plugins, loading the page goes to a crawl because UXP recalculates the plugin UI every time. Only dispatch a PluginRemoved event for actual plugins.
* Attach FrameProperties to each frame instead of using a shared hashtablewin7-72019-06-26-1/+12
| | | | Dispense the shared hashtable and instead attach the frame property list directly to nsIFrame.
* NodeInfoManager should use a local cachewin7-72019-05-25-2/+32
| | | issue #1111
* Merge pull request #1115 from win7-7/NS_Atomize-cacheMoonchild2019-05-25-18/+20
|\ | | | | Add NS_Atomize cache for main thread use
| * change for nsNodeInfoManager.cppwin7-72019-05-25-1/+1
| | | | | | based to patch for https://bugzilla.mozilla.org/show_bug.cgi?id=1352235 v1 add main thread only cache.
| * Add missing NS_AtomizeMainThread(nameToUse);win7-72019-05-24-1/+1
| | | | | | nsCOMPtr<nsIAtom> nameAtom = NS_AtomizeMainThread(nameToUse);
| * add main thread only cache for nsIAtoms to speed up atomization dom/basewin7-72019-05-24-16/+18
| | | | | | add main thread only cache for nsIAtoms to speed up atomization
* | Issue #1102 - Disable <meta http-equiv=set-cookie>Gaming4JC2019-05-24-1/+2
|/ | | | Create a new pref 'dom.meta-set-cookie.enabled' which is set to 'false', disabling http-equiv meta cookies.
* Map IntersectionObserver rect to the correct viewport.wolfbeast2019-05-15-1/+2
| | | | | | | | | targetFrame is modified during the intersection computation loop, so it's not the viewport you want if there are scrollframes around. This bug triggers when IntersectionObservers are used on frames that wrap. Follow-up for #249.
* Capture delayed events and cancel as necessary.wolfbeast2019-04-26-2/+2
| | | | Tag #1052
* Issue #1053 - Drop support Android and remove Fennec - Part 1b: Remove ↵Matt A. Tobin2019-04-23-8/+3
| | | | MOZ_FENNEC
* Remove AIX VisualAge C++ compiler bug workaround.wolfbeast2019-03-31-17/+3
| | | | Tag #186
* Issue #187: Remove solaris conditional code.wolfbeast2019-03-30-4/+0
|
* Allow empty string on `location.search` setter.wolfbeast2019-02-12-4/+0
| | | | Fixes #970.
* Revert "Increase purple limit triggers for CC."wolfbeast2019-02-07-2/+2
| | | | This reverts commit babedf6c696f88734e59b63d0c6614962cc57519.
* Increase slice time for longer running CCs.Andrew McCreight2019-01-29-3/+14
| | | | | | | | | If a CC takes too long (around 50 slices) or gets interrupted by a GC, we have to finish it synchronously, which can cause a big pause. This patch tries to avoid that by eagerly increasing the slice budget the longer a CC goes on. It linearly increases the slice time from 5ms to 40ms as we approach the halfway point of a CC (1 second), matching GC pauses, and then leaves it at 40ms.
* Increase purple limit triggers for CC.wolfbeast2019-01-29-2/+2
| | | | | Making these much larger to allow more purple buffer buildup and prevent overzealous cycle collection on purple buffer pressure.
* Merge branch 'master' into cycle_collector-workwolfbeast2019-01-29-0/+10
|\
| * Actually unlink targets from registered intersection observers.wolfbeast2019-01-19-0/+10
| | | | | | | | | | | | | | When a node is released/removed, and it has an intersection observer attached to it, that observer should be unlinked at the time of release. This resolves #935.
* | Remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTSwolfbeast2019-01-18-37/+1
| |
* | Consolidate tracing and traversing.wolfbeast2019-01-18-1/+1
|/
* Rewrite IntersectionObserver list handling to be more robust.wolfbeast2019-01-18-8/+40
| | | | Tag #935.
* Add isIntersecting property to IntersectionObserverEntry.wolfbeast2019-01-17-0/+9
| | | | | | Per updated spec. This resolves the issue raised in #249.
* Telemetry: Remove stubs and related codeadeshkp2019-01-12-109/+0
|
* Align Element.ScrollIntoView() with the spec.wolfbeast2019-01-08-14/+53
| | | | | | | This also removes the (unused) shadow alias from nsIDOMHTMLElement which used the different calling convention. This resolves #927
* Fix crashiness of IntersectionObservers.wolfbeast2018-12-24-21/+25
| | | | Mozilla hashtables -still- suck.
* [intersection-observer] Calculate areas using int64_t.wolfbeast2018-12-22-4/+6
| | | | Tag #249
* Fix singed/unsigned type confusion for intersection threshold.wolfbeast2018-12-22-3/+3
| | | | Tag #249
* Use content area as the intersection rectangle ...wolfbeast2018-12-22-7/+11
| | | | | ... for custom root with overflow clip. Tag #249
* Map intersectionRect to the coordinate space of the target document.wolfbeast2018-12-22-7/+8
| | | | | | Spec says: "Map intersectionRect to the coordinate space of the viewport of the Document containing the target." Tag #249
* Use targetFrame->GetRectRelativeToSelf() as the initial intersection rect.wolfbeast2018-12-22-1/+1
| | | | Tag #249.
* Intersection ratio should be 1.0 for zero-area intersections.wolfbeast2018-12-22-1/+7
| | | | Tag #249
* Revise lifetime management of IntersectionObservers.wolfbeast2018-12-22-26/+46
| | | | Tag #249
* Issue #910 part 3. Throw SyntaxError from Location::SetProtocol on URI parse ↵wolfbeast2018-12-16-1/+4
| | | | failures.
* Issue #910 part 2. Strip ':' and anything following it from the string ↵wolfbeast2018-12-16-1/+8
| | | | passed to the location.protocol setter.
* Issue #910 part 1. Don't navigate when location.protocol is set to anything ↵wolfbeast2018-12-16-0/+17
| | | | other than http or https.
* Do not report resource-timing subdocument loads triggered by that subdocument.wolfbeast2018-12-14-0/+3
|
* Remove VR hardware support.wolfbeast2018-11-26-174/+0
| | | | This resolves #881
* Tell the cycle collector about nsScriptLoadRequest::mElement.wolfbeast2018-11-15-2/+10
| | | | Not doing this can cause a leak because there is a cycle between the load request and the script element.
* Fix build bustage.wolfbeast2018-11-15-1/+0
| | | | Tag #871
* Split the content viewer marking function in CCUncollectable out,wolfbeast2018-11-14-16/+23
| | | | | | so a document-based marking function can be used separately. Tag #871
* Ensure user input suppression works correctly even after document.open.wolfbeast2018-11-02-5/+10
|
* Bug 1466991 - Part 2: Reparent nodes when they start being in the XBL scope.wolfbeast2018-09-11-0/+49
|
* Bug 1466991 - Part 1: Factor out ShouldUseXBLScope.wolfbeast2018-09-11-1/+17
|
* Fix build bustage in cbfef7fcdb853916ff04015f6ee2d4b86f424a08wolfbeast2018-09-11-2/+4
| | | | | - 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-0/+2
|
* Move surface data checking to a separate function to make it less "totally nuts"wolfbeast2018-09-11-12/+47
|
* Bug 1357432 (#750)Moonchild2018-09-05-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Remove all C++ telemetry autotimerswolfbeast2018-09-04-2/+0
|
* Remove all C++ Telemetry Accumulation calls.wolfbeast2018-09-03-161/+1
| | | | | This creates a number of stubs and leaves some surrounding code that may be irrelevant (eg. recorded time stamps, status variables). Stub resolution/removal should be a follow-up to this.