Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Issue 2706013002: Added support for self.origin in Window and WorkerGlobalScope (Closed)

Created:
3 years, 10 months ago by andypaicu
Modified:
3 years, 9 months ago
CC:
Rick Byers, blink-reviews, blink-reviews-w3ctests_chromium.org, blink-worker-reviews_chromium.org, chromium-reviews, falken+watch_chromium.org, horo+watch_chromium.org, kinuko+worker_chromium.org, shimazu+worker_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added support for self.origin in Window and WorkerGlobalScope Added origin to the interface files Added firefox tests for frames into the wpt Created and added tests for workers into the wpt Intent to ship: https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/oPGdc9lqpg8/gSjBah0YCAAJ BUG=690195, 694444 R=mkwst@chromium.org Review-Url: https://codereview.chromium.org/2706013002 Cr-Commit-Position: refs/heads/master@{#454747} Committed: https://chromium.googlesource.com/chromium/src/+/f5a130d1fb31ab5ab19a0c85edd65d6719c0c3f7

Patch Set 1 #

Total comments: 11

Patch Set 2 : Modified worker test function names. Modified a comment to point to the spec of origin. #

Patch Set 3 : Updated test expectations for global interfaces #

Patch Set 4 : Fixed websocket tests. Added [Replaceable] to the origin in *.idl #

Total comments: 4

Patch Set 5 : Fixed LayoutTests. Moved worker tests to appropriate folder. #

Patch Set 6 : Fixed broken LayoutTests after rebase #

Total comments: 2

Patch Set 7 : Fixed the failing mac LayoutTest #

Patch Set 8 : Rebase and regenerate MANIFEST.json #

Patch Set 9 : Rebased and regenerated MANIFEST.json #

Patch Set 10 : Fix layout tests again #

Patch Set 11 : Rebase-update MANIFEST.json #

Patch Set 12 : rebase-update after manifest.json changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -45 lines) Patch
D third_party/WebKit/LayoutTests/external/wpt/html/dom/self-origin.sub-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -14 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/webappapis/the-windoworworkerglobalscope-mixin/Worker_Self_Origin.html View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/webappapis/the-windoworworkerglobalscope-mixin/support/WorkerSelfOriginSharedWorker.js View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/webappapis/the-windoworworkerglobalscope-mixin/support/WorkerSelfOriginWorker.js View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-expected.txt View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced-expected.txt View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/resources/window-property-collector.js View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/websocket/handshake-fail-by-maxlength.html View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/websocket/handshake-fail-by-maxlength-expected.txt View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/websocket/handshake-fail-by-prepended-null.html View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/websocket/handshake-fail-by-prepended-null-expected.txt View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/websocket/iframe-sandbox.html View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/websocket/iframe-sandbox-expected.txt View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/websocket/send-onmessage-origin.html View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/websocket/send-onmessage-origin-expected.txt View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Window.idl View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.idl View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 78 (55 generated)
andypaicu
3 years, 10 months ago (2017-02-20 09:26:34 UTC) #2
andypaicu
Second time's the charm
3 years, 10 months ago (2017-02-20 10:00:05 UTC) #4
Mike West
On 2017/02/20 at 10:00:05, andypaicu wrote: > Second time's the charm (As an aside, you ...
3 years, 10 months ago (2017-02-20 10:12:19 UTC) #7
tkent
https://codereview.chromium.org/2706013002/diff/1/third_party/WebKit/LayoutTests/external/wpt/html/dom/self-origin.any.js File third_party/WebKit/LayoutTests/external/wpt/html/dom/self-origin.any.js (right): https://codereview.chromium.org/2706013002/diff/1/third_party/WebKit/LayoutTests/external/wpt/html/dom/self-origin.any.js#newcode1 third_party/WebKit/LayoutTests/external/wpt/html/dom/self-origin.any.js:1: "use strict"; *.any.js doesn't work in Chromium repo, right? ...
3 years, 10 months ago (2017-02-20 10:48:01 UTC) #9
Mike West
On 2017/02/20 at 10:48:01, tkent wrote: > https://codereview.chromium.org/2706013002/diff/1/third_party/WebKit/LayoutTests/external/wpt/html/dom/self-origin.any.js > File third_party/WebKit/LayoutTests/external/wpt/html/dom/self-origin.any.js (right): > > https://codereview.chromium.org/2706013002/diff/1/third_party/WebKit/LayoutTests/external/wpt/html/dom/self-origin.any.js#newcode1 ...
3 years, 10 months ago (2017-02-20 11:13:08 UTC) #10
Mike West
https://codereview.chromium.org/2706013002/diff/1/third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html File third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html (right): https://codereview.chromium.org/2706013002/diff/1/third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html#newcode1 third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html:1: <!DOCTYPE html> That said, I think this is new: ...
3 years, 10 months ago (2017-02-20 12:21:06 UTC) #13
andypaicu
mkwst@ made some changes and answered some others https://codereview.chromium.org/2706013002/diff/1/third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html File third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html (right): https://codereview.chromium.org/2706013002/diff/1/third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html#newcode1 third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html:1: <!DOCTYPE ...
3 years, 10 months ago (2017-02-20 13:09:28 UTC) #14
tkent
On 2017/02/20 at 11:13:08, mkwst wrote: > On 2017/02/20 at 10:48:01, tkent wrote: > > ...
3 years, 10 months ago (2017-02-20 14:20:19 UTC) #15
tkent
https://codereview.chromium.org/2706013002/diff/1/third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html File third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html (right): https://codereview.chromium.org/2706013002/diff/1/third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html#newcode1 third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html:1: <!DOCTYPE html> On 2017/02/20 at 13:09:27, andypaicu wrote: > ...
3 years, 10 months ago (2017-02-20 14:22:47 UTC) #16
andypaicu
On 2017/02/20 at 14:22:47, tkent wrote: > https://codereview.chromium.org/2706013002/diff/1/third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html > File third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html (right): > > https://codereview.chromium.org/2706013002/diff/1/third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html#newcode1 ...
3 years, 10 months ago (2017-02-20 14:31:11 UTC) #19
Mike West
On 2017/02/20 at 14:22:47, tkent wrote: > https://codereview.chromium.org/2706013002/diff/1/third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html > File third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html (right): > > https://codereview.chromium.org/2706013002/diff/1/third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html#newcode1 ...
3 years, 10 months ago (2017-02-20 14:32:21 UTC) #20
Mike West
https://codereview.chromium.org/2706013002/diff/60001/third_party/WebKit/LayoutTests/http/tests/websocket/send-onmessage-origin.html File third_party/WebKit/LayoutTests/http/tests/websocket/send-onmessage-origin.html (right): https://codereview.chromium.org/2706013002/diff/60001/third_party/WebKit/LayoutTests/http/tests/websocket/send-onmessage-origin.html#newcode24 third_party/WebKit/LayoutTests/http/tests/websocket/send-onmessage-origin.html:24: var wsOrigin = ""; Hrm. You shouldn't have to ...
3 years, 10 months ago (2017-02-21 06:54:37 UTC) #25
andypaicu
On 2017/02/20 at 14:22:47, tkent wrote: > https://codereview.chromium.org/2706013002/diff/1/third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html > File third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html (right): > > https://codereview.chromium.org/2706013002/diff/1/third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html#newcode1 ...
3 years, 10 months ago (2017-02-21 09:25:39 UTC) #28
andypaicu
https://codereview.chromium.org/2706013002/diff/1/third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html File third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html (right): https://codereview.chromium.org/2706013002/diff/1/third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html#newcode8 third_party/WebKit/LayoutTests/external/wpt/workers/Worker_Self_Origin.html:8: function assertOrigin_Worker(workerSource, expectedOrigin, testName) { On 2017/02/20 at 12:21:06, ...
3 years, 10 months ago (2017-02-21 09:37:29 UTC) #29
Mike West
LGTM. Please add a link to the intent thread to the CL description, and ask ...
3 years, 10 months ago (2017-02-21 14:20:06 UTC) #35
andypaicu
https://codereview.chromium.org/2706013002/diff/100001/third_party/WebKit/LayoutTests/http/tests/websocket/handshake-fail-by-maxlength.html File third_party/WebKit/LayoutTests/http/tests/websocket/handshake-fail-by-maxlength.html (right): https://codereview.chromium.org/2706013002/diff/100001/third_party/WebKit/LayoutTests/http/tests/websocket/handshake-fail-by-maxlength.html#newcode16 third_party/WebKit/LayoutTests/http/tests/websocket/handshake-fail-by-maxlength.html:16: var wsOrigin; On 2017/02/21 at 14:20:06, Mike West (sloooooow) ...
3 years, 10 months ago (2017-02-21 14:25:57 UTC) #38
tkent
lgtm
3 years, 10 months ago (2017-02-22 02:25:12 UTC) #41
jochen (gone - plz use gerrit)
lgtm
3 years, 10 months ago (2017-02-22 09:06:50 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2706013002/180001
3 years, 9 months ago (2017-03-01 22:44:04 UTC) #61
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/392436)
3 years, 9 months ago (2017-03-02 00:22:53 UTC) #63
andypaicu
rbyers@ Hi Rick, It seems that external/wpt/mediacapture-streams/MediaStreamTrack-end-manual.https.html is failing in my patch. The reason seems ...
3 years, 9 months ago (2017-03-02 16:56:50 UTC) #68
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2706013002/220001
3 years, 9 months ago (2017-03-04 01:55:34 UTC) #75
commit-bot: I haz the power
3 years, 9 months ago (2017-03-04 02:01:00 UTC) #78
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/f5a130d1fb31ab5ab19a0c85edd6...

Powered by Google App Engine
This is Rietveld 408576698