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

Issue 1492093002: Drop [LegacyInterfaceTypeChecking] for URL.createObjectURL(blob) (Closed)

Created:
5 years ago by philipj_slow
Modified:
5 years ago
Reviewers:
jsbell
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Drop [LegacyInterfaceTypeChecking] for URL.createObjectURL(blob) The change to the generated code is such that only calls to URL.createObjectURL(null) and URL.createObjectURL(undefined) are affected, as those would previously match the nullable Blob argument. This is very low risk, due to the behavior of other browsers: Firefox and IE11 throw for both URL.createObjectURL(null) and URL.createObjectURL(undefined). Edge presumably matches IE11. Safari throws for URL.createObjectURL(undefined) but returns null for URL.createObjectURL(null), which was our behavior before this change. There are no internal calls to DOMURL::createObjectURL, so the ASSERT will hold. BUG=561338 Committed: https://crrev.com/1143a0b24fb3489a358f9f88cda216a039b8463d Cr-Commit-Position: refs/heads/master@{#363031}

Patch Set 1 #

Patch Set 2 : update tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -10 lines) Patch
M third_party/WebKit/LayoutTests/fast/files/url-null.html View 1 1 chunk +5 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/files/url-null-expected.txt View 1 1 chunk +5 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/web-platform-tests/FileAPI/url/url_xmlhttprequest-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/DOMURL.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/URL.idl View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1492093002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1492093002/20001
5 years ago (2015-12-03 10:15:47 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-03 11:19:11 UTC) #4
philipj_slow
PTAL. The wpt changes because it needs a server for XHR, doesn't get a Blob ...
5 years ago (2015-12-03 11:30:29 UTC) #6
jsbell
lgtm Usually for a "this test is broken w/o the correct server" we'd add [Skip] ...
5 years ago (2015-12-03 17:15:04 UTC) #7
philipj_slow
On 2015/12/03 17:15:04, jsbell wrote: > lgtm > > Usually for a "this test is ...
5 years ago (2015-12-03 19:02:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1492093002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1492093002/20001
5 years ago (2015-12-03 19:05:49 UTC) #10
jsbell
On 2015/12/03 19:02:36, philipj wrote: > It was actually because you added this test expectation ...
5 years ago (2015-12-03 19:13:33 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-03 19:17:56 UTC) #12
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/1143a0b24fb3489a358f9f88cda216a039b8463d Cr-Commit-Position: refs/heads/master@{#363031}
5 years ago (2015-12-03 19:18:51 UTC) #14
philipj_slow
5 years ago (2015-12-03 19:27:45 UTC) #15
Message was sent while issue was closed.
On 2015/12/03 19:13:33, jsbell wrote:
> On 2015/12/03 19:02:36, philipj wrote:
> > Do you
> > have a rule of thumb for when to add -expected.txt and when to [ Skip ]?
> 
> If it's an interop bug, -expected.txt. If it's a test harness limitation (e.g.
> requires server) or we think the test is wrong, [Skip]. But we're not
consistent
> since it's a lot of tests to manually inspect. :(

That sounds good, I'll try to apply that rule of thumb to my WIP CL to import
wpt/dom/, it should result it a lot fewer skipped tests.

Powered by Google App Engine
This is Rietveld 408576698