mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 14:58:37 +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
|
|
@ -48,10 +48,13 @@ public:
|
|||
uint32_t GetSandboxFlags();
|
||||
|
||||
// Web IDL binding methods
|
||||
// The XPCOM GetSrc is fine for our purposes
|
||||
void SetSrc(const nsAString& aSrc, ErrorResult& aError)
|
||||
void GetSrc(nsString& aSrc, nsIPrincipal&) const
|
||||
{
|
||||
SetHTMLAttr(nsGkAtoms::src, aSrc, aError);
|
||||
GetURIAttr(nsGkAtoms::src, nullptr, aSrc);
|
||||
}
|
||||
void SetSrc(const nsAString& aSrc, nsIPrincipal& aTriggeringPrincipal, ErrorResult& aError)
|
||||
{
|
||||
SetHTMLAttr(nsGkAtoms::src, aSrc, aTriggeringPrincipal, aError);
|
||||
}
|
||||
void GetSrcdoc(DOMString& aSrcdoc)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue