Peter Van der Beken
317063aa1e
Bug 1754724 - Clear up even more computations in expat code. r=farre, a=tritter
...
Depends on D140166
Differential Revision: https://phabricator.services.mozilla.com/D140167
2022-03-02 22:34:28 +00:00
Peter Van der Beken
6431af8019
Bug 1754724 - Clear up some more computations in expat code. r=farre, a=tritter
...
Depends on D140165
Differential Revision: https://phabricator.services.mozilla.com/D140166
2022-03-02 22:22:08 +00:00
Peter Van der Beken
5876a3de0f
Bug 1754724 - Clear up some computations in expat code. r=farre, a=tritter
...
Differential Revision: https://phabricator.services.mozilla.com/D140165
2022-03-02 22:18:23 +00:00
Frederik Braun
30828a6a49
Bug 1754301 - remove pref security.csp.enable r=ckerschb,mccr8
...
This removes the pref `security.csp.enable` and amends various callers
in dom/, which no longer have to take this pref into consideration.
Furthermore, we can remove the test in dom/base/test/browser_bug593387.js
The test used the pref to test that external content can be embedded into
about:plugins, which is historic baggage from a previous architecture of
said page that we no longer require. It's also an anti-pattern that we
do not want to support any longer. In fact, the test had to jump through
additional hoops to make that work at all.
Differential Revision: https://phabricator.services.mozilla.com/D138661
2022-02-15 16:03:27 +00:00
Peter Van der Beken
77831c9ef1
Bug 1539759 - Improve DTD entity handling. Testcase. r=Gijs
...
Differential Revision: https://phabricator.services.mozilla.com/D33778
2022-02-15 07:16:05 +00:00
Butkovits Atila
ba154da74d
Backed out changeset b5c1408b6ad4 (bug 1539759) for causing failures at browser_elementindtd.js. CLOSED TREE
2022-02-14 19:58:23 +02:00
Peter Van der Beken
4fc8956e2c
Bug 1539759 - Improve DTD entity handling. Testcase. r=Gijs
...
Differential Revision: https://phabricator.services.mozilla.com/D33778
2022-02-14 17:14:32 +00:00
Butkovits Atila
386bb5b47c
Backed out changeset fcdfaa991183 (bug 1539759) for causing failures at browser_elementindtd.js. CLOSED TREE
2022-02-14 16:58:20 +02:00
Peter Van der Beken
844ac388df
Bug 1539759 - Improve DTD entity handling. Testcase. r=Gijs
...
Differential Revision: https://phabricator.services.mozilla.com/D33778
2022-02-14 14:04:33 +00:00
Peter Van der Beken
ca753f9d3c
Bug 1749935 - Simplify nsParser::Initialize. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135900
2022-02-14 13:03:52 +00:00
Peter Van der Beken
d6a364bec1
Bug 1749935 - Remove GetDTD. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135899
2022-02-14 13:03:52 +00:00
Peter Van der Beken
470c69ad81
Bug 1749935 - Inline nsParser::CancelParsingEvents. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135898
2022-02-14 13:03:52 +00:00
Peter Van der Beken
ec144630b6
Bug 1749935 - Remove nsIParser::ParseFragment/Reset. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135897
2022-02-14 13:03:51 +00:00
Peter Van der Beken
15b814ccd7
Bug 1749935 - Create nsParser directly instead of with a CID. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135896
2022-02-14 13:03:51 +00:00
Peter Van der Beken
6c6f7200a6
Bug 1749935 - Remove nsITokenizer. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135887
2022-02-14 13:03:50 +00:00
Peter Van der Beken
d023f9c301
Bug 1749935 - Inline nsParser::Tokenize. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135886
2022-02-14 13:03:50 +00:00
Peter Van der Beken
787e892c74
Bug 1749935 - Inline nsParser::BuildModel. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135885
2022-02-14 13:03:50 +00:00
Peter Van der Beken
cd418faeea
Bug 1749935 - Inline nsParser::WillTokenize in the caller. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135884
2022-02-14 13:03:49 +00:00
Peter Van der Beken
2e0cd032d6
Bug 1749935 - Remove nsIDTD::WillBuildModel. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135883
2022-02-14 13:03:49 +00:00
Peter Van der Beken
bbfc56b73d
Bug 1749935 - Inline FindSuitableDTD in caller. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135882
2022-02-14 13:03:49 +00:00
Peter Van der Beken
00c7469638
Bug 1749935 - Make mSlidingBuffer a UniquePtr. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135881
2022-02-14 13:03:48 +00:00
Peter Van der Beken
15b9997eb0
Bug 1749935 - Always create scanner upfront. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135880
2022-02-14 13:03:48 +00:00
Peter Van der Beken
c68cf34189
Bug 1749935 - Remove unused support for nested CParserContext. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135879
2022-02-14 13:03:47 +00:00
Peter Van der Beken
bb4612daad
Bug 1749935 - Remove nsIDTD::GetMode. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135848
2022-02-14 13:03:47 +00:00
Peter Van der Beken
2e5c4bc0ad
Bug 1749935 - Remove unused argument from nsIDTD::DidBuildModel. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135847
2022-02-14 13:03:47 +00:00
Peter Van der Beken
028ef0b8d1
Bug 1749935 - Remove nsDTDMode::eDTDMode_unknown and unused nsDTDMode::eDTDMode_almost_standards/eDTDMode_fragment. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135846
2022-02-14 13:03:46 +00:00
Peter Van der Beken
f7e0158768
Bug 1749935 - Remove unused nsIDTD::CanContain/IsContainer. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135844
2022-02-14 13:03:46 +00:00
Peter Van der Beken
c3603b8d98
Bug 1749935 - Remove unused aTokenizer argument for nsIDTD::WillBuildModel/BuildModel. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135843
2022-02-14 13:03:45 +00:00
Peter Van der Beken
2021662efc
Bug 1749935 - Remove unused NS_PARSER_FLAG_OBSERVERS_ENABLED and NS_PARSER_FLAG_FLUSH_TOKENS. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135842
2022-02-14 13:03:45 +00:00
Peter Van der Beken
dbcebc9c00
Bug 1749935 - Remove unused nsParser::SetUnusedInput. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135841
2022-02-14 13:03:44 +00:00
Peter Van der Beken
0836295ae7
Bug 1749935 - Remove nsIParser::MarkAsNotScriptCreated. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135840
2022-02-14 13:03:44 +00:00
Peter Van der Beken
63a0a73d2c
Bug 1749935 - Remove nsIParser::GetChannel. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135839
2022-02-14 13:03:44 +00:00
Peter Van der Beken
481d54202e
Bug 1749935 - Remove unused eAutoDetectResult values. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135838
2022-02-14 13:03:43 +00:00
Peter Van der Beken
5549bd8b2c
Bug 1749935 - Remove unused PREFER_LATTER_ERROR_CODE. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135837
2022-02-14 13:03:43 +00:00
Peter Van der Beken
8573e064a2
Bug 1749935 - Mark nsIParser::WillResume(Impl) as infallible. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135836
2022-02-14 13:03:43 +00:00
Randell Jesup
2f491bfc19
Bug 1749056: Parser cleanup r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D135409
2022-02-11 20:56:58 +00:00
Chris Peterson
2ae60bead7
Bug 1744425 - Replace nsContentUtils::GenerateUUID() to nsID::GenerateUUID(). r=nika
...
Bug 1723674 added a new nsID::GenerateUUID() static factory function to generate UUIDs without the overhead of querying and instantiating an nsIUUIDGenerator object. nsContentUtils::GenerateUUID() is a utility function that amortizes that overhead by holding an nsIUUIDGenerator singleton. That's no longer necessary because code that calls nsContentUtils::GenerateUUID() can now just call nsID::GenerateUUID(). No nsIUUDGenerator is needed.
Differential Revision: https://phabricator.services.mozilla.com/D132866
2022-02-03 04:39:34 +00:00
Peter Van der Beken
dd05949994
Bug 1752498 - XML error shows garbage for location. r=bholley
...
Differential Revision: https://phabricator.services.mozilla.com/D137262
2022-02-02 09:28:33 +00:00
Henri Sivonen
2c95bf7be8
Bug 1749522 - When plain text encoding speculation fails, restart the plaintext mode of the tokenizer. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D135830
2022-01-17 09:16:10 +00:00
Peter Van der Beken
1105765fa9
Bug 1749462 - Don't convert URI to string for Expat. r=bholley
...
Differential Revision: https://phabricator.services.mozilla.com/D135835
2022-01-17 08:49:11 +00:00
Sandor Molnar
4d0c0a33eb
Backed out changeset a2d8eae8d006 (bug 1749522) for causing reftest failures in tests/reftest/bug1749522-1. CLOSED TREE
2022-01-14 17:50:39 +02:00
Henri Sivonen
d20ee45260
Bug 1749522 - When plain text encoding speculation fails, restart the plaintext mode of the tokenizer. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D135830
2022-01-14 13:36:24 +00:00
Henri Sivonen
09d38d1170
Bug 1748482 - Check XML parser for brokenness in various methods. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D135096
2022-01-05 13:43:35 +00:00
Henri Sivonen
4c4a0740a9
Bug 1748234 - Sync HTML parser Java source comments with validator repo. NPOTB r=edgar DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D134951
2022-01-04 10:40:18 +00:00
Bobby Holley
65ffce9728
Bug 1746996 - Ensure that storeRawNames is always called. r=peterv
...
To avoid copying in the common case, expat points directly into the
(internal) input buffer for strings referenced from the tag stack. When
expat unwinds back to the caller, it attempts to call storeRawNames() to
walk the tag stack and copy any such strings into persistent memory
before the caller potentially invokes XML_Parse() again and shuffles the
input buffer, thereby invalidating these references.
Unfortunately, it doesn't do it in all the right places. Because
different parsing states set |processor| to different callbacks (so that
parsing can resume in the right context), there are a number of
non-obvious entry points. In this case, the input stream was chunked so
that parsing paused in middle of processing an internal entity [1], so
|processor| was set to internalEntityProcessor(), which invokes
doContent() but does not call storeRawNames(). The doContent() call then
parsed some nested tags from the entity. Tags within an entity are
generally required to be balanced, but a host callback returned an error
code to interrupt parsing midway through. This caused Expat to return to
the caller with a tag stack still referencing the input buffer, which
got clobbered in the next call to XML_Parse, causing a tag mismatch on
the next close tag.
Conceptually, this optimization should be managed by doContent(), and I
believe the only reason that isn't the case is that doContent() has so
many return paths (and we don't have RAII in C). We can fix this by
wrapping doContent() in a helper.
[1] &certerror.expiredCert.whatCanYouDoAboutIt2;
Differential Revision: https://phabricator.services.mozilla.com/D134878
2022-01-01 05:00:45 +00:00
Henri Sivonen
2f2b2fb6fb
Bug 1747264 - Avoid OOMing if the URL of an XML document is huge. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D134506
2021-12-27 07:31:34 +00:00
Bobby Holley
42c90d1426
Bug 1747514 - Ensure the expat sandbox is large enough to hold the base URI. r=shravanrn,deian
...
Differential Revision: https://phabricator.services.mozilla.com/D134653
2021-12-25 06:00:25 +00:00
Bobby Holley
84ba1b89f4
Bug 1747514 - Make RLBoxTransferBufferToSandbox properly fallible. r=shravanrn
...
Differential Revision: https://phabricator.services.mozilla.com/D134670
2021-12-25 06:00:25 +00:00
Kagami Sascha Rosylight
dc3411ed8f
Bug 1539884 - Part 32: Mark nsHtml5SVGLoadDispatcher::Run as CAN_RUN_SCRIPT_BOUNDARY r=masayuki
...
Differential Revision: https://phabricator.services.mozilla.com/D134415
2021-12-23 16:27:24 +00:00
Henri Sivonen
97da4f66b8
Bug 1745142 - Communicate encoding commitment via speculative load queue. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D133996
2021-12-22 15:54:49 +00:00