fetch: Add [NewObject] to IDL declarations that have it in the spec.
Several IDL methods have been annotated with the [NewObject] extended attribute since 2014 (Fetch spec commit 92f9337cd2, "Sprinkle [NewObject], [SameObject] love"). Add it to our IDLs for spec compliance. In practice, at the moment this is a no-op for methods that return promises and it adds a DCHECK for methods that return interface types. Request.clone() and Response.clone() also need the Blink-specific [DoNotTestNewObject] extended attribute, as their C++ implementations call ToV8() on the new object they return, which causes the DCHECKs to fail (in other words, [NewObject] becomes a no-op for them as well). Bug: 769221 Change-Id: If1d598660efef656d165a79618a45ea8ddc99e30 Reviewed-on: https://chromium-review.googlesource.com/685658Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Raphael Kubo da Costa (rakuco) <raphael.kubo.da.costa@intel.com> Cr-Commit-Position: refs/heads/master@{#504717}
Showing
Please register or sign in to comment