WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
174695
Drop legacy SVGException type
https://bugs.webkit.org/show_bug.cgi?id=174695
Summary
Drop legacy SVGException type
Chris Dumez
Reported
2017-07-20 15:57:09 PDT
Drop legacy SVGException type. It is not longer part of the specification (replaced by DOMException). Both Firefox and Chrome no longer expose it.
Attachments
Patch
(114.36 KB, patch)
2017-07-20 16:36 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews102 for mac-elcapitan
(1.00 MB, application/zip)
2017-07-20 17:42 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews105 for mac-elcapitan-wk2
(1.15 MB, application/zip)
2017-07-20 17:47 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews115 for mac-elcapitan
(1.76 MB, application/zip)
2017-07-20 18:03 PDT
,
Build Bot
no flags
Details
Patch
(127.21 KB, patch)
2017-07-20 18:55 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2017-07-20 16:36:28 PDT
Created
attachment 316039
[details]
Patch
Build Bot
Comment 2
2017-07-20 17:41:59 PDT
Comment on
attachment 316039
[details]
Patch
Attachment 316039
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/4158183
New failing tests: fast/dom/Window/window-lookup-precedence.html
Build Bot
Comment 3
2017-07-20 17:42:00 PDT
Created
attachment 316048
[details]
Archive of layout-test-results from ews102 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 4
2017-07-20 17:47:44 PDT
Comment on
attachment 316039
[details]
Patch
Attachment 316039
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/4158187
New failing tests: fast/dom/Window/window-lookup-precedence.html
Build Bot
Comment 5
2017-07-20 17:47:45 PDT
Created
attachment 316050
[details]
Archive of layout-test-results from ews105 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Darin Adler
Comment 6
2017-07-20 18:01:52 PDT
Comment on
attachment 316039
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=316039&action=review
r=me assuming you can get everything to compile and all the tests to pass; not sure why there are EWS failures
> Source/WebCore/bindings/js/JSExceptionBase.cpp:36 > ExceptionBase* toExceptionBase(JSC::VM& vm, JSC::JSValue value) > { > - if (DOMCoreException* domException = JSDOMCoreException::toWrapped(vm, value)) > - return reinterpret_cast<ExceptionBase*>(domException); > - if (SVGException* svgException = JSSVGException::toWrapped(vm, value)) > - return reinterpret_cast<ExceptionBase*>(svgException); > - > - return nullptr; > + return reinterpret_cast<ExceptionBase*>(JSDOMCoreException::toWrapped(vm, value)); > }
Is this something you will be removing in a future patch?
> Source/WebCore/svg/SVGPathSegList.h:73 > + ExceptionOr<RefPtr<SVGPathSeg>> initialize(Ref<SVGPathSeg>&& newItem)
Why RefPtr instead of Ref? The IDL file does not indicate a nullable return type. I think this should use Ref for the return type. Probably just need to add some releaseNonNull() to implementation in a few places.
> Source/WebCore/svg/SVGPathSegList.h:79 > + ExceptionOr<RefPtr<SVGPathSeg>> getItem(unsigned index);
Ditto.
> Source/WebCore/svg/SVGPathSegList.h:81 > + ExceptionOr<RefPtr<SVGPathSeg>> insertItemBefore(Ref<SVGPathSeg>&& newItem, unsigned index)
Ditto.
> Source/WebCore/svg/SVGPathSegList.h:86 > + ExceptionOr<RefPtr<SVGPathSeg>> replaceItem(Ref<SVGPathSeg>&&, unsigned index);
Ditto.
> Source/WebCore/svg/SVGPathSegList.h:88 > + ExceptionOr<RefPtr<SVGPathSeg>> removeItem(unsigned index);
Ditto.
> Source/WebCore/svg/SVGPathSegList.h:90 > + ExceptionOr<RefPtr<SVGPathSeg>> appendItem(Ref<SVGPathSeg>&& newItem)
Ditto.
Build Bot
Comment 7
2017-07-20 18:03:45 PDT
Comment on
attachment 316039
[details]
Patch
Attachment 316039
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/4158197
New failing tests: fast/dom/Window/window-lookup-precedence.html
Build Bot
Comment 8
2017-07-20 18:03:49 PDT
Created
attachment 316051
[details]
Archive of layout-test-results from ews115 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews115 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Chris Dumez
Comment 9
2017-07-20 18:28:06 PDT
Comment on
attachment 316039
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=316039&action=review
>> Source/WebCore/bindings/js/JSExceptionBase.cpp:36 >> } > > Is this something you will be removing in a future patch?
Will see if this is a small enough change to drop in this patch. But yes, follow-up clean up is planned.
>> Source/WebCore/svg/SVGPathSegList.h:73 >> + ExceptionOr<RefPtr<SVGPathSeg>> initialize(Ref<SVGPathSeg>&& newItem) > > Why RefPtr instead of Ref? The IDL file does not indicate a nullable return type. I think this should use Ref for the return type. Probably just need to add some releaseNonNull() to implementation in a few places.
Will see if this is a small change to do in this patch.
Chris Dumez
Comment 10
2017-07-20 18:54:50 PDT
Comment on
attachment 316039
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=316039&action=review
>>> Source/WebCore/bindings/js/JSExceptionBase.cpp:36 >>> } >> >> Is this something you will be removing in a future patch? > > Will see if this is a small enough change to drop in this patch. But yes, follow-up clean up is planned.
Dropped in the next iteration.
>>> Source/WebCore/svg/SVGPathSegList.h:73 >>> + ExceptionOr<RefPtr<SVGPathSeg>> initialize(Ref<SVGPathSeg>&& newItem) >> >> Why RefPtr instead of Ref? The IDL file does not indicate a nullable return type. I think this should use Ref for the return type. Probably just need to add some releaseNonNull() to implementation in a few places. > > Will see if this is a small change to do in this patch.
I can look into it for a follow up. This is a larger change because it requires modifying SVGListProperty and all its subclasses.
Chris Dumez
Comment 11
2017-07-20 18:55:14 PDT
Created
attachment 316056
[details]
Patch
Chris Dumez
Comment 12
2017-07-20 19:36:57 PDT
Comment on
attachment 316056
[details]
Patch Clearing flags on attachment: 316056 Committed
r219712
: <
http://trac.webkit.org/changeset/219712
>
Chris Dumez
Comment 13
2017-07-20 19:37:00 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 14
2017-07-21 13:06:07 PDT
Comment on
attachment 316056
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=316056&action=review
> Source/WebCore/bindings/js/JSDOMExceptionHandling.cpp:66 > + if (auto* domException = JSDOMCoreException::toWrapped(vm, exception)) > + return domException->toString();
I think I would have called this “unwrappedException” or "underlyingException".
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