mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 14:58:46 +00:00
With this patch, we now enforce basic same-origin policy for this one <iframe> attribute. To make it easier to add more attributes like this, I've added an extended IDL attribute ("[ReturnNullIfCrossOrigin]") that does exactly what it sounds like. :^)
11 lines
369 B
Text
11 lines
369 B
Text
interface HTMLIFrameElement : HTMLElement {
|
|
|
|
[Reflect] attribute DOMString src;
|
|
[Reflect] attribute DOMString srcdoc;
|
|
[Reflect] attribute DOMString name;
|
|
[Reflect] attribute DOMString allow;
|
|
[Reflect] attribute DOMString width;
|
|
[Reflect] attribute DOMString height;
|
|
|
|
[ReturnNullIfCrossOrigin] readonly attribute Document? contentDocument;
|
|
}
|