20 — Origins: whose document runs inside your page

After this lesson you will be able to say why the scheme allowlist that contains a link and the registry that contains a form action both fail on a frame, and give the reason as a property of what a frame is rather than as a ranking of dangers; state which half of a frame's address stays in the tree and which half does not, and defend the split with the test that decides it; explain why this seam has no plan and no resolve step when the two before it did, and name the property of an allowlist that buys that; say why the verdict has two states where a submission has three; explain what sandbox="allow-scripts allow-same-origin" protects a page from when the framed document comes from the page's own origin, and what the system does about it; and say why a framable prop is declared as a list of prop names by the primitive's author, what happens when that declaration drifts, and the one drift nothing catches.

Prerequisites: 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19.

Lesson 19 ended by handing you a pattern and telling you it was a shape rather than a coincidence: a name in the tree, an address in a registry, resolved before the walk. Two seams fit it. It was offered as the thing Part V might turn out to be about.

This lesson is the third seam, and it breaks two of those three clauses. The address stays in the tree. Nothing is resolved before the walk. Only the middle clause survives, and it survives in a form that is not quite what you would predict from the other two.

That is the lesson. Not the frame — the frame is the occasion. What you are being asked to work out is which part of a pattern was load-bearing and which part was two examples in a row.

Reading what you have done so far…