Bug 199714
| Summary: | evaluateJSScript calls into the moduleLoaderDelegate for the argument script's id | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Keith Miller <keith_miller> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | webkitbugzilla |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Keith Miller
if you have some module JSScript, say script, with URL foo and you call evaluateJSScript on it. We will call into the moduleLoaderDelegate with the identifier foo, which could provide a totally different JSScript. Thus the script passed in will never run. Instead, we should have evaluateJSScript provide script for foo before entering the module loader. If there is already an entry for foo in the graph we should check the source matches script's source and error otherwise.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |