WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
162584
Add some needed CatchScopes in code that should not throw.
https://bugs.webkit.org/show_bug.cgi?id=162584
Summary
Add some needed CatchScopes in code that should not throw.
Mark Lam
Reported
2016-09-26 16:39:05 PDT
Patch coming.
Attachments
proposed patch.
(9.10 KB, patch)
2016-09-26 16:42 PDT
,
Mark Lam
keith_miller
: review+
Details
Formatted Diff
Diff
Patch for re-landing.
(6.81 KB, patch)
2016-09-27 11:53 PDT
,
Mark Lam
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Mark Lam
Comment 1
2016-09-26 16:42:29 PDT
Created
attachment 289893
[details]
proposed patch.
Keith Miller
Comment 2
2016-09-26 16:50:14 PDT
Comment on
attachment 289893
[details]
proposed patch. r=me.
Mark Lam
Comment 3
2016-09-26 17:00:09 PDT
Thanks for the review. I fixed a typo in the ChangeLog before landing. Landed in
r206405
: <
http://trac.webkit.org/r206405
>.
Geoffrey Garen
Comment 4
2016-09-26 17:19:37 PDT
Comment on
attachment 289893
[details]
proposed patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=289893&action=review
> Source/JavaScriptCore/jsc.cpp:2549 > + RETURN_IF_EXCEPTION(scope, 3);
How can GlobalObject::create throw?
Ryan Haddad
Comment 5
2016-09-26 19:38:05 PDT
This change appears to have caused two LayoutTests to crash (EWS seems to have caught this, but the patch was landed before results could be verified). plugins/npruntime/object-from-destroyed-plugin.html plugins/npruntime/object-from-destroyed-plugin-in-subframe.html
https://build.webkit.org/results/Apple%20El%20Capitan%20Release%20WK2%20(Tests)/r206406%20(9738)/results.html
WebKit Commit Bot
Comment 6
2016-09-26 19:41:49 PDT
Re-opened since this is blocked by
bug 162588
Mark Lam
Comment 7
2016-09-27 11:41:07 PDT
Comment on
attachment 289893
[details]
proposed patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=289893&action=review
>> Source/JavaScriptCore/jsc.cpp:2549 >> + RETURN_IF_EXCEPTION(scope, 3); > > How can GlobalObject::create throw?
I forgot the details of what motivated this change in the first place. I'll leave it out for now until the motivation arises again when I turn on exception check verification.
> Source/JavaScriptCore/runtime/ExceptionHelpers.cpp:246 > + VM& vm = exec->vm(); > + auto scope = DECLARE_CATCH_SCOPE(vm); > + > String errorMessage = makeString(errorDescriptionForValue(exec, value)->value(exec), ' ', message); > + if (UNLIKELY(scope.exception())) { > + scope.clearException(); > + errorMessage = message; > + }
This change appears to need additional support from exception checks that are missing. I will leave it out for now until I have the missing exception checks in place.
Mark Lam
Comment 8
2016-09-27 11:53:47 PDT
Created
attachment 289989
[details]
Patch for re-landing.
Mark Lam
Comment 9
2016-09-27 13:35:55 PDT
Tests are happy. Revised patch landed in
r206459
: <
http://trac.webkit.org/r206459
>.
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