gecko-dev/parser/html
Yoshi Huang df6bad1c1e Bug 1373780 - Part 3: add isImgSet argument. r=jdm
Per mixed-content-blocked spec, [1], <img srcset> and <picture> should
be blocked. However we still fetch <img srcset> and <picture> in image
preload, because they are fetched with contentPolicyType
TYPE_INTERNAL_IMAGE_PRELOAD and won't be rejected by nsMixedContentBlocker.cpp.

So I updated the image preloading code, and use the type TYPE_IMAGESET
if the image request is for <picture> or <img srcset>, otherwise for
normal image load we still use TYPE_INTERNAL_IMAGE_PRELOAD.

[1]: https://w3c.github.io/webappsec-mixed-content/#should-block-fetch
  4. Return allowed if one or more of the following conditions are met:
     request’s type is "image", and initiator is not "imageset".
  5. Return blocked.
2017-08-24 18:10:54 +08:00
..
java Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
javasrc Backed out changeset fabf345eec6e (bug 1375701) for bustage at parser/html/nsHtml5String.h:143:3: bad implicit conversion constructor for 'nsHtml5String'. r=backout on a CLOSED TREE 2017-08-15 16:28:10 +02:00
jArray.h
moz.build Bug 1387569 - Also enable -Wno-implicit-fallthrough for gcc for parser/html (exists from gcc 7) r=hsivonen 2017-08-06 18:40:55 +02:00
nsAHtml5TreeBuilderState.h
nsAHtml5TreeOpSink.h
nsHtml5ArrayCopy.h Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj 2017-08-16 16:48:52 -07:00
nsHtml5Atom.cpp Bug 1362338: Make nsIAtom::AddRef and nsIAtom::Release final. r=froydnj 2017-08-09 14:20:17 +02:00
nsHtml5Atom.h Bug 1362338: Make nsIAtom::AddRef and nsIAtom::Release final. r=froydnj 2017-08-09 14:20:17 +02:00
nsHtml5AtomTable.cpp Bug 1371132 - Convert NS_GetCurrentThread calls in parser/ (r=hsivonen) 2017-06-12 20:21:43 -07:00
nsHtml5AtomTable.h Bug 1371132 - Convert NS_GetCurrentThread calls in parser/ (r=hsivonen) 2017-06-12 20:21:43 -07:00
nsHtml5AttributeEntry.h Bug 1355479 - Flatten attribute storage in the HTML parser to AutoTArray to avoid malloc. r=wchen 2017-04-13 11:14:48 +03:00
nsHtml5AttributeName.cpp Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5AttributeName.h Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5ByteReadable.h
nsHtml5ContentCreatorFunction.h Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5DependentUTF16Buffer.cpp
nsHtml5DependentUTF16Buffer.h
nsHtml5DocumentBuilder.cpp Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen 2017-06-18 20:37:50 +09:00
nsHtml5DocumentBuilder.h Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen 2017-06-18 20:37:50 +09:00
nsHtml5DocumentMode.h
nsHtml5ElementName.cpp Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5ElementName.h Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5Highlighter.cpp Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5Highlighter.h Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5HtmlAttributes.cpp Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
nsHtml5HtmlAttributes.h Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
nsHtml5Macros.h
nsHtml5MetaScanner.cpp Backed out changeset fabf345eec6e (bug 1375701) for bustage at parser/html/nsHtml5String.h:143:3: bad implicit conversion constructor for 'nsHtml5String'. r=backout on a CLOSED TREE 2017-08-15 16:28:10 +02:00
nsHtml5MetaScanner.h Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5MetaScannerCppSupplement.h Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen 2017-06-18 20:37:50 +09:00
nsHtml5MetaScannerHSupplement.h Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen 2017-06-18 20:37:50 +09:00
nsHtml5Module.cpp
nsHtml5Module.h
nsHtml5NamedCharacters.cpp
nsHtml5NamedCharacters.h
nsHtml5NamedCharactersAccel.cpp
nsHtml5NamedCharactersAccel.h
nsHtml5NamedCharactersInclude.h
nsHtml5OplessBuilder.cpp Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan 2017-05-08 08:24:22 +02:00
nsHtml5OplessBuilder.h
nsHtml5OwningUTF16Buffer.cpp Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
nsHtml5OwningUTF16Buffer.h Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
nsHtml5Parser.cpp Bug 1381253 - Remove redundant control flow declarations rs=ehsan 2017-07-15 19:03:04 +02:00
nsHtml5Parser.h Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen 2017-06-18 20:37:50 +09:00
nsHtml5PlainTextUtils.cpp Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron. 2017-08-04 14:40:52 +10:00
nsHtml5PlainTextUtils.h
nsHtml5Portability.cpp Backed out changeset fabf345eec6e (bug 1375701) for bustage at parser/html/nsHtml5String.h:143:3: bad implicit conversion constructor for 'nsHtml5String'. r=backout on a CLOSED TREE 2017-08-15 16:28:10 +02:00
nsHtml5Portability.h Backed out changeset fabf345eec6e (bug 1375701) for bustage at parser/html/nsHtml5String.h:143:3: bad implicit conversion constructor for 'nsHtml5String'. r=backout on a CLOSED TREE 2017-08-15 16:28:10 +02:00
nsHtml5SVGLoadDispatcher.cpp
nsHtml5SVGLoadDispatcher.h
nsHtml5Speculation.cpp
nsHtml5Speculation.h
nsHtml5SpeculativeLoad.cpp Bug 1053321 - Correctly pass info about 'defer' and 'async' attributes to HTML5 parser invoked script preload. r=bkelly 2017-08-19 05:35:00 -04:00
nsHtml5SpeculativeLoad.h Bug 1053321 - Correctly pass info about 'defer' and 'async' attributes to HTML5 parser invoked script preload. r=bkelly 2017-08-19 05:35:00 -04:00
nsHtml5StackNode.cpp Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5StackNode.h Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5StateSnapshot.cpp Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5StateSnapshot.h Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5StreamListener.cpp
nsHtml5StreamListener.h Bug 1333333 - Label runnables in the HTML parser (again). r=billm. 2017-06-27 10:38:30 -07:00
nsHtml5StreamParser.cpp Bug 1384835 (part 3, attempt 2) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj. 2017-07-31 14:28:48 +10:00
nsHtml5StreamParser.h Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm 2017-07-26 16:13:35 +08:00
nsHtml5StreamParserPtr.h Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm 2017-07-26 16:13:35 +08:00
nsHtml5String.cpp Backed out changeset fabf345eec6e (bug 1375701) for bustage at parser/html/nsHtml5String.h:143:3: bad implicit conversion constructor for 'nsHtml5String'. r=backout on a CLOSED TREE 2017-08-15 16:28:10 +02:00
nsHtml5String.h Backed out changeset fabf345eec6e (bug 1375701) for bustage at parser/html/nsHtml5String.h:143:3: bad implicit conversion constructor for 'nsHtml5String'. r=backout on a CLOSED TREE 2017-08-15 16:28:10 +02:00
nsHtml5StringParser.cpp
nsHtml5StringParser.h
nsHtml5Tokenizer.cpp Backed out changeset fabf345eec6e (bug 1375701) for bustage at parser/html/nsHtml5String.h:143:3: bad implicit conversion constructor for 'nsHtml5String'. r=backout on a CLOSED TREE 2017-08-15 16:28:10 +02:00
nsHtml5Tokenizer.h Bug 1269490 - Merge nsHtml5Atoms into nsGkAtoms. r=wchen 2017-04-20 11:47:02 +03:00
nsHtml5TokenizerCppSupplement.h Bug 1358037 - Inline the methods of nsHtml5ElementName and nsHtml5AttributeName. r=wchen 2017-04-20 10:34:32 +03:00
nsHtml5TokenizerHSupplement.h
nsHtml5TokenizerLoopPolicies.h
nsHtml5TreeBuilder.cpp Backed out changeset fabf345eec6e (bug 1375701) for bustage at parser/html/nsHtml5String.h:143:3: bad implicit conversion constructor for 'nsHtml5String'. r=backout on a CLOSED TREE 2017-08-15 16:28:10 +02:00
nsHtml5TreeBuilder.h Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5TreeBuilderCppSupplement.h Bug 1053321 - Correctly pass info about 'defer' and 'async' attributes to HTML5 parser invoked script preload. r=bkelly 2017-08-19 05:35:00 -04:00
nsHtml5TreeBuilderHSupplement.h Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen 2017-06-18 20:37:50 +09:00
nsHtml5TreeOpExecutor.cpp Bug 1373780 - Part 3: add isImgSet argument. r=jdm 2017-08-24 18:10:54 +08:00
nsHtml5TreeOpExecutor.h Bug 1053321 - Correctly pass info about 'defer' and 'async' attributes to HTML5 parser invoked script preload. r=bkelly 2017-08-19 05:35:00 -04:00
nsHtml5TreeOpStage.cpp
nsHtml5TreeOpStage.h
nsHtml5TreeOperation.cpp Backed out changeset fabf345eec6e (bug 1375701) for bustage at parser/html/nsHtml5String.h:143:3: bad implicit conversion constructor for 'nsHtml5String'. r=backout on a CLOSED TREE 2017-08-15 16:28:10 +02:00
nsHtml5TreeOperation.h Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5UTF16Buffer.cpp Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5UTF16Buffer.h Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5UTF16BufferCppSupplement.h
nsHtml5UTF16BufferHSupplement.h
nsHtml5ViewSourceUtils.cpp
nsHtml5ViewSourceUtils.h
nsIContentHandle.h
nsIParserUtils.idl
nsIScriptableUnescapeHTML.idl
nsParserUtils.cpp Bug 1390428 (part 9) - Remove nsXPIDLCString. r=erahm. 2017-08-17 15:29:03 +10:00
nsParserUtils.h