[prev in list] [next in list] [prev in thread] [next in thread] 

List:       konq-bugs
Subject:    [Bug 146168] New: asynchronous loading of large XML file -> "Script
From:       Clay Helberg <clavius () mail ! com>
Date:       2007-05-30 17:20:13
Message-ID: 20070530192012.146168.clavius () mail ! com
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=146168         
           Summary: asynchronous loading of large XML file -> "Script
                    freeze" abort/continue dialog
           Product: konqueror
           Version: unspecified
          Platform: Debian stable
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: konq-bugs kde org
        ReportedBy: clavius mail com


Version:           3.5.2 (using KDE KDE 3.5.2)
Installed from:    Debian stable Packages
OS:                Linux

I'm using HTML + XML (AJAX) to implement an online help system. The full text index \
used for full-text search is a fairly large XML file. My help search page loads the \
XML file asynchronously, which should mean that scripts aren't running while it's \
loading. But the file takes longer than Konqueror's very conservative time limit to \
load, and I get the annoying warning dialog "A script on this page is causing KHTML \
to freeze, blah blah blah...Abort or Continue?". If you hit "continue" everything \
works as expected. But since this is happening due to a long XMLHttpRequest, there \
isn't any JS code for me to trim or optimize--I fire off the request, and the warning \
appears before I even get a chance to execute anything else.

A couple of issues are at work here:

1) Why does KHTML think the script is blocking when it's loading asynchronously? \
Shouldn't it send the XMLHttpRequest and then happily return to it's base state until \
it's done loading and the onreadystatechange fires? (I think my AJAX code is OK, \
because it works correctly in the other browsers I've tested--including Safari--but I \
can post it if it would be helpful.) Is there something different I can do with my \
XMLHttpRequest to make it load without triggering the warning?

2) If I can't make my XMLHttpRequest "immune" to the warning, is there a way to \
prevent it from the web page or a script? I know it's a long shot, as it would \
probably be construed as a security loophole, but I really don't want users to have \
to deal with this. If the user clicks continue, the data finishes loading almost \
immediately and the full-text search works perfectly.

3) I understand the importance of catching runaway scripts and giving the user a way \
to terminate them, but I would argue that Konqueror has overly restrictive defaults \
set currently. I would like to request that in future releases you make the default \
time limit for scripts somewhat longer. If the number of bugs filed involving this \
warning is any indication, it seems that the current defaults give too many false \
positives. IE and Mozilla both have similar runaway script detectors, but they have \
(IMO) more reasonable default threshholds, so they tend to be more accurate--if you \
see that warning in IE or Mozilla, it's usually because it really *is* a runaway \
script, not just because it's doing something intensive or loading a big file. \
_______________________________________________ Konq-bugs mailing list
Konq-bugs@mail.kde.org
https://mail.kde.org/mailman/listinfo/konq-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic