Bug 39124 - XMLHttpRequest.setRequestHeader shouldn't be custom
Summary: XMLHttpRequest.setRequestHeader shouldn't be custom
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-14 11:15 PDT by Adam Barth
Modified: 2010-05-15 17:19 PDT (History)
2 users (show)

See Also:


Attachments
Patch (3.37 KB, patch)
2010-05-14 11:17 PDT, Adam Barth
no flags Details | Formatted Diff | Diff
Patch for landing (23.18 KB, patch)
2010-05-15 16:00 PDT, Adam Barth
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Barth 2010-05-14 11:15:34 PDT
XMLHttpRequest.setRequestHeader shouldn't be custom
Comment 1 Adam Barth 2010-05-14 11:17:50 PDT
Created attachment 56086 [details]
Patch
Comment 2 Adam Barth 2010-05-14 11:35:06 PDT
Comment on attachment 56086 [details]
Patch

Thanks.
Comment 3 Alexey Proskuryakov 2010-05-14 17:15:22 PDT
+        // FIXME: RequiresAllArguments is probably bogus here.

I don't know what to do with this FIXME when I see it. On what grounds can the FIXME be removed, if it's not bogus?

I think that a FIXME should contain a specific claim that can be addressed or rejected, but "bogus" is open ended.
Comment 4 WebKit Commit Bot 2010-05-15 08:34:06 PDT
Comment on attachment 56086 [details]
Patch

Rejecting patch 56086 from commit-queue.

Failed to run "['WebKitTools/Scripts/run-webkit-tests', '--no-launch-safari', '--exit-after-n-failures=1', '--ignore-tests', 'compositing/iframes', '--quiet']" exit_code: 1
Last 500 characters of output:
piling Java tests
make: Nothing to be done for `default'.
Running tests from /Users/eseidel/Projects/CommitQueue/LayoutTests
Skipped list contained 'compositing/iframes/composited-iframe.html', but no file of that name could be found
Testing 18341 test cases.
http/tests/xmlhttprequest/exceptions.html -> failed

Exiting early after 1 failures. 18175 tests run.
460.84s total testing time

18174 test cases (99%) succeeded
1 test case (<1%) had incorrect layout
11 test cases (<1%) had stderr output

Full output: http://webkit-commit-queue.appspot.com/results/2321113
Comment 5 Adam Barth 2010-05-15 15:43:56 PDT
I see.  We're supposed to throw on too few arguments here.  There are three behaviors:

1) Treat missing arguments as undefined.
2) Return undefined when arguments are missing.
3) Throw a syntax error when arguments are missing.

Looks like we need to mint a new IDL attribute so we can select which of the three we want for a given method.
Comment 6 Adam Barth 2010-05-15 16:00:23 PDT
Created attachment 56163 [details]
Patch for landing
Comment 7 WebKit Commit Bot 2010-05-15 17:19:31 PDT
Comment on attachment 56163 [details]
Patch for landing

Clearing flags on attachment: 56163

Committed r59557: <http://trac.webkit.org/changeset/59557>
Comment 8 WebKit Commit Bot 2010-05-15 17:19:37 PDT
All reviewed patches have been landed.  Closing bug.