Files
servo/components/script/dom/bindings
yvt c25355704d fix(script): the condition for exposing a cross-origin setter is CrossOriginWritable, not CrossOriginReadable
The expression `crossOriginIframe.contentWindow.location.href = "new
href"` takes the following steps: (1) Get the setter for `href` by
invoking `[[GetOwnProperty]]` on `crossOriginIframe.contentWindow.
location`. (2) Call the setter, passing `crossOriginIframe.
contentWindow` and `"new href"`. Since the target `Location` is cross
origin, getting the setter succeeds only if the `CrossOriginWritable`
extended attribute is present on the `href` attribute, and it's present.
However, instead of `CrossOriginWritable`, `CrossOriginReadable` was
checked mistakenly.

Since `Location#href` has `CrossOriginWritable` but not
`CrossOriginReadable`, this bug rendered `Location#href` inaccessible
from a cross-origin document.
2021-08-17 09:26:27 +09:00
..
2020-06-18 12:56:33 -04:00
2021-02-18 09:35:45 -05:00
2020-11-25 18:30:50 +00:00
2020-03-06 11:13:28 +01:00
2018-11-19 14:47:12 +01:00
2020-03-06 11:13:28 +01:00
2019-12-21 12:44:35 -09:00
2020-04-02 10:16:46 +02:00
2021-02-18 09:35:45 -05:00
2019-12-21 12:44:35 -09:00