WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 66455
66275
"new SharedWorker()" should throw SYNTAX_ERR when an invalid argument is passed
https://bugs.webkit.org/show_bug.cgi?id=66275
Summary
"new SharedWorker()" should throw SYNTAX_ERR when an invalid argument is passed
Kentaro Hara
Reported
2011-08-15 21:58:58 PDT
A Web IDL Constructor extended attribute should be implemented in V8 (
bug 65839
). We are going to split the patch for
bug 65839
into the following eleven steps in order to avoid regressions. This patch is for [2]. Spec:
http://dev.w3.org/html5/workers/#dom-sharedworker
[1] "new EventSource()" should throw SYNTAX_ERR when an invalid argument is passed. [2] "new SharedWorker()" should throw SYNTAX_ERR when an invalid argument is passed. [3] "new WebKitCSSMatrix()" should throw SYNTAX_ERR when an invalid argument is passed. [4] "new Worker()" should throw SYNTAX_ERR when an invalid argument is passed. [5] Implement the Web IDL Constructor extended attribute in IDLParser.pm and CodeGeneratorV8.pm. [6] Replace the EventSource constructor in V8 with the Web IDL Constructor extended attribute. [7] Replace the FileReader constructor in V8 with the Web IDL Constructor extended attribute. [8] Replace the SharedWorker constructor in V8 with the Web IDL Constructor extended attribute. [9] Replace the WebKitCSSMatrix constructor in V8 with the Web IDL Constructor extended attribute. [10] Replace the Worker constructor in V8 with the Web IDL Constructor extended attribute. [11] Replace the XSLTProcessor constructor in V8 with the Web IDL Constructor extended attribute. Dependencies: [6][7][8][9][10][11] depends on [1][2][3][4][5]. We can land [1][2][3][4][5] concurrently, and then can land [6][7][8][9][10][11] concurrently.
Attachments
Patch
(10.60 KB, patch)
2011-08-16 01:16 PDT
,
Kentaro Hara
abarth
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Kentaro Hara
Comment 1
2011-08-16 01:16:08 PDT
Created
attachment 104013
[details]
Patch
Adam Barth
Comment 2
2011-08-16 11:11:31 PDT
Comment on
attachment 104013
[details]
Patch This patch does not appear correct, see:
http://www.w3.org/TR/WebIDL/#es-DOMString
In the null-or-undefined case, we hit step 3, which gives use "null" or "undefined", which is a valid relative URL. Therefore, we shouldn't throw a SYNTAX_ERROR in that case.
Kentaro Hara
Comment 3
2011-08-18 00:55:21 PDT
(In reply to
comment #2
)
> (From update of
attachment 104013
[details]
) > This patch does not appear correct, see: > >
http://www.w3.org/TR/WebIDL/#es-DOMString
> > In the null-or-undefined case, we hit step 3, which gives use "null" or "undefined", which is a valid relative URL. Therefore, we shouldn't throw a SYNTAX_ERROR in that case.
Thank you for the information. I confirmed that this is not a bug and thus should not be fixed.
Alexey Proskuryakov
Comment 4
2011-08-23 11:29:23 PDT
You could also repurpose this bug instead filing a new one. Duping to preserve context. *** This bug has been marked as a duplicate of
bug 66455
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug