[Webkit-unassigned] [Bug 137756] New: WKWebView: JavaScript fails to load, apparently due to decoding error

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 15 15:17:17 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=137756

           Summary: WKWebView: JavaScript fails to load, apparently due to
                    decoding error
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: nolan at nolanlawson.com


Created an attachment (id=239900)
 --> (https://bugs.webkit.org/attachment.cgi?id=239900&action=review)
testcase as HTML/JS

Somehow it seems possible to completely fail to load a remote JavaScript file. We can apparently trigger it by loading a large string into memory (or maybe it's that the string contains non-ASCII characters - haven't figured it out yet.)

In any case, we have a working test case that will reproduce the error. Open up the attached index.html and index.js file in a WKWebView, and notice that the index.js is not loaded. If you open up the Safari web inspector, you'll notice that the file is apparently not interpreted in the correct encoding, because it's full of CJK characters (see screenshot). This occurs regardless of whether the file is local or served by a remote web server.

If the provided HTML/JS files are not enough to reproduce the bug, then we will try to put together a minimal iOS app along with the HTML/JS to reproduce.

Live test case: http://bl.ocks.org/nolanlawson/d5a2d5f6e73bc6aaf300

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list