[Webkit-unassigned] [Bug 34038] New: XMLHttpRequest doesn't work when page is loaded from HTML5 offline cache

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jan 23 06:43:40 PST 2010


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

           Summary: XMLHttpRequest doesn't work when page is loaded from
                    HTML5 offline cache
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Major
          Priority: P2
         Component: XML
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: tibor.pino at gmail.com


I have web app which uses HTML5 offline application caching and offline
database. I use XMLHttpRequest to sync date between online and offline
databases. Every time I try to call xhr.send(null) (see code below) from my app
it ends up with error 

NETWORK_ERR: XMLHttpRequest Exception 101: A network error occured in
synchronous requests.

More details about my app. I have 3 files typo.html, javascript.js and manifest
file

typo.html looks like

<!doctype html>
<html lang="en" manifest="manifest.manifest">
    <head>
        <meta charset="utf-8" />
        <title>offline app</title>
    </head>
    <body>
                    <script type='text/javascript'
                            src='javascript.js'>
                    </script>
</body>
</html>

javascript.js looks like

var xhr = new XMLHttpRequest()
        xhr.open("GET","/sync/blog.json",false)
        xhr.send(null)

manifest looks like

CACHE MANIFEST

#version 6.15

typo.html
javascript.js


My code is working properly when I try to use app without offline application
caching. I thing there should be a property to call ajax from offline cached
apps - for instance for syncing purposes.

-- 
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