commit | ce24e8d887968296a2acebd96c31797d36fb08ca | [log] [tgz] |
---|---|---|
author | cdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Mon Nov 30 19:27:26 2015 +0000 |
committer | cdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Mon Nov 30 19:27:26 2015 +0000 |
tree | f92fd21042c38b6e2b3d363cc2b834276f6fe3d4 | |
parent | aadc8d5f8f44efbfa1ffe0b86ea99508fe01e1fd [diff] |
location.origin is undefined in a web worker https://bugs.webkit.org/show_bug.cgi?id=151614 Reviewed by Darin Adler. Source/WebCore: Expose location.origin to web workers, as per: https://html.spec.whatwg.org/multipage/workers.html#workerlocation This behavior is consistent with the behavior of Firefox and Chrome. Test: fast/workers/worker-location.html * workers/WorkerLocation.cpp: (WebCore::WorkerLocation::origin): * workers/WorkerLocation.h: * workers/WorkerLocation.idl: LayoutTests: Update existing layout test to confirm the existence of location.origin when in a WorkerGlobalScope. * fast/workers/resources/worker-location.js: * fast/workers/worker-location-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@192810 268f45cc-cd09-0410-ab3c-d52691b4dbfc