Bug 181889

Summary: Disallow evaluating JavaScript from NPP_Destroy() in WebKit
Product: WebKit Reporter: Daniel Bates <dbates>
Component: WebKit2Assignee: Daniel Bates <dbates>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, ap, bfulgham, ews-watchlist, koivisto, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: All   
OS: All   
See Also: https://bugs.webkit.org/show_bug.cgi?id=48929
https://bugs.webkit.org/show_bug.cgi?id=176881
https://bugs.webkit.org/show_bug.cgi?id=41431
https://bugs.webkit.org/show_bug.cgi?id=128712
Attachments:
Description Flags
Patch
none
Patch
none
Archive of layout-test-results from ews106 for mac-sierra-wk2
none
Patch none

Description Daniel Bates 2018-01-19 16:03:40 PST
Disallow evaluating JavaScript from NPP_Destroy() in WebKit.
Comment 1 Radar WebKit Bug Importer 2018-01-19 16:05:55 PST
<rdar://problem/36674701>
Comment 2 Daniel Bates 2018-01-19 16:10:29 PST
Created attachment 331806 [details]
Patch
Comment 3 Daniel Bates 2018-01-19 16:13:52 PST
Evaluating of JavaScript from NPP_Destroy() was disallowed in WebKitLegacy on macOS since <https://trac.webkit.org/changeset/42789/> and has been racy in WebKit since <https://trac.webkit.org/changeset/164015> (bug #128712).
Comment 4 Daniel Bates 2018-01-19 16:15:00 PST
Created attachment 331808 [details]
Patch
Comment 5 Brent Fulgham 2018-01-19 16:59:08 PST
Comment on attachment 331808 [details]
Patch

It seems bad to allow this in the first place. r=mews.
Comment 6 EWS Watchlist 2018-01-19 17:13:16 PST Comment hidden (obsolete)
Comment 7 EWS Watchlist 2018-01-19 17:13:17 PST Comment hidden (obsolete)
Comment 8 Daniel Bates 2018-02-02 20:49:50 PST
Created attachment 333026 [details]
Patch
Comment 9 Daniel Bates 2018-02-02 20:56:41 PST
Comment on attachment 333026 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=333026&action=review

> Source/WebKit/ChangeLog:9
> +        Make the behavior of WebKit match the behavior of WebKitLegacy on Mac.

I will update this description to include the remarks I made in comment #3 before landing.
Comment 10 Brent Fulgham 2018-02-02 21:16:08 PST
Comment on attachment 333026 [details]
Patch

R=me
Comment 11 Daniel Bates 2018-02-05 10:04:03 PST
Comment on attachment 333026 [details]
Patch

Clearing flags on attachment: 333026

Committed r228100: <https://trac.webkit.org/changeset/228100>
Comment 12 Daniel Bates 2018-02-05 10:04:05 PST
All reviewed patches have been landed.  Closing bug.