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

Issue 2386303002: Expose BaseAudioContext prototype (Closed)

Created:
4 years, 2 months ago by hongchan
Modified:
4 years, 1 month ago
CC:
chromium-reviews, blink-reviews, haraken, Raymond Toy
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose BaseAudioContext prototype Refactoring of BaseAudioContext (https://codereview.chromium.org/1865583002) changed the prototype structure of AudioContext/OfflineAudioContext and developers could not call hasOwnProperty() on BaseAudioContext because it was not exposed to the JS domain. This CL exposes BaseAudioContext's prototype. Also it adds 3 new layout tests for each audio context and removes the old context property test. BUG=555608, 661637 TEST= LayoutTests/webaudio/baseaudiocontext-properties.html LayoutTests/webaudio/audiocontext-properties.html LayoutTests/webaudio/offlineaudiocontext-properties.html Committed: https://crrev.com/5ec22676c144539f37f15740f4d712bb298ea02a Cr-Commit-Position: refs/heads/master@{#431105}

Patch Set 1 : IDL fix and new layout tests #

Patch Set 2 : Removes old context property test #

Total comments: 5

Patch Set 3 : More test coverage by cross-checking #

Patch Set 4 : Rebase #

Total comments: 8

Patch Set 5 : Addressing Feedback #

Patch Set 6 : New layout test design #

Total comments: 2

Patch Set 7 : Fixing nits after l-g-t-m #

Patch Set 8 : Fixed global-interface-listing #

Patch Set 9 : Rebase again #

Patch Set 10 : Adds platform dependent expected files #

Patch Set 11 : Fixing global-interface-listring (2) #

Patch Set 12 : add newline at the end #

Patch Set 13 : Fixing platform-dependent interface (2) #

Patch Set 14 : fixed cross-origin-objects #

Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -58 lines) Patch
M third_party/WebKit/LayoutTests/imported/wpt/html/browsers/origin/cross-origin-objects/cross-origin-objects-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +35 lines, -2 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 12 5 chunks +35 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +35 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/audiocontext-properties.html View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/baseaudiocontext-properties.html View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/webaudio/context-properties.html View 1 1 chunk +0 lines, -32 lines 0 comments Download
D third_party/WebKit/LayoutTests/webaudio/context-properties-expected.txt View 1 1 chunk +0 lines, -13 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/offlineaudiocontext-properties.html View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/resources/context-properties.js View 1 2 3 4 5 1 chunk +115 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 12 5 chunks +35 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioContext.idl View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContext.idl View 1 2 3 4 5 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.idl View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 60 (38 generated)
hongchan
PTAL on new layout tests. We still have no decision, but I would like to ...
4 years, 2 months ago (2016-10-03 19:59:54 UTC) #2
Raymond Toy
https://codereview.chromium.org/2386303002/diff/20001/third_party/WebKit/LayoutTests/webaudio/context-properties.html File third_party/WebKit/LayoutTests/webaudio/context-properties.html (left): https://codereview.chromium.org/2386303002/diff/20001/third_party/WebKit/LayoutTests/webaudio/context-properties.html#oldcode18 third_party/WebKit/LayoutTests/webaudio/context-properties.html:18: shouldBeUndefined("onlineContext.oncomplete"); Haven't you reduced test coverage by deleting this ...
4 years, 2 months ago (2016-10-03 20:19:20 UTC) #3
hongchan
https://codereview.chromium.org/2386303002/diff/20001/third_party/WebKit/LayoutTests/webaudio/context-properties.html File third_party/WebKit/LayoutTests/webaudio/context-properties.html (left): https://codereview.chromium.org/2386303002/diff/20001/third_party/WebKit/LayoutTests/webaudio/context-properties.html#oldcode18 third_party/WebKit/LayoutTests/webaudio/context-properties.html:18: shouldBeUndefined("onlineContext.oncomplete"); On 2016/10/03 20:19:20, Raymond Toy wrote: > Haven't ...
4 years, 2 months ago (2016-10-03 20:31:20 UTC) #4
Raymond Toy
https://codereview.chromium.org/2386303002/diff/20001/third_party/WebKit/LayoutTests/webaudio/context-properties.html File third_party/WebKit/LayoutTests/webaudio/context-properties.html (left): https://codereview.chromium.org/2386303002/diff/20001/third_party/WebKit/LayoutTests/webaudio/context-properties.html#oldcode18 third_party/WebKit/LayoutTests/webaudio/context-properties.html:18: shouldBeUndefined("onlineContext.oncomplete"); On 2016/10/03 20:31:19, hoch wrote: > On 2016/10/03 ...
4 years, 2 months ago (2016-10-03 20:36:38 UTC) #5
hongchan
4 years, 2 months ago (2016-10-03 21:22:53 UTC) #6
hongchan
PTAL again. I'll ask the review from tkent@ once we think this is good.
4 years, 1 month ago (2016-11-02 22:00:17 UTC) #7
Raymond Toy
Looks good, except for a few minor details. https://codereview.chromium.org/2386303002/diff/60001/third_party/WebKit/LayoutTests/webaudio/audiocontext-properties.html File third_party/WebKit/LayoutTests/webaudio/audiocontext-properties.html (right): https://codereview.chromium.org/2386303002/diff/60001/third_party/WebKit/LayoutTests/webaudio/audiocontext-properties.html#newcode20 third_party/WebKit/LayoutTests/webaudio/audiocontext-properties.html:20: targetDescription: ...
4 years, 1 month ago (2016-11-02 22:10:09 UTC) #8
hongchan
https://codereview.chromium.org/2386303002/diff/60001/third_party/WebKit/LayoutTests/webaudio/audiocontext-properties.html File third_party/WebKit/LayoutTests/webaudio/audiocontext-properties.html (right): https://codereview.chromium.org/2386303002/diff/60001/third_party/WebKit/LayoutTests/webaudio/audiocontext-properties.html#newcode20 third_party/WebKit/LayoutTests/webaudio/audiocontext-properties.html:20: targetDescription: 'AudioContext.prototype', On 2016/11/02 22:10:09, Raymond Toy wrote: > ...
4 years, 1 month ago (2016-11-02 22:46:50 UTC) #9
Raymond Toy
https://codereview.chromium.org/2386303002/diff/60001/third_party/WebKit/LayoutTests/webaudio/audiocontext-properties.html File third_party/WebKit/LayoutTests/webaudio/audiocontext-properties.html (right): https://codereview.chromium.org/2386303002/diff/60001/third_party/WebKit/LayoutTests/webaudio/audiocontext-properties.html#newcode20 third_party/WebKit/LayoutTests/webaudio/audiocontext-properties.html:20: targetDescription: 'AudioContext.prototype', On 2016/11/02 22:46:50, hongchan wrote: > On ...
4 years, 1 month ago (2016-11-02 23:01:07 UTC) #10
hongchan
PTAL. I rewrote the test so we can detect any change in the prototype properties.
4 years, 1 month ago (2016-11-03 22:09:25 UTC) #11
Raymond Toy
lgtm with nits. Can you paste the actual output from the tests? That's fairly informative, ...
4 years, 1 month ago (2016-11-03 22:37:15 UTC) #12
hongchan
Here is the result from the test. --- baseaudiocontext-properties.html This is a testharness.js-based test. PASS ...
4 years, 1 month ago (2016-11-03 22:41:52 UTC) #13
hongchan
tkent@ PTAL at API changes. I have not merge the fix to the spec yet, ...
4 years, 1 month ago (2016-11-03 22:48:09 UTC) #18
tkent
lgtm. I don't think we need additional paper work. I believe there are no risk ...
4 years, 1 month ago (2016-11-04 00:33:10 UTC) #19
hongchan
rbyers@ PTAL - I keep getting a layout test failure from: |virtual/stable/webexposed/global-interface-listing-expected.txt| Do I need ...
4 years, 1 month ago (2016-11-07 19:43:01 UTC) #35
tkent
On 2016/11/07 at 19:43:01, hongchan wrote: > rbyers@ > > PTAL - I keep getting ...
4 years, 1 month ago (2016-11-08 01:25:59 UTC) #43
hongchan
On 2016/11/08 01:25:59, tkent wrote: > On 2016/11/07 at 19:43:01, hongchan wrote: > > rbyers@ ...
4 years, 1 month ago (2016-11-08 05:50:48 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/2386303002/320001
4 years, 1 month ago (2016-11-09 18:21:46 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/334191)
4 years, 1 month ago (2016-11-09 19:28:43 UTC) #49
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/2386303002/340001
4 years, 1 month ago (2016-11-09 23:21:10 UTC) #56
commit-bot: I haz the power
Committed patchset #14 (id:340001)
4 years, 1 month ago (2016-11-10 00:40:34 UTC) #58
commit-bot: I haz the power
4 years, 1 month ago (2016-11-10 00:45:27 UTC) #60
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/5ec22676c144539f37f15740f4d712bb298ea02a
Cr-Commit-Position: refs/heads/master@{#431105}

Powered by Google App Engine
This is Rietveld 408576698