XMLHttpRequestUpload should be exposed in dedicated workers
https://bugs.webkit.org/show_bug.cgi?id=203901

Reviewed by Alex Christensen.

LayoutTests/imported/w3c:

* web-platform-tests/workers/semantics/interface-objects/001.worker-expected.txt:
* web-platform-tests/xhr/idlharness.any.worker-expected.txt:

Source/WebCore:

Covered by rebased test.

* xml/XMLHttpRequestUpload.idl:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@252299 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/imported/w3c/ChangeLog b/LayoutTests/imported/w3c/ChangeLog
index 02d2303..e205691 100644
--- a/LayoutTests/imported/w3c/ChangeLog
+++ b/LayoutTests/imported/w3c/ChangeLog
@@ -1,3 +1,13 @@
+2019-11-08  youenn fablet  <youenn@apple.com>
+
+        XMLHttpRequestUpload should be exposed in dedicated workers
+        https://bugs.webkit.org/show_bug.cgi?id=203901
+
+        Reviewed by Alex Christensen.
+
+        * web-platform-tests/workers/semantics/interface-objects/001.worker-expected.txt:
+        * web-platform-tests/xhr/idlharness.any.worker-expected.txt:
+
 2019-11-05  Oriol Brufau  <obrufau@igalia.com>
 
         [css-lists] Implement list-style-type: <string>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/001.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/001.worker-expected.txt
index ca7d443..9a87804 100644
--- a/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/001.worker-expected.txt
+++ b/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/001.worker-expected.txt
@@ -32,7 +32,7 @@
 PASS The Float64Array interface object should be exposed. 
 PASS The DataView interface object should be exposed. 
 PASS The XMLHttpRequestEventTarget interface object should be exposed. 
-FAIL The XMLHttpRequestUpload interface object should be exposed. assert_own_property: expected property "XMLHttpRequestUpload" missing
+PASS The XMLHttpRequestUpload interface object should be exposed. 
 PASS The XMLHttpRequest interface object should be exposed. 
 PASS The ProgressEvent interface object should be exposed. 
 FAIL The FormData interface object should be exposed. assert_own_property: expected property "FormData" missing
diff --git a/LayoutTests/imported/w3c/web-platform-tests/xhr/idlharness.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/xhr/idlharness.any.worker-expected.txt
index c6aba11..2ee218a 100644
--- a/LayoutTests/imported/w3c/web-platform-tests/xhr/idlharness.any.worker-expected.txt
+++ b/LayoutTests/imported/w3c/web-platform-tests/xhr/idlharness.any.worker-expected.txt
@@ -13,13 +13,13 @@
 PASS XMLHttpRequestEventTarget interface: attribute onload 
 PASS XMLHttpRequestEventTarget interface: attribute ontimeout 
 PASS XMLHttpRequestEventTarget interface: attribute onloadend 
-FAIL XMLHttpRequestUpload interface: existence and properties of interface object assert_own_property: self does not have own property "XMLHttpRequestUpload" expected property "XMLHttpRequestUpload" missing
-FAIL XMLHttpRequestUpload interface object length assert_own_property: self does not have own property "XMLHttpRequestUpload" expected property "XMLHttpRequestUpload" missing
-FAIL XMLHttpRequestUpload interface object name assert_own_property: self does not have own property "XMLHttpRequestUpload" expected property "XMLHttpRequestUpload" missing
-FAIL XMLHttpRequestUpload interface: existence and properties of interface prototype object assert_own_property: self does not have own property "XMLHttpRequestUpload" expected property "XMLHttpRequestUpload" missing
-FAIL XMLHttpRequestUpload interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "XMLHttpRequestUpload" expected property "XMLHttpRequestUpload" missing
-FAIL XMLHttpRequestUpload interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "XMLHttpRequestUpload" expected property "XMLHttpRequestUpload" missing
-FAIL XMLHttpRequestUpload must be primary interface of (new XMLHttpRequest()).upload assert_own_property: self does not have own property "XMLHttpRequestUpload" expected property "XMLHttpRequestUpload" missing
+PASS XMLHttpRequestUpload interface: existence and properties of interface object 
+PASS XMLHttpRequestUpload interface object length 
+PASS XMLHttpRequestUpload interface object name 
+PASS XMLHttpRequestUpload interface: existence and properties of interface prototype object 
+PASS XMLHttpRequestUpload interface: existence and properties of interface prototype object's "constructor" property 
+PASS XMLHttpRequestUpload interface: existence and properties of interface prototype object's @@unscopables property 
+PASS XMLHttpRequestUpload must be primary interface of (new XMLHttpRequest()).upload 
 PASS Stringification of (new XMLHttpRequest()).upload 
 PASS XMLHttpRequestEventTarget interface: (new XMLHttpRequest()).upload must inherit property "onloadstart" with the proper type 
 PASS XMLHttpRequestEventTarget interface: (new XMLHttpRequest()).upload must inherit property "onprogress" with the proper type 
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index ac8d0ec..cad813c 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,14 @@
+2019-11-08  youenn fablet  <youenn@apple.com>
+
+        XMLHttpRequestUpload should be exposed in dedicated workers
+        https://bugs.webkit.org/show_bug.cgi?id=203901
+
+        Reviewed by Alex Christensen.
+
+        Covered by rebased test.
+
+        * xml/XMLHttpRequestUpload.idl:
+
 2019-11-08  Jiewen Tan  <jiewen_tan@apple.com>
 
         [WebAuthn] Add quirk needed to support legacy Google NFC Titan security keys
diff --git a/Source/WebCore/xml/XMLHttpRequestUpload.idl b/Source/WebCore/xml/XMLHttpRequestUpload.idl
index b914536..26642e0 100644
--- a/Source/WebCore/xml/XMLHttpRequestUpload.idl
+++ b/Source/WebCore/xml/XMLHttpRequestUpload.idl
@@ -27,6 +27,7 @@
  */
 
 [
+    Exposed=(Window,Worker),
     GenerateIsReachable=Impl,
     JSGenerateToJSObject,
 ] interface XMLHttpRequestUpload : XMLHttpRequestEventTarget {