mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +09:00
Issue #2736 - Part 7: Re-work <frame> and <iframe> src attribute.
Use subject principal as triggering principal in <iframe>/<frame> "src" attribute.
This commit is contained in:
parent
1f638b22ec
commit
2416e71cd3
9 changed files with 82 additions and 28 deletions
|
|
@ -82,10 +82,13 @@ public:
|
|||
SetHTMLAttr(nsGkAtoms::scrolling, aScrolling, aError);
|
||||
}
|
||||
|
||||
// The XPCOM GetSrc is OK for us
|
||||
void SetSrc(const nsAString& aSrc, ErrorResult& aError)
|
||||
void GetSrc(nsString& aSrc, nsIPrincipal&)
|
||||
{
|
||||
SetAttrHelper(nsGkAtoms::src, aSrc);
|
||||
GetURIAttr(nsGkAtoms::src, nullptr, aSrc);
|
||||
}
|
||||
void SetSrc(const nsAString& aSrc, nsIPrincipal& aTriggeringPrincipal, ErrorResult& aError)
|
||||
{
|
||||
SetHTMLAttr(nsGkAtoms::src, aSrc, aTriggeringPrincipal, aError);
|
||||
}
|
||||
|
||||
using nsGenericHTMLFrameElement::GetContentDocument;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue