Bug 1835157 - Ignore target names which contain both newline and < characters. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D210480
This commit is contained in:
Tom Schuster
2024-05-24 08:09:36 +00:00
parent ee9cae7415
commit c223046d21
13 changed files with 62 additions and 39 deletions

View File

@@ -481,6 +481,11 @@ class HTMLFormElement final : public nsGenericHTMLElement {
*/
nsresult GetActionURL(nsIURI** aActionURL, Element* aOriginatingElement);
// Get the target to submit to. This is either the submitter's |formtarget| or
// the form's |target| (Including <base>).
void GetSubmissionTarget(nsGenericHTMLElement* aSubmitter,
nsAString& aTarget);
// Returns a number for this form that is unique within its owner document.
// This is used by nsContentUtils::GenerateStateKey to identify form controls
// that are inserted into the document by the parser.