+2005-01-06 Kevin Decker <kdecker@apple.com>
+
+ Reviewed by mjs.
+
+ Fixed: <rdar://problem/3932215> REGRESSION (125-177): iFrame example at developer.apple.com fails in Safari
+
+ * khtml/khtml_part.cpp:
+ (KHTMLPart::processObjectRequest): m_bComplete was never true for frames generated by Javascript due to our synchronous loading and as a result, scheduled redirects wouldn't fire in KHTMLPart::scheduleLocationChange(). By virtue of being an empty document, a document is complete. In this special case it's safe at this point to call checkCompleted() which sets m_bComplete true.
+
=== Safari-178 ===
2005-01-06 David Harrison <harrison@apple.com>
child->m_extension->setURLArgs( child->m_args );
#if APPLE_CHANGES
- // In these cases, the synchronous load would have finished
- // before we could connect the signals, so make sure to send the
- // completed() signal for the child by hand:
- if (url.isEmpty() || url.url() == "about:blank") {
+ // In these cases, the synchronous load would have finished
+ // before we could connect the signals, so make sure to send the
+ // completed() signal for the child by hand
+ // FIXME: In this case the KHTMLPart will have finished loading before
+ // it's being added to the child list. It would be a good idea to
+ // create the child first, then invoke the loader separately
+ if (url.isEmpty() || url.url() == "about:blank") {
ReadOnlyPart *readOnlyPart = child->m_part;
KHTMLPart *part = static_cast<KHTMLPart *>(readOnlyPart);
if (part && part->inherits("KHTMLPart")) {
- part->completed();
+ part->completed();
+ part->checkCompleted();
}
- }
+ }
#else
if(url.protocol() == "javascript" || url.url() == "about:blank") {
if (!child->m_part->inherits("KHTMLPart"))