Commit Graph

4444 Commits

Author SHA1 Message Date
Frederik Braun
6eac45b147 Bug 1644070 - add missing URLish attributes to TreeSanitizer r=hsivonen
This adds the elements `formaction`, `data`, `ping`, `poster`.

We can't really add a test for the `<object data>`, since we never
allow `<object>` elements in the first place and we don't allow
settings exceptions for temporarily allowed elements.
Same for `poster` elements, since it's only used in media elements
and those are either all allowed or none.

Differential Revision: https://phabricator.services.mozilla.com/D78638
2020-06-10 07:24:05 +00:00
Emilio Cobos Álvarez
54fd961a29 Bug 1641245 - Make string comparators not virtual. r=froydnj,necko-reviewers,geckoview-reviewers,jgilbert,agi,valentin
There's no use case for stateful comparators, so they can be just plain
function pointers.

This is used in some hot places like CSS selector matching.

Differential Revision: https://phabricator.services.mozilla.com/D77084
2020-05-27 18:11:12 +00:00
Emilio Cobos Álvarez
c3b7227771 Bug 1639392 - Merge nsIStyleSheetLinkingElement and nsStyleLinkElement, and call it LinkStyle. r=jwatt
Which is the spec term. nsIStyleSheetLinkingElement is even more
confusing since it may not be an element at all (see: processing
instructions).

Differential Revision: https://phabricator.services.mozilla.com/D76071
2020-05-21 03:07:16 +00:00
Emilio Cobos Álvarez
7353713339 Bug 1639392 - Remove nsIStyleSheetLinkingElement::InitStyleLinkElement. r=jwatt
Always gets false as an argument, and the value starts false, so it's
just dead code.

Depends on D76067

Differential Revision: https://phabricator.services.mozilla.com/D76068
2020-05-20 17:35:25 +00:00
Razvan Maries
958490b3c1 Backed out 4 changesets (bug 1639392) for build bustages on nsCOMPtr.h. CLOSED TREE
Backed out changeset 379e2c6c0491 (bug 1639392)
Backed out changeset ce2500faad38 (bug 1639392)
Backed out changeset cee5116fbef3 (bug 1639392)
Backed out changeset 7c5823c53db8 (bug 1639392)
2020-05-20 19:36:00 +03:00
Emilio Cobos Álvarez
4b6f3e905b Bug 1639392 - Remove nsIStyleSheetLinkingElement::InitStyleLinkElement. r=jwatt
Always gets false as an argument, and the value starts false, so it's
just dead code.

Depends on D76067

Differential Revision: https://phabricator.services.mozilla.com/D76068
2020-05-20 10:30:32 +00:00
Alexandre Poirot
718bf89e62 Bug 1620966 - Move DocShell.watchedByDevtools to BrowsingContext and rename it to watchedByDevTools. r=nika,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D66037
2020-05-12 09:18:26 +00:00
Honza Bambas
bc388980de Bug 1618322 - Merge network.preload.experimental pref to network.preload, r=dragana
Depends on D70235

Differential Revision: https://phabricator.services.mozilla.com/D70526
2020-05-11 14:15:30 +00:00
Honza Bambas
ec52ba8274 Bug 1618536 - Preload for fonts, r=heycam,hsivonen
Depends on D72118

Differential Revision: https://phabricator.services.mozilla.com/D70235
2020-05-11 14:14:32 +00:00
Honza Bambas
9e027ce534 Bug 1618535 - Implement preloading for as="fetch" type r=kershaw,baku
Depends on D69860

Differential Revision: https://phabricator.services.mozilla.com/D69628
2020-05-11 14:12:33 +00:00
Edgar Chen
3f250fba44 Bug 1618295 - Make imgRequestProxy implement and use PreloaderBase to support the preload as speculative load feature; r=tnikkel,smaug,mayhemer
Depends on D72083

Differential Revision: https://phabricator.services.mozilla.com/D69860
2020-05-11 14:43:05 +00:00
Edgar Chen
ae65cbe96e Bug 1618295 - Add imagesrcset and imagesizes attribute to the HTML parser; r=hsivonen
See https://html.spec.whatwg.org/multipage/semantics.html#the-link-element:attr-link-imagesrcset.

Depends on D71949

Differential Revision: https://phabricator.services.mozilla.com/D72083
2020-05-11 14:09:36 +00:00
Honza Bambas
2d65fbb465 Bug 1618298 - Update PreloadService to provide APIs to integrate with link DOM element, r=smaug
Depends on D67480

Differential Revision: https://phabricator.services.mozilla.com/D67482
2020-05-11 14:05:22 +00:00
Zibi Braniecki
9a24b61c50 Bug 1627809 - Rename Document::TriggerInitialTranslation to Document::OnParsingCompleted. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D70974
2020-04-30 17:56:11 +00:00
Zibi Braniecki
30bcee56da Bug 1627809 - Rename *DocumentTranslation to *Translation. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D70971
2020-04-30 17:55:26 +00:00
Robert Longson
46d24ea87e Bug 1581691 - make transform-origin a mapped CSS attribute r=heycam,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D63016
2020-04-18 05:10:29 +00:00
Cosmin Sabou
52b7bc2fa6 Backed out changeset 136b9329a6f7 (bug 1581691) for failures on svg/styling/presentation-attributes-relevant.html. 2020-04-18 06:15:10 +03:00
Robert Longson
650b69563f Bug 1581691 - make transform-origin a mapped CSS attribute r=heycam,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D63016
2020-04-18 01:32:40 +00:00
Andreas Farre
36eaf82163 Bug 1620594 - Part 2: Use SchedulerGroup::Dispatch instead of SystemGroup::Dispatch. r=nika
Depends on D67631

Differential Revision: https://phabricator.services.mozilla.com/D67632

--HG--
extra : moz-landing-system : lando
2020-04-07 15:16:33 +00:00
Eric Rahm
2e886347a8 Bug 1626452 - Remove remaining nsAutoPtr usage from parser/. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D69123

--HG--
extra : moz-landing-system : lando
2020-04-03 21:05:30 +00:00
Tom Schuster
5eb9932e47 Bug 1621813 - Remove nsIScriptError.exceptionFlag. r=mccr8
I made some changes in preparation for removing nsIScriptError.flags in favor
of nsIConsoleMessage.logLevel.

Differential Revision: https://phabricator.services.mozilla.com/D66878

--HG--
extra : moz-landing-system : lando
2020-03-19 21:31:44 +00:00
Sean Feng
908efe692e Bug 1377999 - Make TextNode to adapt the DOMArena changes r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D62353

--HG--
extra : moz-landing-system : lando
2020-03-17 14:53:54 +00:00
Sean Feng
8e65109ea6 Bug 1377999 - Make Comment to adapt the DOMArena changes r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D62352

--HG--
extra : moz-landing-system : lando
2020-03-17 14:53:51 +00:00
Sean Feng
8af0b53201 Bug 1377999 - Make DocumentFragment to adapt the DOMArena changes r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D57707

--HG--
extra : moz-landing-system : lando
2020-03-17 14:53:46 +00:00
Mark Banner
15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D65703

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Tetsuharu OHZEKI
4aa1d005d7 Bug 1618901 - Add null check for the returend BrowsingContext to follow up bug 1597495. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D64758

--HG--
extra : moz-landing-system : lando
2020-03-02 20:07:10 +00:00
Eric Rahm
bbe8e477b9 Bug 1618643 - Remove nsAutoPtr usage from parser. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D64251

--HG--
extra : moz-landing-system : lando
2020-02-28 20:49:06 +00:00
Henri Sivonen
4f14dd3156 Bug 1619230 - Use .get() in P::completedNamedCharacterReference(mViewSource). r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D64927

--HG--
extra : moz-landing-system : lando
2020-03-02 17:45:31 +00:00
Oana Pop Rus
77ceff26f5 Backed out changeset e65a9431a729 (bug 1618643) for build bustages in sHtml5TreeBuilderCppSupplement.h on a CLOSED TREE 2020-02-28 21:28:02 +02:00
Eric Rahm
eaccc90075 Bug 1618643 - Remove nsAutoPtr usage from parser. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D64251

--HG--
extra : moz-landing-system : lando
2020-02-28 19:12:58 +00:00
Henri Sivonen
5f8fe948be Bug 1618488 - Add .get() to mViewSource in calls to P::transition in the tokenizer. r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D64552

--HG--
extra : moz-landing-system : lando
2020-02-27 19:28:46 +00:00
Kris Maglione
c31aa68fb4 Bug 1535617: Part 2 - Clear weak references for most cycle collected objects on unlink. r=mccr8
This covers most cycle collected objects which support weak references, but
not the ones which inherit from a cycle collected class and don't do any cycle
collection on their own.

Differential Revision: https://phabricator.services.mozilla.com/D63962

--HG--
extra : moz-landing-system : lando
2020-02-25 19:44:39 +00:00
Tetsuharu OHZEKI
5a9cd51a1a Bug 1597495 - Remove nsIDocShellTreeItem from nsHtml5TreeOpExecutor::MaybeComplainAboutCharset(). r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D63611

--HG--
extra : moz-landing-system : lando
2020-02-21 08:00:21 +00:00
John Elliot V
d062cab989 Bug 1610402 - static prefs for view_source.{wrap_long_lines,syntax_highlight,tab_size} r=emilio
***
Bug 1610402 - Use static prefs for view_source.{wrap_long_lines,syntax_highlight,tab_size} r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D63470

--HG--
extra : moz-landing-system : lando
2020-02-20 15:31:37 +00:00
Razvan Maries
ae9503e243 Backed out changeset 2050d4e3c7e0 (bug 1610402) for Lint failures. CLOSED TREE 2020-02-20 16:28:11 +02:00
John Elliot V
ac48f9b971 Bug 1610402 - Use static prefs for view_source.{wrap_long_lines,syntax_highlight,tab_size} r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D63470

--HG--
extra : moz-landing-system : lando
2020-02-20 14:16:50 +00:00
Simon Giesecke
b50347f917 Bug 1611415 - Prefer using std::move over forget. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-13 14:38:48 +00:00
Hiroyuki Ikezoe
157511a8d7 Bug 1542784 - Stop speculative image load for lazy load images. r=hsivonen
Depends on D61434

Differential Revision: https://phabricator.services.mozilla.com/D61435

--HG--
extra : moz-landing-system : lando
2020-02-12 21:29:10 +00:00
Hiroyuki Ikezoe
3ef2b1843e Bug 1542784 - Add loading attribute to the HTML parser. r=hsivonen
Depends on D61433

Differential Revision: https://phabricator.services.mozilla.com/D61434

--HG--
extra : moz-landing-system : lando
2020-02-12 21:29:07 +00:00
shindli
91aa0518dd Backed out changeset 0c982bc69cb3 (bug 1611415) for causing build bustages in /builds/worker/workspace/build/src/obj-firefox/dist/include/nsCOMPtr CLOSED TREE 2020-02-12 20:13:29 +02:00
Simon Giesecke
f604a47fa5 Bug 1611415 - Applied FixItHints from mozilla-non-std-move. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-12 17:24:41 +00:00
Henri Sivonen
3ad0a42a86 Bug 1614314 - Use GitHub as upstream for the Java code of the HTML parser. r=alchen
Differential Revision: https://phabricator.services.mozilla.com/D62238

--HG--
extra : moz-landing-system : lando
2020-02-10 15:05:17 +00:00
Emilio Cobos Álvarez
b997cfcaf4 Bug 1614208 - Stop including PresShell.h and nsPresContext.h from Element.h. r=smaug
nsPresContext.h is only used for unit conversion, which can be done by Units.h
in a similar fashion.

PresShell.h was needed for some capturing-content stuff which can be moved out
of line.

Differential Revision: https://phabricator.services.mozilla.com/D62170

--HG--
extra : moz-landing-system : lando
2020-02-11 01:23:12 +00:00
Sylvestre Ledru
187e9bafaf Bug 1519636 - Automatically reformat recent changes using clang-format r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D60354

--HG--
extra : moz-landing-system : lando
2020-01-21 09:51:27 +00:00
Narcis Beleuzu
997ca40e0a Bug 1609837 - Update expectations for fission reftest. CLOSED TREE
--HG--
extra : rebase_source : 9ad7b3e50e2d8b013bba96ea610c3e4b8a584695
2020-01-17 12:28:39 +02:00
Henri Sivonen
401466e015 Bug 1602944 - Move setting context to null. r=alchen
Differential Revision: https://phabricator.services.mozilla.com/D57965

--HG--
extra : moz-landing-system : lando
2020-01-03 14:28:37 +00:00
Christoph Kerschbaumer
076eaa47d2 Bug 1596360: Monitor the fragment parser in chrome code and in about: pages and assert that no new calls e.g. to innerHTML and friends can be introduced. r=jkt,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D53163

--HG--
extra : moz-landing-system : lando
2020-01-12 19:50:13 +00:00
Oana Pop Rus
ccb320c394 Backed out changeset b80ab0927b40 (bug 1596360) for dt failures in DOMSecurityMonitor.cpp on a CLOSED TREE 2020-01-10 16:04:27 +02:00
Christoph Kerschbaumer
c114029715 Bug 1596360: Monitor the fragment parser in chrome code and in about: pages and assert that no new calls e.g. to innerHTML and friends can be introduced. r=jkt,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D53163

--HG--
extra : moz-landing-system : lando
2020-01-10 13:08:26 +00:00
Emilio Cobos Álvarez
278b36aafb Bug 1607816 - Replace mozilla::{Max, Min}Value with std::numeric_limits. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D59153

--HG--
extra : moz-landing-system : lando
2020-01-08 16:30:40 +00:00