1. 17 Jan, 2003 3 commits
    • darin's avatar
      WebCore: · 39628ea0
      darin authored
              Reviewed by John.
      	- updated copyright to include expat copyrights
              * WebCore.pbproj/project.pbxproj: Added expat copyrights on the end.
      	Got text of copyrights from Acknowledgments.rtf in WebBrowser.
              Reviewed by John.
      	- updated acknowledgments to latest text from legal that mentions expat
              * Help/English.lproj/Acknowledgments.rtf: New drop from legal.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3347 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      WebKit: · 5930f7b4
      darin authored
      	- compressed all our non-compressed TIFF files
              * Resources/nullplugin.tiff:
              * Resources/url_icon.tiff:
      	- compressed all our non-compressed TIFF files
              * Preferences.subproj/AppearancePreferences.tiff:
              * Preferences.subproj/BookmarkPreferences.tiff:
              * Preferences.subproj/GeneralPreferences.tiff:
              * Preferences.subproj/SecurityPreferences.tiff:
              * Resources/Images/Activity_Stop.tif:
              * Resources/Images/AddLink.tif:
              * Resources/Images/AddLinkDisabled.tif:
              * Resources/Images/AddLinkPressed.tif:
              * Resources/Images/AddressBook.tiff:
              * Resources/Images/Back.tif:
              * Resources/Images/BackDisabled.tif:
              * Resources/Images/BackPressed.tif:
              * Resources/Images/BookmarksButton.tif:
              * Resources/Images/BookmarksButton_Pressed.tif:
              * Resources/Images/BookmarksButton_Rollover.tif:
              * Resources/Images/BookmarksButton_Selected.tif:
              * Resources/Images/BookmarksButton_Selected_Pressed.tif:
              * Resources/Images/BookmarksDragBadge1-2.tif:
              * Resources/Images/BookmarksDragBadge3.tif:
              * Resources/Images/BookmarksDragBadge4.tif:
              * Resources/Images/BookmarksDragBadge5.tif:
              * Resources/Images/BookmarksDragImage.tif:
              * Resources/Images/Bug_Report.tif:
              * Resources/Images/Bug_Report_Pressed.tif:
              * Resources/Images/DarkMetalSwatch.tif:
              * Resources/Images/Download_Clear.tif:
              * Resources/Images/Download_ClearDisabled.tif:
              * Resources/Images/Download_ClearPressed.tif:
              * Resources/Images/Download_Reload.tif:
              * Resources/Images/Download_ReloadPressed.tif:
              * Resources/Images/Download_Reveal.tif:
              * Resources/Images/Download_RevealPressed.tif:
              * Resources/Images/Download_Stop.tif:
              * Resources/Images/Download_StopPressed.tif:
              * Resources/Images/FavoriteDrag_Caps.tif:
              * Resources/Images/FavoriteDrag_Middle.tif:
              * Resources/Images/FavoritePressed_Caps.tif:
              * Resources/Images/FavoritePressed_Middle.tif:
              * Resources/Images/FavoriteRollover_Caps.tif:
              * Resources/Images/FavoriteRollover_Middle.tif:
              * Resources/Images/FavoritesBar.tif:
              * Resources/Images/FavoritesBarClipIndicator.tiff:
              * Resources/Images/FavoritesBarClipIndicatorPressed.tiff:
              * Resources/Images/FavoritesFolderArrow.tif:
              * Resources/Images/FavoritesFolderArrowWhite.tif:
              * Resources/Images/FontBigger.tif:
              * Resources/Images/FontBiggerDisabled.tif:
              * Resources/Images/FontBiggerPressed.tif:
              * Resources/Images/FontSmaller.tif:
              * Resources/Images/FontSmallerDisabled.tif:
              * Resources/Images/FontSmallerPressed.tif:
              * Resources/Images/Forward.tif:
              * Resources/Images/ForwardDisabled.tif:
              * Resources/Images/ForwardPressed.tif:
              * Resources/Images/History.tif:
              * Resources/Images/Home.tif:
              * Resources/Images/HomeDisabled.tif:
              * Resources/Images/HomePressed.tif:
              * Resources/Images/LibrarySelection.tif:
              * Resources/Images/LibrarySelectionGray.tif:
              * Resources/Images/Location_Left.tif:
              * Resources/Images/Location_Left_Progress.tif:
              * Resources/Images/Location_Middle.tif:
              * Resources/Images/Location_Middle_Progress.tif:
              * Resources/Images/Location_Right_Progress.tif:
              * Resources/Images/Lock.tif:
              * Resources/Images/NewFolder.tif:
              * Resources/Images/NewFolder_Disabled.tif:
              * Resources/Images/NewFolder_Pressed.tif:
              * Resources/Images/Reload.tif:
              * Resources/Images/ReloadDisabled.tif:
              * Resources/Images/ReloadPressed.tif:
              * Resources/Images/Search_Left.tif:
              * Resources/Images/Search_Left_Progress.tif:
              * Resources/Images/Search_Middle.tif:
              * Resources/Images/Search_Middle_Progress.tif:
              * Resources/Images/Search_Right.tif:
              * Resources/Images/Search_Right_Progress.tif:
              * Resources/Images/Search_SnapBack.tif:
              * Resources/Images/Search_SnapBackPressed.tif:
              * Resources/Images/Stop.tif:
              * Resources/Images/StopDisabled.tif:
              * Resources/Images/StopPressed.tif:
              * Resources/Images/folder16.tiff:
              * Resources/Images/rendezvous.tiff:
              * Resources/Images/tiny_menu.tiff:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3346 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • mjs's avatar
      Reviewed by Dave. · 760b2e8f
      mjs authored
      	- fixed 3148141 - crash in KJS::WindowFunc::tryCall leaving certain site
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::setView): If setting the view to nil and we have a
      	document, detach the document. This means that we are removing a
      	frame from the tree, so we want to run it's onUnload handler now,
      	rather than later when things are no longer fully hooked up.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3345 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  2. 16 Jan, 2003 12 commits
    • rjw's avatar
      Fixed 3148932. Account for zero width characters · 77a985bc
      rjw authored
              in <pre> fixed-width optimization.
              Reviewed by hyatt.
              * khtml/rendering/render_text.cpp:
              Reviewed by Richard (written by Mike S.)  'Clean' implementations of these
              functions that were too similar to the Qt implementations.
              * kwq/KWQString.mm:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3344 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • mjs's avatar
      Reviewed by Darin. · bfdaa330
      mjs authored
      	- fixed 3144771 - Crash in KJS::WindowFunc::tryCall leaving www.smogcheck.org
      	I fixed this by making sure we couldn't send the unload event twice, which was
      	happening before in certain circumstances.
              * khtml/khtml_part.cpp:
              (KHTMLPart::closeURL): When emitting load event, note that unload
      	event has not yet been sent.
              (KHTMLPart::checkEmitLoadEvent): Note when unload event has been
      	sent to avoid sending it twice.
              * khtml/khtmlpart_p.h:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3343 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • mjs's avatar
      Reviewed by Darin. · 01106a97
      mjs authored
      	- made minor tweaks to work better with Mozilla's JavaScript tests.
              * kjs/testkjs.cpp:
              (VersionFunctionImp::call): Implemented
              (main): Ignore files named -f (hack to match -f <filename syntax
      	that moz JavaScript tests expect). Also use return code 3 instead
      	of 1 for uncaught exception.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3342 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      * kjs/number_object.cpp: (NumberObjectImp::construct): · 69a82b6b
      darin authored
      	Fix build, remove stray space.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3339 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      Reviewed by Maciej. · 389288b2
      darin authored
      	- rolled in a change from the KJS folks
              * kjs/number_object.h: Use ObjectImp *, not Object, for the proto.
              * kjs/number_object.cpp:
              (NumberInstanceImp::NumberInstanceImp): Use ObjectImp *, not Object, for the proto.
              (NumberPrototypeImp::NumberPrototypeImp): Pass ObjectImp.
              (NumberObjectImp::construct): Use ObjectImp.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3338 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      Removed the Safari-49 markers to reduce confusion since · 361e7403
      darin authored
      49 was never used and includes changes that were not in 51.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3337 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      * WebView.subproj/WebController.h: Fixed a comment that was out of date. · e579e0b7
      darin authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3336 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • cblu's avatar
      Fixed comment. · 9442c951
      cblu authored
              Reviewed by NOBODY (OOPS!).
              * Plugins.subproj/WebBaseNetscapePluginView.m:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3335 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • cblu's avatar
      Fixed: 3125743 - right-click doesn't count as ctrl-click in Flash · f8ae501e
      cblu authored
      	AppKit doesn't call mouseDown or mouseUp on right-click. Simulate control-click mouseDown and mouseUp so plug-ins get the right-click event as they do in Carbon
              Reviewed by darin.
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView rightMouseDown:]):
              (-[WebBaseNetscapePluginView rightMouseUp:]):
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3334 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      WebCore: · 615a7e07
      darin authored
              Reviewed by John.
      	- added an API for dumping the external representation of the render tree for testing
              * kwq/KWQRenderTreeDebug.h: Added.
              * kwq/KWQRenderTreeDebug.cpp: Added.
              * kwq/KWQTextStream.h: Added more overloads for operator<<.
              * kwq/KWQTextStream.mm: (QTextStream::operator<<): Implemented them.
              * kwq/WebCoreBridge.h: Added renderTreeAsExternalRepresentation.
              * kwq/WebCoreBridge.mm: (-[WebCoreBridge renderTreeAsExternalRepresentation]): Added.
      	- removed remnants of an earlier more-naive cut at this same sort of thing
      	- removed ForwardingHeaders from the project since that doesn't really help Project Builder
              * kwq/WebCoreTestController.h: Removed.
              * kwq/WebCoreTestController.m: Removed.
              * WebCore.exp: Removed WebCoreTestController.
              * WebCore-combined.exp: Re-generated.
              * WebCore.pbproj/project.pbxproj: Removed WebCoreTestController and ForwardingHeaders.
              Reviewed by John.
      	- added an API for dumping the external representation of the render tree for testing
              * Misc.subproj/WebCoreStatistics.h: Added renderTreeAsExternalRepresentation.
              * Misc.subproj/WebCoreStatistics.m: (-[WebFrame renderTreeAsExternalRepresentation]): Added.
      	- removed remnants of an earlier more-naive cut at this same sort of thing
              * Misc.subproj/WebTestController.h: Removed.
              * Misc.subproj/WebTestController.m: Removed.
              * WebKit.exp: Removed WebTestController.
              * WebKit.pbproj/project.pbxproj: Removed WebTestController.
      	- other changes
              * WebCoreSupport.subproj/WebBridge.m: Had added new copyright date to touch a file.
      	That's not needed any more, but the date should be updated anyway.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3333 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • sheridan's avatar
      Safari-53u; tree is open · f7bab12f
      sheridan authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3332 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • sheridan's avatar
      Safari-52 stamp · de81c91e
      sheridan authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3330 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  3. 15 Jan, 2003 4 commits
    • mjs's avatar
      Reviewed by Darin. · a7881fc9
      mjs authored
      	- fixed 3143418 - controller assert in WebStandardPanels _didStartLoadingURL
      	- fixed 3141212 - crash in kjs garbage collection (contextimp mark)
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge startLoadingResource:withURL:]): If the data source
      	doesn't have a controller, then block the load.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3329 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • trey's avatar
      3144458 - user's credentials are present in a form that is revisited via b/f or history · 2c65ac11
      trey authored
      	We now never save/restore password fields.  Also if the page has a form with a password
      	field that would be submitted securely, we do not save anything on that page.
              Reviewed by Darin.
              * force-clean-timestamp:  PB isn't smart enough to know what to rebuild.
              * khtml/html/html_formimpl.cpp:
              (HTMLFormElementImpl::formWouldHaveSecureSubmission):  Utility function.
              (HTMLFormElementImpl::attach):  Tell doc if we've added a secure form.
              (HTMLFormElementImpl::parseAttribute):  Tell doc if form became secure.
              (HTMLInputElementImpl::state):  Assert that we never save password fields.
              (HTMLInputElementImpl::restoreState):  Assert that we never restore password fields.
              (HTMLInputElementImpl::attach):  Tell doc if we've added a password field.
              * khtml/html/html_formimpl.h:
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::DocumentImpl):  Init count of secure forms, password fields.
              (DocumentImpl::hasPasswordField):  New methods to count password fields.
              (DocumentImpl::hasSecureForm):  New methods to count secure forms.
              * khtml/xml/dom_docimpl.h:
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::canCachePage):   Never let pages with password fields in the page cache.
              (KWQKHTMLPart::saveDocumentState):  Do not save form state if page has a form with
      	a password field that would be submitted securely
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3328 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      Reviewed by Ken. · 13748990
      darin authored
      	- rolled in a change from the KJS folks
      	Fixes a bug where the date functions would not accept non-strings.
      	And provides a bit of a speedup.
              * kjs/date_object.h: Change parameter type for parseDate.
              * kjs/date_object.cpp:
              (DateObjectFuncImp::call): Always call toString, don't check the type.
              (KJS::parseDate): Take a UString parameter, not a String parameter.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3327 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      WebCore: · c12a0350
      darin authored
              Reviewed by Ken.
      	- fixed problem where Content-Type was coming in with suffixes like "charset"
              * kwq/WebCoreBridge.h: Add contentType and refresh parameters, and remove "headers"
      	parameter, from openURL method.
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge openURL:reload:contentType:refresh:lastModified:pageCache:]): Get the
      	content type from a parameter, and the refresh header from a separate parameter rather
      	than extracting both from a headers dictionary.
              Reviewed by Ken.
      	- fixed problem where Content-Type was going into WebCore with suffixes like "charset"
              * WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _commitIfReady:]):
      	Pass in contentType from the response, rather than the "Content-Type" header.
      	Also pass in the refresh header separately.
              * English.lproj/StringsNotToBeLocalized.txt: Updated for above change.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3326 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  4. 14 Jan, 2003 7 commits
    • darin's avatar
      Reviewed by Maciej. · 5c611c4d
      darin authored
      	- fixed 3147036 -- words separated only by newlines are getting rammed together on XML page
      	- fixed 3147032 -- preformatted text is missing much whitespace on XML page
              * khtml/xml/xml_tokenizer.cpp: (XMLHandler::characters): Don't try to strip whitespace at all,
      	because it needs to be in the DOM.
      	- add support for more MIME types
              * khtml/khtml_part.cpp: (KHTMLPart::begin): Add "application/xml" and "application/xhtml+xml".
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • mjs's avatar
      WebFoundation: · 69012bc6
      mjs authored
              Reviewed by Darin, Dave and Trey, and given the seal of approval by Don.
      	Added a new NSFileManager extension method which can be used to
      	remove a file but will refuse to remove a directory. Used it
      	wherever we remove files but not directories.
              * Misc.subproj/WebNSFileManagerExtras.h:
              * Misc.subproj/WebNSFileManagerExtras.m:
      	(-[NSFileManager _web_removeFileOnlyAtPath:]): New method that
      	removes a file using unlink(2), which means we can't possibly remove a directory.
      	Also unlink ._ file if we are on a filesystem that doesn't support a resource fork.
              * Database.subproj/WebFileDatabase.m:
              (-[WebFileDatabase _truncateToSizeLimit:]):  Use the new method.
              (-[WebFileDatabase performRemoveObjectForKey:]): Use the new method.
              Reviewed by Darin, Dave and Trey, and given the seal of approval by Don.
      	Use new safer file removal call that does not handle directories.
              * Downloads.subproj/WebDownloadHandler.m:
      	(-[WebDownloadHandler cleanUpAfterFailure]): Use
              * Plugins.subproj/WebBaseNetscapePluginStream.m:
              (-[WebBaseNetscapePluginStream dealloc]): Use _web_removeFileOnlyAtPath:
              (-[WebBaseNetscapePluginStream finishedLoadingWithData:]): Use _web_removeFileOnlyAtPath:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3324 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      Reviewed by Dave. · a15075e3
      darin authored
              * Plugins.subproj/WebBaseNetscapePluginStream.m:
              (-[WebBaseNetscapePluginStream finishedLoadingWithData:]):
      	Fixed uninitialized variable warning so builds work again.
              * WebView.subproj/WebDataSourcePrivate.m: (+[WebDataSource _repTypes]): Added "application/xml".
              * WebView.subproj/WebViewPrivate.m: (+[WebView _viewTypes]): Added "application/xml".
      	* English.lproj/Localizable.strings: Regenerated.
      	* English.lproj/StringsNotToBeLocalized.txt: Updated for above change.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3323 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • hyatt's avatar
      Make FOUC work with XML. · bcb09ec8
      hyatt authored
              Reviewed by darin.
              * khtml/html/html_baseimpl.cpp:
              * khtml/xml/dom_xmlimpl.cpp:
              * khtml/xml/dom_xmlimpl.h:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3322 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      Reviewed by Maciej. · 0bb44c36
      darin authored
      	- first cut at XML parsing with expat
              * khtml/khtml_part.cpp: (KHTMLPart::begin): Remove APPLE_CHANGES and use the XML
      	code for text/xml documents.
              * WebCore.pbproj/project.pbxproj: Added the ForwardingHeaders to the project.
      	Added new QXml files, removed old ones.
              * kwq/KWQXml.h: Removed.
              * kwq/KWQXml.mm: Removed.
              * kwq/KWQXmlAttributes.h: Added.
              * kwq/KWQXmlAttributes.mm: Added.
              * kwq/KWQXmlDefaultHandler.h: Added.
              * kwq/KWQXmlDefaultHandler.mm: Added.
              * kwq/KWQXmlSimpleReader.h: Added.
              * kwq/KWQXmlSimpleReader.mm: Added.
              * kwq/KWQString.h: Add fromUtf8 functions.
              * kwq/KWQString.mm: (QString::fromUtf8): Added. Simple implementation just
      	calls fromStringWithEncoding. We may need something more efficient later,
      	at least for all-ASCII text.
      	- other changes
              * khtml/khtml_part.h: Fix spelling of occurrence.
              * khtml/misc/decoder.cpp: (Decoder::decode): Turn on Japanese auto-detect.
      	It doesn't seem to work yet, but this does no harm.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3321 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • rjw's avatar
      Fix for 3139120. This patch was contributed by Mitz Pettel. It correctly · 2028aa44
      rjw authored
              handles the visually ordered encodings.  The patch also picks up changes
              from kde that accounts for european numbers correctly in bidiReorderLine().
              Reviewed by Dave.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3319 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      Reviewed by Trey, John, and Maciej, and given the seal of approval by Don. · 31d40d53
      darin authored
      	- fixed 3143317 -- plug-in supplied URLs cause correspondingly named files in /tmp to be deleted
      	- fixed 3143330 -- plug-in supplied URLs can overwrite files used in other windows by same plug-in
              * Plugins.subproj/WebBaseNetscapePluginStream.h: Make path be a char * rather than an NSString.
              * Plugins.subproj/WebBaseNetscapePluginStream.m:
              (-[WebBaseNetscapePluginStream dealloc]): Use unlink() to delete the temporary file we made.
      	Since we created the file, we know it doesn't have any fancy stuff like a resource fork.
              (-[WebBaseNetscapePluginStream finishedLoadingWithData:]): Create the file with mkstemp instead of
      	trying to come up with our own filename. This eliminates the need to delete an old file (because we
      	are guaranteed the file is new) and also mkstemp opens the file for us, so we just need to write
      	the contents.
              * English.lproj/StringsNotToBeLocalized.txt: Updated for above changes.
              - unrelated change to help with other bug analysis
              * WebView.subproj/WebBaseResourceHandleDelegate.m: Added assertions.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3318 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  5. 13 Jan, 2003 4 commits
    • cblu's avatar
      WebFoundation: · bd135e16
      cblu authored
      	Fix for checking and creating proper download filenames.
              Reviewed by mjs, kocienda, trey.
              * CacheLoader.subproj/WebResourceResponse.h:
              * CacheLoader.subproj/WebResourceResponse.m: removed the filename method. That is now a category in WebKit
              * CacheLoader.subproj/WebResourceResponsePrivate.h:
              * Misc.subproj/WebNSStringExtras.h:
              * Misc.subproj/WebNSStringExtras.m:
              (-[NSString _web_filenameByFixingIllegalCharacters]): new, turns "/" into "-", strips leading dots
              * ProtocolHandlers.subproj/WebHTTPProtocolHandler.m:
              (-[WebHTTPProtocolHandler setResponseMetadata:]): don't parse out the content disposition. This is done in WebKit.
      	Fix for checking and creating proper download filenames.
              Reviewed by mjs, kocienda, trey.
              * WebKit.pbproj/project.pbxproj:
              * WebView.subproj/WebControllerPolicyDelegate.h: changes for renamed savePathForResponse:andRequest: method
              * WebView.subproj/WebDefaultPolicyDelegate.m: changes for renamed savePathForResponse:andRequest: method
              (-[WebDefaultPolicyDelegate savePathForResponse:andRequest:]): renamed
              * WebView.subproj/WebMainResourceClient.m:
              (-[WebMainResourceClient continueAfterContentPolicy:response:]): changes for renamed savePathForResponse:andRequest: method
      	Fix for checking and creating proper download filenames.
              Reviewed by mjs, kocienda, trey.
              * BrowserDocument.m:
              (-[BrowserDocument pageName]): call _web_filenameByFixingIllegalCharacters on the web page title when saving the document
              * BrowserWebController.m:
              (-[BrowserWebController savePathForResponse:andRequest:]): renamed, removed temporary that checks for invalid filename. That work is done in WebKit.
              * HTMLSourceDocument.m:
              (-[HTMLSourceDocument displayName]): call suggestedFilenameForSaving
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3316 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      * kjs/ustring.h: Fix spelling of occurrence. · b87b8515
      darin authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3315 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      Reviewed by Ken. · 908cf2a7
      darin authored
      	- fixed 3143781 -- submitting the same form twice doesn't work properly
      	(example at directory.apple.com)
              * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::submitForm): Only run the "don't submit the same
      	form twice" logic when the form is one that affects the frame that the form is in.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3314 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      Reviewed by Maciej. · 60414e6b
      darin authored
      	- turned more recursion into iteration, and fixed some backwards stuff
              * kjs/grammar.y: Use the normal idiom for CaseClauses and FormalParameterList
      	rather than using append().
              * kjs/grammar.cpp: Regenerated.
              * kjs/nodes.h: Change ClauseListNode and ParameterNode to use the normal idiom,
      	and got rid of append methods. Also added friend declarations and calls to reverseList().
              * kjs/nodes.cpp:
              (StatListNode::ref): Iteration, not recursion.
              (StatListNode::deref): Iteration, not recursion.
              (StatListNode::execute): Iteration, not recursion.
              (StatListNode::processVarDecls): Iteration, not recursion.
              (CaseClauseNode::reverseList): Added.
              (ClauseListNode::ref): Iteration, not recursion.
              (ClauseListNode::deref): Iteration, not recursion.
              (ClauseListNode::processVarDecls): Iteration, not recursion.
              (CaseBlockNode::reverseLists): Added.
              (ParameterNode::ref): Iteration, not recursion.
              (ParameterNode::deref): Iteration, not recursion.
              (FuncDeclNode::reverseParameterList): Added.
              (FuncExprNode::reverseParameterList): Added.
              (SourceElementsNode::ref): Iteration, not recursion.
              (SourceElementsNode::deref): Iteration, not recursion.
              (SourceElementsNode::execute): Use variable name of n to match other functions.
              (SourceElementsNode::processFuncDecl): Ditto.
              (SourceElementsNode::processVarDecls): Ditto.
              * kjs/nodes2string.cpp:
              (SourceStream::operator<<): Used a switch statement for a bit of added clarity.
              (ElementNode::streamTo): Iteration, not recursion.
              (PropertyValueNode::streamTo): Iteration, not recursion.
              (ArgumentListNode::streamTo): Iteration, not recursion.
              (StatListNode::streamTo): Iteration, not recursion, and fixed order.
              (VarDeclListNode::streamTo): Iteration, not recursion.
              (ClauseListNode::streamTo): Used for statement to match other functions.
              (CaseBlockNode::streamTo): Used for statement to match other functions.
              (ParameterNode::streamTo): Iteration, not recursion.
              (SourceElementsNode::streamTo): Iteration, not recursion, and fixed order that has been
      	backwards since I changed how this works in nodes.cpp.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3313 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  6. 12 Jan, 2003 7 commits
    • darin's avatar
      * WebCorePrefix.h: Needed to touch this file since we now have plain C source (expat). · 767b3718
      darin authored
              * kwq/KWQKHTMLPart.cpp: Reformatted a bit.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3312 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      Reviewed by Maciej. · 68877da7
      darin authored
      	- first step towards integrating expat for XML support: make it compile and link
              * kwq/KWQXml.mm: (QXmlSimpleReader::parse): Put in a placeholder that calls expat.
      	Mainly just used to make sure we link.
              * WebCore.pbproj/project.pbxproj: Added expat files.
              * expat/COPYING: Added.
              * expat/Changes: Added.
              * expat/MANIFEST: Added.
              * expat/README: Added.
              * expat/expat_config.h: Added.
              * expat/lib/ascii.h: Added.
              * expat/lib/asciitab.h: Added.
              * expat/lib/expat.h: Added.
              * expat/lib/iasciitab.h: Added.
              * expat/lib/internal.h: Added.
              * expat/lib/latin1tab.h: Added.
              * expat/lib/nametab.h: Added.
              * expat/lib/utf8tab.h: Added.
              * expat/lib/xmlparse.c: Added.
              * expat/lib/xmlrole.c: Added.
              * expat/lib/xmlrole.h: Added.
              * expat/lib/xmltok.c: Added.
              * expat/lib/xmltok.h: Added.
              * expat/lib/xmltok_impl.c: Added.
              * e...
    • darin's avatar
      Reviewed by John. · f9855741
      darin authored
      	- fixed 3144882 -- pretend to be WinIE for abcnews.com
              * WebView.subproj/WebControllerPrivate.h: Add an enum, UserAgentStringType, with values
      	Safari, MacIE, and WinIE. Also add NumUserAgentStringTypes and turn the userAgent and
      	userAgentWhenPretendingToBeMacIE strings into an array indexed by type.
              * WebView.subproj/WebController.m:
              (-[WebController setApplicationNameForUserAgent:]): Use a loop to discard the user agent
      	strings, since we have an array now.
              (-[WebController userAgentForURL:]): Change user agent algorithm to check two strings rather
      	than once against the spoof table, allowing two dots in the "domain name", which is needed
      	for "abcnews.go.com". Get a user agent string type from the table rather than just a boolean
      	"pretend to be MacIE". Store a string per type rather than one for normalcy and one for MacIE.
      	Add a case for WinIE to the user agent computations.
      	* English.lproj/StringsNotToBeLocalized.txt: Update for change ...
    • darin's avatar
      Reviewed by John. · ffcf8970
      darin authored
      	- changes inspired by things I noticed reviewing diffs vs. KDE when preparing the tarball
              * kjs/function.cpp: (GlobalFuncImp::call): Use strtol when strtoll is
      	not available. Do #ifndef NDEBUG, not #if !NDEBUG.
              * kjs/function.h: Do #ifndef NDEBUG, not #if !NDEBUG.
              * kjs/internal.cpp:
              (InterpreterImp::initGlobalObject): Do #ifndef NDEBUG, not #if !NDEBUG.
              (KJS::printInfo): Remove case for ListType and remove default case that just
      	ends up suppressing the "missing case" warning and does no good.
              * kjs/interpreter.cpp: (Interpreter::evaluate): Do #ifndef NDEBUG, not #if !NDEBUG.
              * kjs/nodes.cpp:
              (Node::finalCheck): Fix accidentally-deleted code in an ifdef we never compile.
              (FunctionCallNode::evaluate): Remove bogus XXX comment. Maciej put this comment in,
              and together we determined it's not needed.
              (TypeOfNode::evaluate): Ditto.
              * kjs/object.cpp: Remove assert that refers to ListType.
              * kjs/value.h: Remove ListType.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3306 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      Reviewed by Dave. · d8d3bd9d
      darin authored
      	- minor cleanup of plug-in-related classes in ECMA directory
              * khtml/ecma/kjs_navigator.cpp: Remove unneeded PluginBase member functions
      	ref() and deref(). Instead just make Plugin and MimeType both derive from
      	PluginBase and remove APPLE_CHANGES.
              (Navigator::getValueProperty): Don't use "Konqueror" for the fallback.
      	Just return Undefined() for that case since we will never reach it anyway.
      	- simplify the logic in khtmlMoveMouseEvent so it's easier to decipher
              * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::khtmlMouseMoveEvent): By merging two
      	identical if statements, the logic of this function becomes much clearer.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3305 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      Reviewed by Dave. · 50560aa1
      darin authored
      	- fixed a bunch of places where KHTML did !x == y instead of !(x == y) or x != y.
              * khtml/css/cssstyleselector.cpp: (CSSStyleSelector::applyRule):
              * khtml/html/htmlparser.cpp: (KHTMLParser::insertNode):
              * khtml/misc/loader.cpp: (Cache::requestImage), (Cache::requestStyleSheet):
              * khtml/rendering/render_flow.cpp: (RenderFlow::setStyle):
      	Changed !x == y to x != y. In each case, there's a reason that this does not create
      	any problem in practice, which is why we didn't rush to get this in for beta 1.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3304 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      Reviewed by John. · 895eae19
      darin authored
      	- fixed 3144789 -- reproducible crash in KHTMLParser::freeBlock on a page at www.library.arizona.edu
              * khtml/html/htmlparser.cpp: (KHTMLParser::finished): Call freeBlock here rather than
      	waiting until the parser is destroyed. This fixes the bug because when the parser is
              destroyed, the document is already destroyed, so we have a dangling current pointer to an
      	already-destroyed node.
      	- fixed 3142024 -- crash/hang/assert on java.sun.com in HTMLTokenizer
      	The bug was caused by an erroneous clicked signal that was being emitted by
      	QListBox at just the wrong time.
              * kwq/KWQListBox.h: Added _changingSelection boolean.
              * kwq/KWQListBox.mm: (QListBox::QListBox): Set _changingSelection to false.
              (QListBox::setSelected): Set _changingSelection to true.
              (-[KWQListBoxTableViewDelegate tableViewSelectionDidChange:]): Only emit the "clicked"
      	signal if _changingSelection is false.
              * khtml/html/htmltokenizer.h: Add debug-only boolean inWrite.
              * khtml/html/htmltokenizer.cpp: (HTMLTokenizer::HTMLTokenizer): Set inWrite to false.
      	(HTMLTokenizer::write): Set inWrite to true.
      	(HTMLTokenizer::~HTMLTokenizer): Assert that inWrite is not true.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3303 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  7. 11 Jan, 2003 2 commits
    • darin's avatar
      Reviewed by John. · ffe35f4f
      darin authored
      	- fixed 3144479 -- put TITLE from links in status bar
              * WebKit.exp: Add _WebElementLinkTitleKey and also sort this file.
              * WebCoreSupport.subproj/WebImageRenderer.m: Need to touch a file to get the above
      	to have any effect, so update the copyright date here.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3302 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      Reviewed by Dave. · c935e41a
      darin authored
      	- fixed 3136944 -- mouseover feedback over non-mapped part of image map claims
      	link to current page
              * kwq/WebCoreBridge.mm: (-[WebCoreBridge elementAtPoint:]):
      	Change code so we won't call completeURL and complete a null ATTR_HREF (which is distinct
      	from an empty ATTR_HREF). Did a similar cleanup on the image code.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3301 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  8. 10 Jan, 2003 1 commit
    • darin's avatar
      JavaScriptCore: · 33188225
      darin authored
              * JavaScriptCore.pbproj/project.pbxproj: Add the year 2003, remove CFBundleIconFile,
      	bump marketing version to 0.8.1 and version to 52u to keep up with the branch,
      	remove CFHumanReadableCopyright, remove NSPrincipalClass.
              * English.lproj/InfoPlist.strings: Updated to match above changes.
              * WebFoundation.pbproj/project.pbxproj: Add the year 2003, remove CFBundleIconFile,
      	bump marketing version to 0.8.1 and version to 52u to keep up with the branch,
      	remove NSHumanReadableCopyright, remove NSPrincipalClass.
              * English.lproj/InfoPlist.strings: Update to match above.
              * WebCore.pbproj/project.pbxproj: Add the year 2003, remove CFBundleIconFile,
      	bump marketing version to 0.8.1 and version to 52u to keep up with the branch,
      	remove NSHumanReadableCopyright, remove NSPrincipalClass, remove SKIP_INSTALL
      	that was in the Info plist instead of project settings.
              * English.lproj/InfoPlist.strings: Update to match above.
              * WebKit.pbproj/project.pbxproj: Add the year 2003, remove CFBundleIconFile,
      	bump marketing version to 0.8.1 and version to 52u to keep up with the branch,
      	remove CFHumanReadableCopyright, remove NSPrincipalClass.
              * English.lproj/InfoPlist.strings: Updated to match above changes.
              * WebBrowser.pbproj/project.pbxproj: Add 2003 to copyright, bump versions
      	to 0.8.1 and 52u to keep up with the branch.
              * English.lproj/InfoPlist.strings: Update to match above.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3300 268f45cc-cd09-0410-ab3c-d52691b4dbfc