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

Issue 337373002: Add [TreatReturnedNullStringAs] support for ByteString. (Closed)

Created:
6 years, 6 months ago by horo
Modified:
6 years, 6 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, abarth-chromium, jsbell, serviceworker-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Add [TreatReturnedNullStringAs] support for ByteString. If my understanding is correct, we need "[TreatReturnedNullStringAs=Null] ByteString get(ByteString key);" for Headers class to return null. http://fetch.spec.whatwg.org/#dom-headers-get BUG=347426 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176370

Patch Set 1 : #

Patch Set 2 : add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -2 lines) Patch
M LayoutTests/fast/js/webidl-type-mapping.html View 1 2 chunks +8 lines, -0 lines 0 comments Download
M LayoutTests/fast/js/webidl-type-mapping-expected.txt View 1 2 chunks +20 lines, -0 lines 0 comments Download
M Source/bindings/scripts/v8_types.py View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/idls/TestObject.idl View 2 chunks +4 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 4 chunks +90 lines, -0 lines 0 comments Download
M Source/core/testing/TypeConversions.idl View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
horo
nbarth@ Could you please review this?
6 years, 6 months ago (2014-06-17 14:08:02 UTC) #1
haraken
+jsbell LGTM
6 years, 6 months ago (2014-06-17 14:10:35 UTC) #2
jsbell
lgtm Note that the spec gives the return type as ByteString? - i.e. nullable string. ...
6 years, 6 months ago (2014-06-17 19:00:30 UTC) #3
haraken
On 2014/06/17 19:00:30, jsbell wrote: > lgtm > > Note that the spec gives the ...
6 years, 6 months ago (2014-06-17 23:50:11 UTC) #4
horo
The CQ bit was checked by horo@chromium.org
6 years, 6 months ago (2014-06-18 00:16:26 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/337373002/40001
6 years, 6 months ago (2014-06-18 00:16:40 UTC) #6
commit-bot: I haz the power
Change committed as 176370
6 years, 6 months ago (2014-06-18 01:08:22 UTC) #7
Nils Barth (inactive)
6 years, 6 months ago (2014-06-18 02:40:56 UTC) #8
Message was sent while issue was closed.
On 2014/06/17 19:00:30, jsbell wrote:
> lgtm
> 
> Note that the spec gives the return type as ByteString? - i.e. nullable
string.
> 
> We could do this by having the return type in C++ be Nullable<String>. We
> support that for attributes; I'm not seeing explicit tests for that for method
> return types, though, but it should "just work". Making bindings code use
> Nullable<String> rather than Blink's special null strings seems like something
> we should tackle later. So again, lgtm.

To concur: we should support *returning* null as well as *passing in* null.
This may be easy (probably lots of CG work though), but it's currently not
supported.
...and sounds like Jens is looking into properly implementing this!

Powered by Google App Engine
This is Rietveld 408576698