WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 225410
Forbid further execution in jsc shell if execution is terminated.
https://bugs.webkit.org/show_bug.cgi?id=225410
Summary
Forbid further execution in jsc shell if execution is terminated.
Mark Lam
Reported
2021-05-05 13:16:09 PDT
Also re-implement WorkerOrWorkletScriptController::forbidExecution() and isExecutionForbidden() using the VM's notion of the flag.
rdar://77548608
Attachments
propose patch.
(7.49 KB, patch)
2021-05-05 13:23 PDT
,
Mark Lam
msaboff
: review+
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mark Lam
Comment 1
2021-05-05 13:23:51 PDT
Created
attachment 427797
[details]
propose patch.
Michael Saboff
Comment 2
2021-05-05 14:06:16 PDT
Comment on
attachment 427797
[details]
propose patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=427797&action=review
r=me with a suggested change.
> Source/JavaScriptCore/runtime/VM.h:345 > + void setExecutionForbidden(bool value) { m_executionForbidden = value; }
Seem like we only want to go from "execution allowed", e.g. m_executionForbidden == false, to "execution forbidden", e.g. m_executionForbidden == true. I suggest we eliminate the argument to setExecutionForbidden() and have it always set m_executionForbidden to true.
Mark Lam
Comment 3
2021-05-05 14:07:38 PDT
(In reply to Michael Saboff from
comment #2
)
> Comment on
attachment 427797
[details]
> propose patch. > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=427797&action=review
> > r=me with a suggested change. > > > Source/JavaScriptCore/runtime/VM.h:345 > > + void setExecutionForbidden(bool value) { m_executionForbidden = value; } > > Seem like we only want to go from "execution allowed", e.g. > m_executionForbidden == false, to "execution forbidden", e.g. > m_executionForbidden == true. I suggest we eliminate the argument to > setExecutionForbidden() and have it always set m_executionForbidden to true.
I agree. That's probably the better approach until we find evidence to the contrary.
Mark Lam
Comment 4
2021-05-06 09:24:17 PDT
Thanks for the review. I've made the suggested change. Landed in
r277094
: <
http://trac.webkit.org/r277094
>.
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