gecko-dev/dom/html
Emilio Cobos Álvarez d36c96ab4c Bug 1612068 - Move zoom from the content viewer to the browsing context. r=nika
We need it to live in BrowsingContext instead of WindowContext, because
we need to preserve the zoom level across same-origin navigation.

It'd be nice if it only lived in the top BC, but that's not possible at
the moment because a lot of tests rely on zooming only iframes. Some of
them can be adjusted for scaling the top instead, but not sure it's
worth it's worth fixing them and moving the zoom to be top-only, as it'd
be a bunch of effort, and the complexity and overhead of propagating the
zoom is not so big.

The print-preview-specific code in nsContentViewer is from before we did
the document cloning setup, and it seems useless. I've tested print
preview scaling before and after my patch and both behave the same.

The rest is just various test changes to use the SpecialPowers APIs or
BrowsingContext as needed instead of directly poking at the content
viewer.

I named the pres context hook RecomputeBrowsingContextDependentData, as
more stuff should move there like overrideDPPX and other media emulation
shenanigans.

I also have some ideas to simplify or even remove ZoomChild and such,
but that's followup work.

Differential Revision: https://phabricator.services.mozilla.com/D71969
2020-04-22 19:32:52 +00:00
..
crashtests Bug 1631541 - Remove unused ImageDocument webidl bits. r=smaug 2020-04-20 20:23:52 +00:00
input Bug 1519636 - Reformat recent changes to the Google coding style r=jgilbert 2020-04-05 13:34:58 +00:00
reftests Bug 1631887 - And another one. 2020-04-23 01:09:42 +02:00
test Bug 1612068 - Move zoom from the content viewer to the browsing context. r=nika 2020-04-22 19:32:52 +00:00
ElementInternals.cpp Bug 1552313 - Implement element.attachInternals; r=smaug,edgar 2019-11-12 11:27:55 +00:00
ElementInternals.h Bug 1552313 - Implement element.attachInternals; r=smaug,edgar 2019-11-12 11:27:55 +00:00
HTMLAllCollection.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLAllCollection.h
HTMLAnchorElement.cpp Bug 1128054 - Part 3: Invalid tabindex attribute should not make an element focusable; r=smaug 2020-04-04 20:03:09 +00:00
HTMLAnchorElement.h
HTMLAreaElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLAreaElement.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
HTMLAudioElement.cpp Bug 1377999 - Make HTML Element to adapt the DOMArena changes r=smaug 2020-03-17 14:53:08 +00:00
HTMLAudioElement.h
HTMLBRElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLBRElement.h Bug 1569902 - part 2: Stop using attribute to consider whether a `<br>` element is a special node for empty last line or not r=m_kato,smaug 2019-08-02 05:45:18 +00:00
HTMLBodyElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLBodyElement.h
HTMLButtonElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLButtonElement.h
HTMLCanvasElement.cpp Bug 1627594 - Schedule a full paint when canvas element is invalidated before the first paint r=kats 2020-04-23 13:20:34 +00:00
HTMLCanvasElement.h Bug 1630072 - WebGPU CanvasContext invalidation r=jgilbert,aosmond 2020-04-20 23:50:04 +00:00
HTMLDataElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLDataElement.h
HTMLDataListElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLDataListElement.h
HTMLDetailsElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLDetailsElement.h
HTMLDialogElement.cpp Bug 1377999 - Make HTML Element to adapt the DOMArena changes r=smaug 2020-03-17 14:53:08 +00:00
HTMLDialogElement.h
HTMLDivElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLDivElement.h
HTMLElement.cpp Bug 1377999 - Make HTML Element to adapt the DOMArena changes r=smaug 2020-03-17 14:53:08 +00:00
HTMLEmbedElement.cpp Bug 1128054 - Part 2: Don't need to override TabIndexDefault in HTMLEmbedElement; r=smaug 2020-03-27 13:01:07 +00:00
HTMLEmbedElement.h Bug 1128054 - Part 1: Override IsInteractiveHTMLContent in HTMLEmbedElement; r=smaug 2020-04-02 08:58:42 +00:00
HTMLFieldSetElement.cpp
HTMLFieldSetElement.h
HTMLFontElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLFontElement.h
HTMLFormControlsCollection.cpp
HTMLFormControlsCollection.h
HTMLFormElement.cpp Bug 616849 - Made insecure form submission prompt tab modal. r=johannh,baku 2020-04-20 13:56:02 +00:00
HTMLFormElement.h Bug 1626436 - Remove nsAutoPtr usage from dom/html. r=mccr8 2020-04-03 21:04:59 +00:00
HTMLFormSubmission.cpp Bug 1591100. Fix the form submission URL for the empty-query case. r=smaug 2020-03-13 11:46:26 +00:00
HTMLFormSubmission.h Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj 2020-02-20 11:40:14 +00:00
HTMLFormSubmissionConstants.h
HTMLFrameElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLFrameElement.h
HTMLFrameSetElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLFrameSetElement.h
HTMLHRElement.cpp Bug 1617472 - Use enums for text-align / text-align-last. r=jfkthame 2020-02-24 13:32:57 +00:00
HTMLHRElement.h
HTMLHeadingElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLHeadingElement.h Bug 1590366 - Remove accessibility.heading-element-level-changes.enabled. r=MarcoZ 2019-10-22 13:51:41 +00:00
HTMLIFrameElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLIFrameElement.h Bug 1595936: Part 2 - Refresh feature policy when attaching browsing context. r=farre,baku 2020-01-24 19:03:10 +00:00
HTMLImageElement.cpp Bug 1628894 - Defer loading images with srcset attribute if the loading was set to "lazy" before we start loading the srcset images. r=emilio 2020-04-10 23:21:03 +00:00
HTMLImageElement.h Bug 1628894 - Defer loading images with srcset attribute if the loading was set to "lazy" before we start loading the srcset images. r=emilio 2020-04-10 23:21:03 +00:00
HTMLInputElement.cpp Bug 1622659 - Removed 'else' after 'return' in HTMLInputElement - r=emilio 2020-04-16 13:25:18 +00:00
HTMLInputElement.h Bug 1424284 - Part 1. Add inputmode to HTMLElement. r=smaug,jdai 2020-04-07 08:37:25 +00:00
HTMLLIElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLLIElement.h
HTMLLabelElement.cpp Bug 1629096 - Always honor scroll-margin / scroll-padding from nsFocusManager. r=masayuki 2020-04-13 11:34:48 +00:00
HTMLLabelElement.h Bug 1432856 - Extended focus methods in Window.webidl, Client.webidl and Element.webidl to pass CallerType. r=smaug 2020-01-16 14:38:40 +00:00
HTMLLegendElement.cpp Bug 1629096 - Always honor scroll-margin / scroll-padding from nsFocusManager. r=masayuki 2020-04-13 11:34:48 +00:00
HTMLLegendElement.h Bug 1341018 - Create enum class LegendAlignValue to replace NS_STYLE_TEXT_ALIGN_* and NS_STYLE_VERTICAL_ALIGN_* in legend code. r=emilio 2020-01-23 03:10:03 +00:00
HTMLLinkElement.cpp Bug 1374612 - CSP: Hide nonce values from the DOM. r=smaug,annevk 2020-02-29 12:35:46 +00:00
HTMLLinkElement.h Bug 1614329 - Fix the handling of the type attribute of HTMLStyleElement; r=bzbarsky 2020-02-11 19:38:26 +00:00
HTMLMapElement.cpp
HTMLMapElement.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLMarqueeElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLMarqueeElement.h
HTMLMediaElement.cpp Bug 1625615 - part5 : add test-only attribute and event for media element. r=bryce,emilio 2020-04-20 21:19:57 +00:00
HTMLMediaElement.h Bug 1625615 - part5 : add test-only attribute and event for media element. r=bryce,emilio 2020-04-20 21:19:57 +00:00
HTMLMenuBuilder.jsm Bug 1577746 - Enable ESLint rule object-shorthand for dom/. r=baku 2019-09-02 11:22:27 +00:00
HTMLMenuElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLMenuElement.h
HTMLMenuItemElement.cpp Bug 1377999 - Make HTML Element to adapt the DOMArena changes r=smaug 2020-03-17 14:53:08 +00:00
HTMLMenuItemElement.h
HTMLMetaElement.cpp Bug 1632020 - Don't handle no content attribute meta viewport tag. r=smaug 2020-04-23 07:46:45 +00:00
HTMLMetaElement.h Bug 1498729 - Handle the cases where the name of viewport meta tag changes. r=smaug,botond 2019-07-25 04:26:04 +00:00
HTMLMeterElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLMeterElement.h
HTMLModElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLModElement.h
HTMLObjectElement.cpp Bug 1589027 - Fix object.tabIndex should return 0 by default; r=smaug 2019-10-28 15:50:59 +00:00
HTMLObjectElement.h Bug 1589027 - Fix object.tabIndex should return 0 by default; r=smaug 2019-10-28 15:50:59 +00:00
HTMLOptGroupElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLOptGroupElement.h
HTMLOptionElement.cpp Bug 40545 - Options to use label attribute when present r=emilio,jfkthame,mats 2020-04-06 16:06:36 +00:00
HTMLOptionElement.h Bug 40545 - Fix the empty-label attribute case in the select popup. r=chutten 2020-04-06 16:43:17 +00:00
HTMLOptionsCollection.cpp
HTMLOptionsCollection.h
HTMLOutputElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLOutputElement.h
HTMLParagraphElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLParagraphElement.h
HTMLPictureElement.cpp Bug 1377999 - Make HTML Element to adapt the DOMArena changes r=smaug 2020-03-17 14:53:08 +00:00
HTMLPictureElement.h
HTMLPreElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLPreElement.h
HTMLProgressElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLProgressElement.h
HTMLScriptElement.cpp Bug 1377999 - Make HTML Element to adapt the DOMArena changes r=smaug 2020-03-17 14:53:08 +00:00
HTMLScriptElement.h Bug 1528697 - Expose ReferrerPolicy.webidl and use referrerpolicy enum r=smaug 2019-08-21 13:24:45 +00:00
HTMLSelectElement.cpp Bug 1581537 - Avoid several browser language leaks r=smaug 2019-11-04 16:56:27 +00:00
HTMLSelectElement.h Bug 1570982 - remove `CPP_THROW_NEW`; r=glandium 2019-08-14 01:32:41 +00:00
HTMLSharedElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLSharedElement.h
HTMLSharedListElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLSharedListElement.h
HTMLSlotElement.cpp Bug 1377999 - Make HTML Element to adapt the DOMArena changes r=smaug 2020-03-17 14:53:08 +00:00
HTMLSlotElement.h Bug 1554498 - Don't use nsIMutationObserver for ShadowRoot. r=smaug 2019-08-27 22:10:46 +00:00
HTMLSourceElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLSourceElement.h
HTMLSpanElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLSpanElement.h Bug 1602421 - Remove some useless includes. r=jfkthame 2019-12-09 14:53:50 +00:00
HTMLStyleElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLStyleElement.h
HTMLSummaryElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLSummaryElement.h
HTMLTableCaptionElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLTableCaptionElement.h
HTMLTableCellElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLTableCellElement.h
HTMLTableColElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLTableColElement.h
HTMLTableElement.cpp Bug 1617472 - Use enums for text-align / text-align-last. r=jfkthame 2020-02-24 13:32:57 +00:00
HTMLTableElement.h
HTMLTableRowElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLTableRowElement.h
HTMLTableSectionElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLTableSectionElement.h
HTMLTemplateElement.cpp
HTMLTemplateElement.h
HTMLTextAreaElement.cpp Bug 1377999 - Make HTML Element to adapt the DOMArena changes r=smaug 2020-03-17 14:53:08 +00:00
HTMLTextAreaElement.h Bug 1401657 - Make editor value changes always notify. r=masayuki 2020-03-13 02:29:48 +00:00
HTMLTimeElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLTimeElement.h
HTMLTitleElement.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLTitleElement.h
HTMLTrackElement.cpp Bug 1377999 - Make HTML Element to adapt the DOMArena changes r=smaug 2020-03-17 14:53:08 +00:00
HTMLTrackElement.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
HTMLUnknownElement.cpp
HTMLUnknownElement.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
HTMLVideoElement.cpp Bug 1623486 - part4 : update Picture-in-Picture mode status from media element. r=chunmin,padenot 2020-04-01 23:04:58 +00:00
HTMLVideoElement.h Bug 1536156 - Let cloneElementVisually() return a promise that resolves when frames have been rendered. r=alwu,mconley,bzbarsky 2019-11-22 12:52:48 +00:00
ImageDocument.cpp Bug 1612068 - Move zoom from the content viewer to the browsing context. r=nika 2020-04-22 19:32:52 +00:00
ImageDocument.h Bug 1631776 - Store an HTMLImageElement in ImageDocument. r=smaug 2020-04-21 16:45:36 +00:00
MediaDocument.cpp Bug 1623222 - Remove the charset parameter from nsITextToSubURI::UnEscapeURIForUI. r=hsivonen 2020-03-19 10:45:28 +00:00
MediaDocument.h Bug 1581537 - Avoid several browser language leaks r=smaug 2019-11-04 16:56:27 +00:00
MediaError.cpp
MediaError.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
PlayPromise.cpp Bug 1591655 - Remove the unnecessary |proto| argument from |JS::NewPromiseObject| and its callers, seeing as all callers pass |nullptr| (and therefore uniformly request the default prototype). r=jandem,bzbarsky 2019-10-26 08:14:05 +00:00
PlayPromise.h
PluginDocument.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
RadioNodeList.cpp
RadioNodeList.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
TextControlElement.h Bug 1401657 - Make editor value changes always notify. r=masayuki 2020-03-13 02:29:48 +00:00
TextControlState.cpp Bug 1623858: part 3) Remove `TextInputSelectionController::mLimiter`. r=smaug 2020-03-20 13:23:59 +00:00
TextControlState.h Bug 253870 - Make disabled form controls selectable. r=masayuki,MarcoZ 2020-03-19 13:18:16 +00:00
TextInputListener.h Bug 1597679 - part 2: Make `nsITextControlElement` inherit `nsGenericHTMLFormElementWithState` r=smaug 2019-11-25 06:35:15 +00:00
TextTrackManager.cpp Bug 1624232 - 1624232: Replaced 'else if' with 'if' after 'return' in dom/html/TextTrackManager.cpp r=emilio 2020-04-09 20:05:41 +00:00
TextTrackManager.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
TimeRanges.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
TimeRanges.h
ValidityState.cpp
ValidityState.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
VideoDocument.cpp Bug 1564449, ensure the right body element is used throughout the method call, r=mccr8 2019-08-06 16:43:01 +03:00
components.conf
moz.build Bug 1631541 - Remove nsIImageDocument. r=webidl,smaug 2020-04-20 19:23:10 +00:00
nsBrowserElement.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
nsBrowserElement.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
nsDOMStringMap.cpp
nsDOMStringMap.h
nsGenericHTMLElement.cpp Bug 1629096 - Always honor scroll-margin / scroll-padding from nsFocusManager. r=masayuki 2020-04-13 11:34:48 +00:00
nsGenericHTMLElement.h Bug 1424284 - Part 1. Add inputmode to HTMLElement. r=smaug,jdai 2020-04-07 08:37:25 +00:00
nsGenericHTMLFrameElement.cpp Backed out 7 changesets (bug 1580565) for bc failures on a CLOSED TREE 2020-04-22 21:51:17 +03:00
nsGenericHTMLFrameElement.h Bug 1631548 - part 2: Remove nsGenericHTMLFrameElement::mFrameLoaderCreationDisallowed. r=emilio 2020-04-20 19:02:24 +00:00
nsHTMLContentSink.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
nsHTMLDNSPrefetch.cpp Bug 1625151 - P2: Lazy initialize nsHTMLDNSPrefetch::sDNSService r=dragana 2020-04-14 09:14:49 +00:00
nsHTMLDNSPrefetch.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
nsHTMLDocument.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00
nsHTMLDocument.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
nsIConstraintValidation.cpp Bug 1617600 - Prototype :focus-visible behind a flag. r=smaug 2020-02-26 14:16:20 +00:00
nsIConstraintValidation.h
nsIForm.h
nsIFormControl.h Bug 981248 - Rewrite <input type=number> to avoid an anonymous input. r=masayuki,surkov,jwatt,ntim,jfkthame,smaug 2020-01-14 19:01:05 +00:00
nsIFormSubmitObserver.idl
nsIHTMLCollection.h
nsIMenuBuilder.idl
nsIRadioGroupContainer.h
nsIRadioVisitor.h
nsRadioVisitor.cpp
nsRadioVisitor.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/html. r=smaug 2020-02-20 16:19:15 +00:00