Bug 1406278: Part 7 - Use subject principal as triggering principal in <input> "src" attribute. r=bz
MozReview-Commit-ID: 8DZOwqBrA2i
This commit is contained in:
@@ -707,13 +707,13 @@ public:
|
||||
SetUnsignedIntAttr(nsGkAtoms::size, aValue, DEFAULT_COLS, aRv);
|
||||
}
|
||||
|
||||
void GetSrc(nsAString& aValue)
|
||||
void GetSrc(nsAString& aValue, nsIPrincipal&)
|
||||
{
|
||||
GetURIAttr(nsGkAtoms::src, nullptr, aValue);
|
||||
}
|
||||
void SetSrc(const nsAString& aValue, ErrorResult& aRv)
|
||||
void SetSrc(const nsAString& aValue, nsIPrincipal& aTriggeringPrincipal, ErrorResult& aRv)
|
||||
{
|
||||
SetHTMLAttr(nsGkAtoms::src, aValue, aRv);
|
||||
SetHTMLAttr(nsGkAtoms::src, aValue, aTriggeringPrincipal, aRv);
|
||||
}
|
||||
|
||||
void GetStep(nsAString& aValue)
|
||||
@@ -1617,6 +1617,11 @@ protected:
|
||||
*/
|
||||
nsTextEditorState::SelectionProperties mSelectionProperties;
|
||||
|
||||
/**
|
||||
* The triggering principal for the src attribute.
|
||||
*/
|
||||
nsCOMPtr<nsIPrincipal> mSrcTriggeringPrincipal;
|
||||
|
||||
/*
|
||||
* InputType object created based on input type.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user