"%@:%u"
"%@://%@"
"%@://%@/%@"
+"%@://%@:%d"
"%d"
"%dpx"
"%ld"
"-1px"
"-khtml-text-decorations-in-effect"
"."
-".3"
"._"
".download"
".html"
"CLSID\\{########-####-####-####-############}\\VersionIndependentProgID"
"CSS"
"Cache-Control"
+"Content-Encoding"
"Content-Length"
"Content-Type"
"Courier"
"Library/Internet Plug-Ins"
"Lucida Grande"
"MIME\\Database\\Content Type"
-"MoveBackward"
-"MoveBackwardAndModifySelection"
"MoveDown"
"MoveDownAndModifySelection"
"MoveDownByPageAndModifyCaret"
-"MoveForward"
-"MoveForwardAndModifySelection"
"MoveLeft"
"MoveLeftAndModifySelection"
-"MoveParagraphBackwardAndModifySelection"
-"MoveParagraphForwardAndModifySelection"
"MoveRight"
"MoveRightAndModifySelection"
"MoveToBeginningOfDocument"
"MoveToBeginningOfDocumentAndModifySelection"
"MoveToBeginningOfLine"
"MoveToBeginningOfLineAndModifySelection"
-"MoveToBeginningOfParagraph"
-"MoveToBeginningOfParagraphAndModifySelection"
-"MoveToBeginningOfSentence"
-"MoveToBeginningOfSentenceAndModifySelection"
"MoveToEndOfDocument"
"MoveToEndOfDocumentAndModifySelection"
"MoveToEndOfLine"
"MoveToEndOfLineAndModifySelection"
-"MoveToEndOfParagraph"
-"MoveToEndOfParagraphAndModifySelection"
-"MoveToEndOfSentence"
-"MoveToEndOfSentenceAndModifySelection"
"MoveUp"
"MoveUpAndModifySelection"
"MoveUpByPageAndModifyCaret"
-"MoveWordBackward"
-"MoveWordBackwardAndModifySelection"
-"MoveWordForward"
-"MoveWordForwardAndModifySelection"
"MoveWordLeft"
"MoveWordLeftAndModifySelection"
"MoveWordRight"
"NSEvent"
"NSView"
"NeXT smart paste pasteboard type"
-"OpenSource"
"PDFDocument"
"PDFPreviewView"
"PDFView"
+"PDFViewChangedPage"
"PDFViewDisplayModeChanged"
"PDFViewScaleChanged"
"PNG"
"WebInspectorWindowClass"
"WebJavaScriptCollector"
"WebJavaScriptTextInputPanel"
-"WebKit."
"WebKitDeveloperExtras"
"WebKitErrorDomain"
"WebKitErrorMIMETypeKey"
"WebPluginAttributes"
"WebPluginBaseURL"
"WebPluginContainer"
-"WebPluginDescription"
-"WebPluginExtensions"
-"WebPluginLocalizationName"
-"WebPluginMIMETypes"
-"WebPluginMIMETypesFilename"
-"WebPluginName"
-"WebPluginTypeDescription"
-"WebPluginTypeEnabled"
"WebPluginWillPresentNativeUserInterface"
"WebPreferences"
"WebPreferences%d"
"WebURLProtectionSpace"
"WebURLRequest"
"WebURLResponse"
-"WebURLsWithTitlesPboardType"
"WebView"
"WebViewDidBeginEditingNotification"
"WebViewDidChangeNotification"
"com.RealNetworks.RealOne Player"
"com.adobe.Acrobat"
"com.adobe.Acrobat.Pro"
+"com.adobe.Contribute"
+"com.adobe.InCopy"
+"com.adobe.InDesign"
"com.adobe.Installers.Setup"
"com.adobe.Reader"
+"com.adobe.Soundbooth"
"com.adobe.distiller"
+"com.adobe.dreamweaver-9.0"
"com.apple.Aperture"
"com.apple.AppKit"
"com.apple.HIWebView"
"com.apple.quicktime.webplugin"
"com.apple.universalaccess"
"com.lizardtech.NPDjVu"
+"com.macromedia.fireworks"
"com.microsoft.WMP.defaultplugin"
"com.vitalsource.bookshelf"
"dir"
WebKit/History/WebHistoryItem.mm:"children"
WebKit/History/WebHistoryItem.mm:"title"
WebKit/Misc/WebCache.mm:"Images"
-WebKit/Misc/WebKitLogging.h:"<not running on main thread>"
WebKit/Misc/WebKitVersionChecks.m:"WebKit"
-WebKit/Misc/WebNSURLExtras.m:"file"
+WebKit/Misc/WebNSURLExtras.mm:"file"
WebKit/Plugins/WebBaseNetscapePluginStream.mm:" OK\n"
WebKit/Plugins/WebBaseNetscapePluginStream.mm:": "
WebKit/Plugins/WebBaseNetscapePluginStream.mm:"HTTP "
+WebKit/Plugins/WebBaseNetscapePluginStream.mm:"identity"
WebKit/Plugins/WebBaseNetscapePluginView.mm:"height"
WebKit/Plugins/WebBaseNetscapePluginView.mm:"width"
WebKit/Plugins/WebBasePluginPackage.m:"Java Applet Plugin Enabler"
WebKit/WebView/WebHTMLView.mm:"transparent"
WebKit/WebView/WebHTMLView.mm:"underline"
WebKit/WebView/WebHTMLView.mm:"white"
-WebKit/WebView/WebPreferenceKeysPrivate.h
WebKit/WebView/WebPreferences.m:"Identifier"
WebKit/WebView/WebPreferences.m:"Values"
WebKit/WebView/WebView.mm:"Preferences"
WebKit/win/WebInspectorClient.cpp:"Web Inspector"
WebKit/win/WebInspectorClient.cpp:"inspector"
WebKit/win/WebKitDLL.cpp:"Apartment"
-WebKit/win/WebPreferenceKeysPrivate.h
WebKit/win/WebPreferences.cpp:"Arial"
WebKit/win/WebPreferences.cpp:"Comic Sans MS"
WebKit/win/WebPreferences.cpp:"Courier New"
/*
- * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
+ * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
// SPI for NSURLDownload
// Needed for <rdar://problem/5121850>
@interface NSURLDownload (NSURLDownloadPrivate)
-
-- (void)_setOriginatingURL:(NSURL *)url;
-- (NSURL *)_originatingURL;
-
+- (void)_setOriginatingURL:(NSURL *)originatingURL;
@end
-// FIXME: This is unnecessary after <rdar://problem/5208329>
@interface WebHistoryItem (WebHistoryItemPrivate)
-
- (BOOL)_wasUserGesture;
-
@end
@interface WebFramePolicyListener : NSObject <WebPolicyDecisionListener, WebFormSubmissionListener>
setOriginalURLForDownload(download, initialRequest);
}
-void WebFrameLoaderClient::setOriginalURLForDownload(WebDownload *download, const WebCore::ResourceRequest& initialRequest) const
+void WebFrameLoaderClient::setOriginalURLForDownload(WebDownload *download, const ResourceRequest& initialRequest) const
{
- WebView *webView = getWebView(m_webFrame.get());
NSURLRequest *initialURLRequest = initialRequest.nsURLRequest();
NSURL *originalURL = nil;
- WebBackForwardList *history = [webView backForwardList];
- WebHistoryItem *currentItem = nil;
- int backListCount = [history backListCount];
- // if there was no referrer, don't traverse the backforward history
- // since this download was initiated directly
- // <rdar://problem/5294691>
+ // If there was no referrer, don't traverse the back/forward history
+ // since this download was initiated directly. <rdar://problem/5294691>
if ([initialURLRequest valueForHTTPHeaderField:@"Referer"]) {
- // find the first item in the history that was originated
- // by the user
+ // find the first item in the history that was originated by the user
+ WebView *webView = getWebView(m_webFrame.get());
+ WebBackForwardList *history = [webView backForwardList];
+ int backListCount = [history backListCount];
for (int backIndex = 0; backIndex <= backListCount && !originalURL; backIndex++) {
- currentItem = [history itemAtIndex:-backIndex];
-
+ WebHistoryItem *currentItem = [history itemAtIndex:-backIndex];
if (![currentItem respondsToSelector:@selector(_wasUserGesture)] || [currentItem _wasUserGesture])
originalURL = [currentItem URL];
}
}
-
+
if (!originalURL)
originalURL = [initialURLRequest URL];
-
- if ([download respondsToSelector:@selector(_setOriginatingURL:)])
- [download _setOriginatingURL:originalURL];
+
+ if ([download respondsToSelector:@selector(_setOriginatingURL:)]) {
+ NSString *scheme = [originalURL scheme];
+ NSString *host = [originalURL host];
+ if (scheme && host && [scheme length] && [host length]) {
+ NSNumber *port = [originalURL port];
+ if (port && [port intValue] < 0)
+ port = nil;
+ NSString *hostOnlyURLString;
+ if (port)
+ hostOnlyURLString = [[NSString alloc] initWithFormat:@"%@://%@:%d", scheme, host, [port intValue]];
+ else
+ hostOnlyURLString = [[NSString alloc] initWithFormat:@"%@://%@", scheme, host];
+ NSURL *hostOnlyURL = [[NSURL alloc] initWithString:hostOnlyURLString];
+ [hostOnlyURLString release];
+ [download _setOriginatingURL:hostOnlyURL];
+ [hostOnlyURL release];
+ }
+ }
}
bool WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache(DocumentLoader* loader, const ResourceRequest& request, const ResourceResponse& response, int length)
static_cast<WebDocumentLoaderMac*>(loader)->decreaseLoadCount(identifier);
}
-void WebFrameLoaderClient::dispatchDidFailLoading(DocumentLoader* loader, unsigned long identifier, const WebCore::ResourceError& error)
+void WebFrameLoaderClient::dispatchDidFailLoading(DocumentLoader* loader, unsigned long identifier, const ResourceError& error)
{
WebView *webView = getWebView(m_webFrame.get());
id resourceLoadDelegate = WebViewGetResourceLoadDelegate(webView);
END_BLOCK_OBJC_EXCEPTIONS;
}
-WebCore::Widget* WebFrameLoaderClient::createJavaAppletWidget(const IntSize& size, Element* element, const KURL& baseURL,
+Widget* WebFrameLoaderClient::createJavaAppletWidget(const IntSize& size, Element* element, const KURL& baseURL,
const Vector<String>& paramNames, const Vector<String>& paramValues)
{
Widget* result = new Widget;