Job Bautista
c31f629aee
Issue #2997 - Update expat source to 2.7.4 and apply local patches.
2026-03-15 11:36:07 +08:00
Job Bautista
275947dbdb
Issue #2903 - Follow-up: Make types consistent with method used.
...
Fixes inconsistent use of XML_Error, uint32_t and int32_t.
2026-03-03 07:30:38 +08:00
Moonchild
49e8159c0a
[parser] Account for some corner-case structural document issues.
2026-02-27 07:01:03 +08:00
Francis Dominic Fajardo
e5497c8425
Issue #2889 - Follow-up: Add patch for XML_ParseBuffer.
2026-01-27 16:40:14 +08:00
Francis Dominic Fajardo
4b983c32b0
Issue #2889 - Follow-up: Update eventPtr/eventEndPtr for XML_ParseBuffer
2026-01-27 16:39:57 +08:00
Job Bautista
493169e227
Issue #2889 - Follow-up: Remove fix for BZ 569229.
...
Seems this workaround is no longer relevant for Expat 2.7.x, with upstream's
elimination of recursion.
2026-01-14 00:21:34 +08:00
Job Bautista
034eeaff97
Issue #2889 - Follow-up: Adjust Expat 2.7.3 local patches for removal of 3rd patch.
2026-01-14 00:21:03 +08:00
Job Bautista
acefed74fe
Issue #2889 - Follow-up: Allow generate_hash_secret_salt to be used.
...
Part 1 erroneously imported the 3rd patch from Mozilla assuming that we're also
already generating our salt with XML_SetHashSalt in our nsExpatDriver. Turns out
this is not the case.
2026-01-14 00:20:45 +08:00
Job Bautista
ca2ef5184a
Issue #2889 - Part 7: Apply patches to Expat 2.7.3.
2026-01-14 00:08:41 +08:00
Job Bautista
d2acec73f7
Issue #2889 - Part 6: Import Expat 2.7.3 source.
2026-01-14 00:06:26 +08:00
Job Bautista
a730f838c8
Issue #2889 - Part 5: Rewrite patches for Expat 2.7.3.
...
- Skipped the fix for BZ 569229 because I don't know where to apply that; the
processInternalEntity method no longer exists. Hopefully the bug doesn't re-
appear.
- Previous fixes for 3rd and 13th patches have been merged to their respective
patches as well.
- 15th patch is now a fix for the 13th and 14th since somewhere between 2.6.4
and 2.7.3 has made use of a debugging method we don't want to use as well as
a new boolean method called parserBusy which got mistakenly excluded as an
unused API while rewriting the 14th patch.
2026-01-14 00:03:54 +08:00
Job Bautista
8956c61187
Issue #2889 - Follow-up: void methods shouldn't return a value.
2026-01-14 00:03:31 +08:00
Job Bautista
e0f8acddc7
Issue #2889 - Follow-up: Avoid conflicts with system version of libexpat
2026-01-14 00:03:14 +08:00
Job Bautista
a2f8e66162
Issue #2889 - Part 4: Fix build and runtime issues.
...
- The 3rd patch causes MSVC to error out on an empty typedef struct.
- The 13th patch is causing the application to abort on startup.
- Fixed header issues as well as resolved the necessary symbols for gkmedias.
2026-01-14 00:02:48 +08:00
Job Bautista
0b9e221b14
Issue #2889 - Part 3: Apply Mozilla's patches to Expat 2.6.4.
2026-01-14 00:02:25 +08:00
Job Bautista
9ade98b4fc
Issue #2889 - Part 2: Import Expat 2.6.4 source.
2026-01-13 23:59:16 +08:00
Job Bautista
9567601675
Issue #2889 - Part 1: Prepare Mozilla's changes and extensions for Expat 2.6.4.
2026-01-13 23:55:28 +08:00
Job Bautista
b81b97ee47
Issue #2889 - Part 0: Relocate Mozilla-specific files from Expat source.
2026-01-13 23:54:27 +08:00
Moonchild
0d00c84033
Revert "Issue #2258 - Part 1: Support XCTO:nosniff when navigating."
...
This reverts commit f48c770701e62c382631620f4caa1fdc5ab1d7ae.
2025-09-26 23:15:31 +08:00
Moonchild
e56e5d6cb1
Issue #2258 - Part 1: Support XCTO:nosniff when navigating.
2025-08-18 09:46:58 +08:00
Moonchild
0331e633bd
Issue #2728 - Remove obsolete CSP referrer policy.
...
This has been superseded by the dedicated Referrer-policy header.
Resolves #2728
2025-04-30 22:58:43 +08:00
Moonchild
139e7a7ac6
Issue #2678 - Remove NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED
...
This no longer does anything at this point, except add indirection.
2025-01-20 21:12:18 +08:00
Moonchild
f6f046930d
Issue #2641 - Speculative load changes for referrerpolicy
2024-10-24 07:37:15 +08:00
FranklinDM
656ee639c5
Issue #2112 - Part 1: Remove Stylo tests
2024-04-02 22:29:48 +08:00
Moonchild
c230e21d23
[parser] Specialize AddAttributes for <html>/<body>.
2024-03-21 15:23:41 +08:00
FranklinDM
6c53117699
Issue #2158 - Part 5: Guard preload links support with a preference
...
This is enabled by default.
2024-01-29 15:30:41 +08:00
FranklinDM
b0d2af4e01
Issue #2158 - Part 3: Parse preload links as part of the HTML5 parser's speculative load queue
2024-01-29 15:29:57 +08:00
FranklinDM
8e1b3db048
Issue #2158 - Part 1: Add the 'as' attribute to the HTML Parser
2024-01-29 15:29:27 +08:00
Brian Smith
5b068f3726
Issue #2402 - CSP Violation events should have the correct sample for inline contexts. https://bugzilla.mozilla.org/show_bug.cgi?id=1473587 Add preference to increase max length of CSP report source sample. https://bugzilla.mozilla.org/show_bug.cgi?id=1415352 Return valid columnNumber value in CSP violation events. https://bugzilla.mozilla.org/show_bug.cgi?id=1418246
2024-01-11 09:50:12 +08:00
Moonchild
a39fd9e75f
Issue #1656 - Remove more vim control lines.
...
Vim control lines were re-introduced or not entirely cleaned up.
This nukes them again.
Removing from modules, netwerk, security, storage, testing, toolkit, and
a few scattered misc files. More to come.
2023-05-05 22:59:16 +08:00
FranklinDM
55100bb28e
Issue #1344 - (Parser: C++) Don't reset containsHyphen value after finding one
2023-02-27 11:04:46 +08:00
FranklinDM
d9b7057ffd
Issue #1344 - (Parser: Java) Don't reset containsHyphen value after finding one
2023-02-27 11:04:25 +08:00
Moonchild
b06fd11d6f
Issue #2010 - Ensure raw tagnames are safe exiting internalEntityParser
...
This resolves #2010
2022-09-29 15:18:46 +08:00
Moonchild
95120acbb2
[DOM security] Be more explicit about CSP checks and reports.
2022-09-22 10:18:33 +08:00
Moonchild
eaf9e756a0
Issue #21 - Remove remaining telemetry structs, callers and flags.
2022-04-28 10:33:44 +08:00
Moonchild
b74a23aee3
[htmlfive] Improve parser sanity checks.
2022-03-22 23:17:35 +08:00
Moonchild
9031ee4017
[parser] run java translation.
2021-03-04 09:21:34 +08:00
Moonchild
5934c74a3f
[html parser] Check for integer overflow when computing new buffer sizes.
2021-02-25 09:26:39 +08:00
Henri Sivonen
98deeb1203
[parser] Make the refcount of nsHtml5OwningUTF16Buffer atomic.
2020-11-19 21:11:59 +08:00
athenian200
7373069560
Issue #1673 - Part 4: Unprefix -moz-tab-size.
...
While we do fail a couple of tests, the other mainstream browsers also fail them and I think our implementation of tab-size is good enough to be unprefixed at this point. Having this patch also makes testing easier.
2020-11-06 09:42:27 +08:00
Moonchild
0cd673d720
Issue #1656 - Part 6: Clean up the build files
2020-09-25 22:04:23 +08:00
Moonchild
30df895eb2
Issue #1656 - Part 3: Nuke more vim config lines in the tree.
...
Another S&R run with some smarter matching.
2020-09-25 22:04:17 +08:00
Moonchild
8c395520d9
Issue #1656 - Part 1: Nuke most vim config lines in the tree.
...
Since these are just interpreted comments, there's 0 impact on actual code.
This removes all lines that match /* vim: set(.*)tw=80: */ with S&R -- there are
a few others scattered around which will be removed manually in a second part.
2020-09-25 22:04:12 +08:00
Moonchild
ba9802a724
[SVG] Only fire the SVG onload when scripting is enabled and allowed
2020-09-25 22:04:03 +08:00
Moonchild
57c79f8295
[no issue] Fix whitespace (no code change)
2020-09-25 22:04:02 +08:00
Gaming4JC
527d5c6252
Issue #618 - Regenerate the HTML Parser code for nomodule changes
...
Ref: BZ 1446082
2020-08-29 08:10:47 +08:00
Gaming4JC
6c8f24a735
Issue #618 - Don't preload nomodule scripts when modules are enabled
...
Ref: BZ 1382020
2020-08-29 08:10:45 +08:00
Moonchild
3781c4a6dd
Issue #618 - (async) Implement async attribute for inline module scripts.
...
This commit does several things:
- Moves the pref check from ScriptLoader to ns[I]Document so it can be called on
the document.
- Changes the atrribute freezing function to a better name that takes the
document as a parameter.
- Sets the proper async/defer attributes on HTML script elements based on
keywords and whether they are module scripts or not.
2020-08-29 08:10:42 +08:00
Moonchild
3fa4aabfad
Issue #618 - (async, preload) Correctly pass info about async/defer to parser.
...
This makes sure we don't block body-referred sub-resources by head-referenced
defer and async scripts. This is important for all script loads, not just
modules, but is added here because it was run into while implementing modules.
2020-08-29 08:10:37 +08:00
Moonchild
f85b274e94
Issue #1603 - Part 1: Reorganize ScriptLoader/ScriptElement
...
- Moves scripting parts of DOM into 'dom/script'
- Renames nsScript{Loader/Element} to Script{Loader/Element}
- Adjusts all callers
2020-07-04 07:01:00 +08:00