See <https://html.spec.whatwg.org/multipage/webappapis.html#dom-origin>: the idea is to have a way to get the origin of the global in both workers and windows.
Created attachment 304830 [details] WIP patch
Comment on attachment 304830 [details] WIP patch Attachment 304830 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/3353730 New failing tests: imported/w3c/web-platform-tests/fetch/api/cors/cors-preflight-star-worker.html
Created attachment 304856 [details] Archive of layout-test-results from ews100 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Comment on attachment 304830 [details] WIP patch Attachment 304830 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/3353733 New failing tests: imported/w3c/web-platform-tests/fetch/api/cors/cors-preflight-star-worker.html
Created attachment 304857 [details] Archive of layout-test-results from ews104 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Comment on attachment 304830 [details] WIP patch Attachment 304830 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/3353735 New failing tests: imported/w3c/web-platform-tests/fetch/api/cors/cors-preflight-star-worker.html
Created attachment 304859 [details] Archive of layout-test-results from ews117 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Comment on attachment 304830 [details] WIP patch Attachment 304830 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/3353751 New failing tests: imported/w3c/web-platform-tests/fetch/api/cors/cors-preflight-star-worker.html
Created attachment 304860 [details] Archive of layout-test-results from ews121 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews121 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
(In reply to comment #8) > Comment on attachment 304830 [details] > WIP patch > > Attachment 304830 [details] did not pass ios-sim-ews (ios-simulator-wk2): > Output: http://webkit-queues.webkit.org/results/3353751 > > New failing tests: > imported/w3c/web-platform-tests/fetch/api/cors/cors-preflight-star-worker. > html Failure is due to an apparent bug in JSC: https://bugs.webkit.org/show_bug.cgi?id=169839
Created attachment 304901 [details] Patch
Comment on attachment 304901 [details] Patch Clearing flags on attachment: 304901 Committed r214147: <http://trac.webkit.org/changeset/214147>
All reviewed patches have been landed. Closing bug.