Reviewed by john.
* Plugins.subproj/WebNetscapePluginEmbeddedView.m:
(-[WebNetscapePluginEmbeddedView didStart]): don't start load if URL is empty
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8401
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-01-19 Chris Blumenberg <cblu@apple.com>
+
+ Fixed: <rdar://problem/3961809> plug-in code attempts to load empty URL
+
+ Reviewed by john.
+
+ * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
+ (-[WebNetscapePluginEmbeddedView didStart]): don't start load if URL is empty
+
2005-01-17 Darin Adler <darin@apple.com>
* DOM.subproj/DOMPrivate.h: Check in generated file.
- (void)didStart
{
- if (URL != nil) {
+ // If the OBJECT/EMBED tag has no SRC, the URL is passed to us as "".
+ // Check for this and don't start a load in this case.
+ if (URL != nil && ![URL _web_isEmpty]) {
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:URL];
[request setHTTPReferrer:[[[[self dataSource] request] URL] _web_originalDataAsString]];
[self loadRequest:request inTarget:nil withNotifyData:nil sendNotification:NO];