gecko-dev/parser/html
Emilio Cobos Álvarez d575f4cd3d Bug 1637651 - Don't trigger duplicate style link preloads for the same preload key. r=smaug
This is equivalent to the check in Document::MaybePreLoadImage, since
otherwise this code won't check the preload service at all. Without
this, we can trigger the assertion in PreloaderBase::NotifyOpen when we
have identical Link header and speculative link element preloads.

It's not a correctness nor perf issue, because the CSS loader will
coalesce the stylesheet load anyways, but it seems better to do this
than to remove the assertion, specially given images already do that.

The test-case in the following patch triggers the issue.

Depends on D103568

Differential Revision: https://phabricator.services.mozilla.com/D103569
2021-02-01 15:06:12 +00:00
..
java Bug 1670357 - Remove `make` targets for cleaning: `clean`, `realclean`, `clobber`, `distclean`, `clobber_all`, `everything` r=firefox-build-system-reviewers,mhentges 2020-10-15 20:37:18 +00:00
javasrc Bug 786797 - Check for integer overflow when computing new buffer sizes. r=smaug 2021-01-21 17:02:58 +00:00
jArray.h
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
nsAHtml5TreeBuilderState.h
nsAHtml5TreeOpSink.h
nsHtml5ArrayCopy.h
nsHtml5AtomTable.cpp Bug 1637500 - P2. Rename methods as they are not always dealing with "threads". r=froydnj 2020-06-23 05:05:36 +00:00
nsHtml5AtomTable.h
nsHtml5AttributeEntry.h
nsHtml5AttributeName.cpp Bug 1425291 - Part 2. Add autocapitalize attribute to htmlparser. r=hsivonen 2020-09-15 14:26:14 +00:00
nsHtml5AttributeName.h Bug 1425291 - Part 2. Add autocapitalize attribute to htmlparser. r=hsivonen 2020-09-15 14:26:14 +00:00
nsHtml5AutoPauseUpdate.h
nsHtml5ByteReadable.h
nsHtml5ContentCreatorFunction.h
nsHtml5DependentUTF16Buffer.cpp
nsHtml5DependentUTF16Buffer.h
nsHtml5DocumentBuilder.cpp Bug 1639392 - Merge nsIStyleSheetLinkingElement and nsStyleLinkElement, and call it LinkStyle. r=jwatt 2020-05-21 03:07:16 +00:00
nsHtml5DocumentBuilder.h Bug 1673931 - Avoid including Document.h from header files. r=emilio 2020-11-23 16:07:43 +00:00
nsHtml5DocumentMode.h
nsHtml5ElementName.cpp
nsHtml5ElementName.h
nsHtml5Highlighter.cpp Bug 1489437 - Part 1: Make HTML parser distinguish network, document.write and fragments in append operation; r=smaug,hsivonen 2021-01-06 09:29:41 +00:00
nsHtml5Highlighter.h
nsHtml5HtmlAttributes.cpp
nsHtml5HtmlAttributes.h
nsHtml5Macros.h
nsHtml5MetaScanner.cpp Bug 786797 - Check for integer overflow when computing new buffer sizes. r=smaug 2021-01-21 17:02:58 +00:00
nsHtml5MetaScanner.h Bug 786797 - Check for integer overflow when computing new buffer sizes. r=smaug 2021-01-21 17:02:58 +00:00
nsHtml5MetaScannerCppSupplement.h
nsHtml5MetaScannerHSupplement.h
nsHtml5Module.cpp
nsHtml5Module.h
nsHtml5NamedCharacters.cpp
nsHtml5NamedCharacters.h
nsHtml5NamedCharactersAccel.cpp
nsHtml5NamedCharactersAccel.h
nsHtml5NamedCharactersInclude.h
nsHtml5OplessBuilder.cpp
nsHtml5OplessBuilder.h
nsHtml5OwningUTF16Buffer.cpp Bug 1653335 - Remove uses of MakeSpan in return statements. r=froydnj 2020-08-07 07:42:50 +00:00
nsHtml5OwningUTF16Buffer.h Bug 1607762 - Make the refcount of nsHtml5OwningUTF16Buffer atomic. r=mccr8 2020-10-14 15:29:44 +00:00
nsHtml5Parser.cpp Bug 1618643 - Remove nsAutoPtr usage from parser. r=hsivonen 2020-02-28 20:49:06 +00:00
nsHtml5Parser.h Bug 1618643 - Remove nsAutoPtr usage from parser. r=hsivonen 2020-02-28 20:49:06 +00:00
nsHtml5PlainTextUtils.cpp
nsHtml5PlainTextUtils.h
nsHtml5Portability.cpp Bug 786797 - Check for integer overflow when computing new buffer sizes. r=smaug 2021-01-21 17:02:58 +00:00
nsHtml5Portability.h Bug 786797 - Check for integer overflow when computing new buffer sizes. r=smaug 2021-01-21 17:02:58 +00:00
nsHtml5SVGLoadDispatcher.cpp
nsHtml5SVGLoadDispatcher.h
nsHtml5Speculation.cpp
nsHtml5Speculation.h Bug 1618643 - Remove nsAutoPtr usage from parser. r=hsivonen 2020-02-28 20:49:06 +00:00
nsHtml5SpeculativeLoad.cpp Bug 1598613 - Account for <link media=""> for speculative loads of stylesheet and preload links. r=hsivonen 2021-02-01 08:03:57 +00:00
nsHtml5SpeculativeLoad.h Bug 1598613 - Account for <link media=""> for speculative loads of stylesheet and preload links. r=hsivonen 2021-02-01 08:03:57 +00:00
nsHtml5StackNode.cpp
nsHtml5StackNode.h
nsHtml5StateSnapshot.cpp
nsHtml5StateSnapshot.h
nsHtml5StreamListener.cpp
nsHtml5StreamListener.h
nsHtml5StreamParser.cpp Bug 1688368 - Check mFeedChardet before feeding the detector. r=emk 2021-01-27 10:36:39 +00:00
nsHtml5StreamParser.h Bug 1686463 - Gather telemetry about automatic encoding detection outcomes. r=chutten,emk 2021-01-24 00:11:07 +00:00
nsHtml5StreamParserPtr.h
nsHtml5String.cpp Bug 1653335 - Replace MakeSpan uses by constructor calls. r=froydnj 2020-08-07 07:49:47 +00:00
nsHtml5String.h
nsHtml5StringParser.cpp Bug 1618643 - Remove nsAutoPtr usage from parser. r=hsivonen 2020-02-28 20:49:06 +00:00
nsHtml5StringParser.h Bug 1618643 - Remove nsAutoPtr usage from parser. r=hsivonen 2020-02-28 20:49:06 +00:00
nsHtml5Tokenizer.cpp Bug 786797 - Check for integer overflow when computing new buffer sizes. r=smaug 2021-01-21 17:02:58 +00:00
nsHtml5Tokenizer.h Bug 1650090 - Stop reporting HTML4-specific parse errors. DONTBUILD NPOTB r=alchen 2020-08-03 11:03:02 +00:00
nsHtml5TokenizerCppSupplement.h Bug 1618643 - Remove nsAutoPtr usage from parser. r=hsivonen 2020-02-28 20:49:06 +00:00
nsHtml5TokenizerHSupplement.h Bug 1618643 - Remove nsAutoPtr usage from parser. r=hsivonen 2020-02-28 20:49:06 +00:00
nsHtml5TokenizerLoopPolicies.h
nsHtml5TreeBuilder.cpp Bug 1650329 - Improve message: bad start tag in noscript in head. r=alchen 2020-08-03 12:30:12 +00:00
nsHtml5TreeBuilder.h Bug 1650090 - Stop reporting HTML4-specific parse errors. DONTBUILD NPOTB r=alchen 2020-08-03 11:03:02 +00:00
nsHtml5TreeBuilderCppSupplement.h Bug 1598613 - Account for <link media=""> for speculative loads of stylesheet and preload links. r=hsivonen 2021-02-01 08:03:57 +00:00
nsHtml5TreeBuilderHSupplement.h Bug 1650329 - Improve message: bad start tag in noscript in head. r=alchen 2020-08-03 12:30:12 +00:00
nsHtml5TreeOpExecutor.cpp Bug 1637651 - Don't trigger duplicate style link preloads for the same preload key. r=smaug 2021-02-01 15:06:12 +00:00
nsHtml5TreeOpExecutor.h Bug 1598613 - Account for <link media=""> for speculative loads of stylesheet and preload links. r=hsivonen 2021-02-01 08:03:57 +00:00
nsHtml5TreeOpStage.cpp
nsHtml5TreeOpStage.h
nsHtml5TreeOperation.cpp Bug 1489437 - Part 1: Make HTML parser distinguish network, document.write and fragments in append operation; r=smaug,hsivonen 2021-01-06 09:29:41 +00:00
nsHtml5TreeOperation.h Bug 1489437 - Part 1: Make HTML parser distinguish network, document.write and fragments in append operation; r=smaug,hsivonen 2021-01-06 09:29:41 +00:00
nsHtml5UTF16Buffer.cpp
nsHtml5UTF16Buffer.h
nsHtml5UTF16BufferCppSupplement.h
nsHtml5UTF16BufferHSupplement.h
nsHtml5ViewSourceUtils.cpp Bug 1610402 - static prefs for view_source.{wrap_long_lines,syntax_highlight,tab_size} r=emilio 2020-02-20 15:31:37 +00:00
nsHtml5ViewSourceUtils.h
nsIContentHandle.h
nsIParserUtils.idl
nsParserUtils.cpp Bug 1666300 part 2 - Parse into an inert document. r=smaug 2020-10-23 12:48:52 +00:00
nsParserUtils.h