Bug 170734 - [iOS] Simple HTML documents should allow non-markup JavaScript
Summary: [iOS] Simple HTML documents should allow non-markup JavaScript
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: mitz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-11 10:27 PDT by mitz
Modified: 2017-04-11 10:34 PDT (History)
3 users (show)

See Also:


Attachments
Enable non-markup scripting (1.47 KB, patch)
2017-04-11 10:29 PDT, mitz
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2017-04-11 10:27:30 PDT
A WebView initialized with -[WebView(WebPrivate) initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:] should allow script evaluation, excluding script embedded in markup.

Patch forthcoming.
Comment 1 mitz 2017-04-11 10:29:45 PDT
Created attachment 306830 [details]
Enable non-markup scripting
Comment 2 Sam Weinig 2017-04-11 10:31:05 PDT
We should really try to get rid of "simple" HTML documents. Does it serve a performance purpose still?
Comment 3 mitz 2017-04-11 10:34:17 PDT
Committed <https://trac.webkit.org/r215240>.