Summary: | Crash on scripted reload | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Tais P. Hansen <tais.hansen> |
Component: | khtml part | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Tais P. Hansen
2006-06-09 17:09:19 UTC
#6 0x41e006b3 in KHTMLPart::scheduleRedirection (this=0x0, delay=-1, url=@0xbfc5f5f8, doLockHistory=true) at khtml_part.cpp:2373 #7 0x41fee136 in KJS::LocationFunc::tryCall (this=0x83ecf90, exec=0xbfc5fb0c, thisObj=@0xbfc5f7e8, args=@0xbfc5f7f8) at kjs_window.cpp:2468 #8 0x41f9aa72 in KJS::DOMFunction::call (this=0x83ecf90, exec=0xbfc5fb0c, thisObj=@0xbfc5f7e8, args=@0xbfc5f7f8) at kjs_binding.cpp:114 #9 0x4219d147 in KJS::Object::call (this=0xbfc5f7f0, exec=0xbfc5fb0c, thisObj=@0xbfc5f7e8, args=@0xbfc5f7f8) at object.cpp:73 #10 0x4215bee4 in KJS::FunctionCallNode::evaluate (this=0x8460b20, exec=0xbfc5fb0c) at nodes.cpp:870 #11 0x42161b4d in KJS::ExprStatementNode::execute (this=0x8482340, exec=0xbfc5fb0c) at nodes.cpp:1980 #12 0x42168619 in KJS::SourceElementsNode::execute (this=0x829e358, exec=0xbfc5fb0c) at nodes.cpp:3091 SVN commit 549888 by kling: Handle location.reload() on non-KHTMLPart parts (and don't crash while doing it) BUG: 128902 M +3 -1 kjs_window.cpp --- branches/KDE/3.5/kdelibs/khtml/ecma/kjs_window.cpp #549887:549888 @@ -2464,8 +2464,10 @@ break; case Location::Reload: { KHTMLPart *khtmlpart = ::qt_cast<KHTMLPart *>(part); - if (part) + if (khtmlpart) khtmlpart->scheduleRedirection(-1, part->url().url(), true/*lock history*/); + else + part->openURL(part->url()); break; } case Location::ToString: |