mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Auto merge of #15131 - nox:storageevent, r=jdm
Test that StorageEvent's URL is empty from document.createEvent <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15131) <!-- Reviewable:end -->
This commit is contained in:
commit
6665d59912
3 changed files with 21 additions and 2 deletions
|
@ -2710,8 +2710,7 @@ impl DocumentMethods for Document {
|
|||
"progressevent" =>
|
||||
Ok(Root::upcast(ProgressEvent::new_uninitialized(self.window.upcast()))),
|
||||
"storageevent" => {
|
||||
let USVString(url) = self.URL();
|
||||
Ok(Root::upcast(StorageEvent::new_uninitialized(&self.window, DOMString::from(url))))
|
||||
Ok(Root::upcast(StorageEvent::new_uninitialized(&self.window, "".into())))
|
||||
},
|
||||
"touchevent" =>
|
||||
Ok(Root::upcast(
|
||||
|
|
|
@ -12500,6 +12500,12 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"mozilla/createEvent-storageevent.html": [
|
||||
[
|
||||
"/_mozilla/mozilla/createEvent-storageevent.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"mozilla/cross-origin-objects/cross-origin-objects.html": [
|
||||
[
|
||||
"/_mozilla/mozilla/cross-origin-objects/cross-origin-objects.html",
|
||||
|
@ -25045,6 +25051,10 @@
|
|||
"f1029d519aa7017a1a3d18a891a0774b9a39f847",
|
||||
"testharness"
|
||||
],
|
||||
"mozilla/createEvent-storageevent.html": [
|
||||
"eea787f4d2372e9c2c6777a0569ce5d110c3110a",
|
||||
"testharness"
|
||||
],
|
||||
"mozilla/cross-origin-objects/cross-origin-objects.html": [
|
||||
"5d5a3ba4099dfabddbed1ea98ad8fe1f5c00a3d3",
|
||||
"testharness"
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>storageevent</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(function() {
|
||||
assert_equals(document.createEvent('storageevent').url, "");
|
||||
}, "document.createEvent('storageevent') does not propagate the document's URL.")
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue