Timeline
Sep 8, 2007:
- 10:31 PM Changeset in webkit [25457] by
-
- 1 edit in trunk/WebCore/WebCore.pro
missed file in previous checkin
- 10:14 PM Changeset in webkit [25456] by
-
- 2 edits2 adds in trunk/WebCore
implement a couple of FileSystem functions and stub out the new thread function
for future implementation
- 8:13 PM Changeset in webkit [25455] by
-
- 4 edits in trunk
2007-09-08 Mark Rowe <mrowe@apple.com>
Build fix for when ENABLE(ICONDATABASE) is not set.
- loader/icon/IconDatabaseNone.cpp: (WebCore::IconDatabase::~IconDatabase):
2007-09-08 Mark Rowe <mrowe@apple.com>
Qt build fix. Move stub method implementations to the right class.
- WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
- 7:50 PM Changeset in webkit [25454] by
-
- 4 edits in trunk/WebCore
2007-09-08 Mark Rowe <mrowe@apple.com>
More fixes for the Qt and Gtk builds.
- WebCore.pro: Update for file changes.
- loader/icon/IconDatabase.cpp: Include errno.h for EDEADLK.
- loader/icon/PageURLRecord.h:
- 5:22 PM Changeset in webkit [25453] by
-
- 4 edits2 adds2 deletes in trunk
WebCore:
Backing my change back in without the changes to VisiblePosition::next
and previous that weren't necessary to fix the bug and were causing some
layout test failures. Most of the failures appeared to be fixes but I
want more time to investigate and have to move to on to another task.
- editing/Selection.cpp: (WebCore::Selection::validate):
- editing/visible_units.cpp: (WebCore::endOfWord):
LayoutTests:
Re-enabling these tests.
- editing/selection/5057506-2.html: Added.
- editing/selection/5057506-2.html-disabled: Removed.
- editing/selection/5057506.html: Added.
- editing/selection/5057506.html-disabled: Removed.
- 4:15 PM Changeset in webkit [25452] by
-
- 2 edits in trunk/WebCore
Reviewed by Mark Rowe
Fix the _NSAutoreleaseNoPool() errors on launch - We were using NSFileManager on the secondary
thread with no NSAutoreleasePool in place
- loader/icon/IconDatabase.cpp: (WebCore::IconDatabase::iconDatabaseSyncThread):
- 3:45 PM Changeset in webkit [25451] by
-
- 3 edits in trunk/WebCore
Add fix to the correct file.
- loader/icon/SQLDatabase.h:
- loader/icon/SQLStatement.h:
- 3:25 PM Changeset in webkit [25450] by
-
- 2 edits in trunk/WebCore
Fix Windows build.
- loader/icon/SQLStatement.h: Disable boolean conversion warning.
- 2:45 PM Changeset in webkit [25449] by
-
- 1 copy in tags/Safari-4523.5
New tag.
- 2:44 PM Changeset in webkit [25448] by
-
- 2 edits in trunk/WebKitQt
YABF (Yet Another Build Fix)
- Api/qwebsettings.cpp: (QWebSettings::iconDatabaseEnabled):
- 2:35 PM Changeset in webkit [25447] by
-
- 3 edits in trunk/WebKit/gtk
Better build fix
- WebCoreSupport/FrameLoaderClientGtk.cpp: (WebKit::FrameLoaderClient::registerForIconNotification):
- WebCoreSupport/FrameLoaderClientGtk.h:
- 2:30 PM Changeset in webkit [25446] by
-
- 3 edits in trunk/WebKitQt
Better build fix
- WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClient::registerForIconNotification):
- WebCoreSupport/FrameLoaderClientQt.h:
- 2:24 PM Changeset in webkit [25445] by
-
- 3 edits in trunk/WebKit/gtk
Build fix
- WebCoreSupport/FrameLoaderClientGtk.cpp: (WebKit::FrameLoaderClient::registerForIconNotification):
- WebCoreSupport/FrameLoaderClientGtk.h:
- 2:19 PM Changeset in webkit [25444] by
-
- 3 edits in trunk/WebKitQt
Build fix
- WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClient::registerForIconNotification):
- WebCoreSupport/FrameLoaderClientQt.h:
- 2:09 PM Changeset in webkit [25443] by
-
- 2 edits in trunk/WebCore
Build fix for non-Mac platforms that use Icon Database
- loader/icon/IconDatabase.cpp: (WebCore::IconDatabase::IconDatabase): Apparently only Mac has the beauty that is pthread_main_np()
- 1:58 PM Changeset in webkit [25442] by
-
- 4 edits in trunk
Versioning.
- 1:57 PM Changeset in webkit [25441] by
-
- 1 copy in tags/Safari-5523.5
New tag.
- 1:48 PM Changeset in webkit [25440] by
-
- 2 edits in trunk/WebCore
2007-09-08 Mark Rowe <mrowe@apple.com>
Build fix.
- WebCore.xcodeproj/project.pbxproj: Headers used up in WebKit need to be be "private" rather than "project".
- 1:33 PM Changeset in webkit [25439] by
-
- 28 edits9 adds2 deletes in trunk
WebCore:
Reviewed by Darin
<rdar://problem/5434431> - Asynchronous Icon Database
The IconDatabase API was originally designed to be fully asynchronous - if an icon wasn't read in from disk
when you asked for it, you would be notified when it was.
Safari 2 did writes on a background thread, but reads blocked the main thread.
The current WebCore implementation using SQLite attempted to get rid of the background thread by defering expensive
writes via timers, but falls short in moderate to extreme usage cases
Time to make the IconDatabase live up to it's fully asynchronous destiny.
This should -
- Make the browser instantly usable while converting Safari 2 icons in the background occurs
- Remedy any UI slowness/blocking when on slow network home directories
- Remedy random UI slowness, pauses, and stutters do to random I/O occurring at the exact wrong time or under heavy disk usage from swapping or other apps on the system
- Allow certain long-running procedures to be interruptible (Safari 2 import, reading icons in from disk when trying to quit, etc)
This will have a noticeable effect on current Safari 2 and Safari 3 beta browsers, including icons not appearing in bookmarks, history,
or the location field the first time they're asked for, as current released Safari's don't properly listen for these async notifations.
The second time such a menu or view is brought up, the icon should be there.
Additionally this includes a SQLite schema change which will be a lot more efficient but will result in the loss of current SQLite icons.
Converting from Safari 2 style icons will still work.
WebCore, welcome to multi-threadedness
- WebCore.exp:
- WebCore.xcodeproj/project.pbxproj:
- WebCore.vcproj/WebCore.vcproj:
- loader/DocumentLoader.cpp: (WebCore::DocumentLoader::iconLoadDecisionAvailable): Called when an Icon becomes available that was requested by this DocumentLoader (to support the webView:didReceiveIcon: delegate call in WebKit)
- loader/DocumentLoader.h:
- loader/FrameLoader.cpp: (WebCore::FrameLoader::iconLoadDecisionAvailable): Called from the DocumentLoaders who get notified - if the FrameLoader ends up not caring because the WebView has transitioned to a new page, nothing occurs. Otherwise, the FrameLoader possibly starts it Icon Loader and possibly sends the webView:didReceiveIcon: delegate call (WebCore::FrameLoader::startIconLoader): Instead of "Yes, load the icon now" or "No, don't load it" there is a third possibility - "You might be asked to load your icon later." Add supporting logic for receiving this state, and being called a second time when the load decision is finally available.
- loader/FrameLoader.h:
- loader/FrameLoaderClient.h: Added "registerForIconNotification" which is a way to tell WebViews "The icon you are interested in might become available via the generic WebIconDatabaseDidAddIconNotification instead of a targeted delegate call" A WebView can then receive the generic notification and pass on it's own targeted delegate call.
- loader/icon/IconDataCache.cpp: Removed.
- loader/icon/IconDataCache.h: Removed.
- loader/icon/IconDatabase.cpp: (WebCore::urlForLogging): Cut a URL down in length for sane logging and debugging (WebCore::defaultClient): Return the default, empty IconDatabaseClient incase the API doesn't set one.
Following block of methods are for the Main thread's usage -
(WebCore::IconDatabase::setClient):
(WebCore::makeAllDirectories): Small optimization that checks to see if the entire path exists already, and doesn't try to loop
through each patch component if the full path is already present
(WebCore::IconDatabase::open): Makes all directories to the target path and kicks off the background thread - nothing more.
(WebCore::IconDatabase::close): Signals the thread to quit and waits for it to do so
(WebCore::IconDatabase::removeAllIcons): Purge the icon database
(WebCore::IconDatabase::iconForPageURL):
(WebCore::IconDatabase::readIconForPageURLFromDisk):
(WebCore::IconDatabase::iconURLForPageURL):
(WebCore::IconDatabase::defaultIcon):
(WebCore::IconDatabase::retainIconForPageURL):
(WebCore::IconDatabase::releaseIconForPageURL):
(WebCore::IconDatabase::setIconDataForIconURL):
(WebCore::IconDatabase::setIconURLForPageURL):
(WebCore::IconDatabase::loadDecisionForIconURL): Determine if an icon loader should load now. If the decision is "maybe later", then
mark the DocumentLoader to be notified later when the final decision is available.
(WebCore::IconDatabase::iconDataKnownForIconURL): Determine if the actual image data has been read from disk (or set from the loader) for
icon URL in question
(WebCore::IconDatabase::setEnabled):
(WebCore::IconDatabase::isEnabled):
(WebCore::IconDatabase::setPrivateBrowsingEnabled):
(WebCore::IconDatabase::isPrivateBrowsingEnabled):
(WebCore::IconDatabase::delayDatabaseCleanup): Restore this method from a year ago, as asynchronous pruning of icons can now occur on a
background thread.
(WebCore::IconDatabase::allowDatabaseCleanup):
(WebCore::IconDatabase::checkIntegrityBeforeOpening):
(WebCore::IconDatabase::pageURLMappingCount):
(WebCore::IconDatabase::retainedPageURLCount):
(WebCore::IconDatabase::iconRecordCount):
(WebCore::IconDatabase::iconRecordCountWithData):
(WebCore::IconDatabase::IconDatabase):
(WebCore::IconDatabase::~IconDatabase):
(WebCore::IconDatabase::notifyPendingLoadDecisions): Tell all the registered DocumentLoaders "Hey, we've read in all URL mappings from disk,
so check to see if you are interested in any of them"
(WebCore::IconDatabase::notifyPendingLoadDecisionsInternal):
(WebCore::IconDatabase::wakeSyncThread): Wake the sync thread, if it is idle
(WebCore::IconDatabase::scheduleOrDeferSyncTimer): Even though we're on a background thread, we still defer writing out to disk during
periods of high activity
(WebCore::IconDatabase::syncTimerFired): Call wakeSyncThread()
Following block of methods may be used by either thread -
(WebCore::IconDatabase::isOpen):
(WebCore::IconDatabase::databasePath):
(WebCore::IconDatabase::defaultDatabaseFilename):
(WebCore::IconDatabase::getOrCreateIconRecord):
(WebCore::IconDatabase::getOrCreatePageURLRecord):
Following block of methods are used by the secondary thread only -
(WebCore::IconDatabase::importIconURLForPageURL): For the Safari 2 import procedure - write a URL mapping directly out to disk
(WebCore::IconDatabase::importIconDataForIconURL): For the Safari 2 import procedure - write an Icon directly out to disk
(WebCore::IconDatabase::shouldStopThreadActivity): To check and see if the thread should stop what it is doing now to do something
more important (such as quit, or delete all icons)
(WebCore::IconDatabase::iconDatabaseSyncThreadStart):
(WebCore::IconDatabase::iconDatabaseSyncThread): Entry point for the background thread
(WebCore::databaseVersionNumber):
(WebCore::isValidDatabase):
(WebCore::createDatabaseTables):
(WebCore::IconDatabase::performOpenInitialization): Open and validate the SQLite database, making sure it's schema jives with what
is expected
(WebCore::IconDatabase::checkIntegrity):
(WebCore::IconDatabase::performURLImport): Import all the Page URL -> Icon URL mappings from the database. Done "1st thing" on startup,
this is necessary to be able to give the loader decisions about whether or not it should load icons from the network
(WebCore::IconDatabase::syncThreadMainLoop): Main loop - sleeps until woken up, then does a read cycle and a write cycle until both cycles
do no work - then it goes back to sleep.
(WebCore::IconDatabase::readFromDatabase): Reads icons from the database that clients are waiting on
(WebCore::IconDatabase::writeToDatabase): Writes any changes page -> icon url mappings to disk, as well as any new image data that has
been received from the loader
(WebCore::IconDatabase::pruneUnretainedIcons): Done only once, and only after the first write to the database, this procedure removes all
icons and page URLs from disk that haven't been retained by any client. Note that the prune can be delayed by utilizing delayDatabaseCleanup()
(WebCore::IconDatabase::checkForDanglingPageURLs): Usually part of the prune procedure, prunes any pages who point to icons that no longer exist
in the database
(WebCore::IconDatabase::removeAllIconsOnThread): Completely purge both the on-disk and in memory records of all icons
(WebCore::IconDatabase::deleteAllPreparedStatements): Part of removeAllIcons and the thread cleanup procedure
(WebCore::IconDatabase::cleanupSyncThread): Write out any last remaining writes to disk, close the database, and then end the thread
(WebCore::IconDatabase::imported): Checks the DB to see if the Safari 2 import has occured
(WebCore::IconDatabase::setImported): Sets the "Safari 2 imported" flag
(WebCore::readySQLStatement):
(WebCore::IconDatabase::setIconURLForPageURLInSQLDatabase): This and the following "SQLDatabase" suffixed methods are pretty self explanatory
(WebCore::IconDatabase::setIconIDForPageURLInSQLDatabase):
(WebCore::IconDatabase::removePageURLFromSQLDatabase):
(WebCore::IconDatabase::getIconIDForIconURLFromSQLDatabase):
(WebCore::IconDatabase::addIconURLToSQLDatabase):
(WebCore::IconDatabase::getImageDataForIconURLFromSQLDatabase):
(WebCore::IconDatabase::removeIconFromSQLDatabase):
(WebCore::IconDatabase::writeIconSnapshotToSQLDatabase):
- loader/icon/IconDatabase.h:
- loader/icon/IconDatabaseClient.h: Added. (WebCore::IconDatabaseClient::~IconDatabaseClient): (WebCore::IconDatabaseClient::performImport): Perform the Safari 2 import, implemented by WebKit (WebCore::IconDatabaseClient::dispatchDidRemoveAllIcons): Send the API notification (WebCore::IconDatabaseClient::dispatchDidAddIconForPageURL): Ditto
- loader/icon/IconDatabaseNone.cpp: Best attempt to keep non icon-DB platforms building (WebCore::IconDatabase::defaultDatabaseFilename): (WebCore::IconDatabase::readIconForPageURLFromDisk): (WebCore::IconDatabase::loadDecisionForIconURL): (WebCore::IconDatabase::iconDataKnownForIconURL): (WebCore::IconDatabase::setIconURLForPageURL): (WebCore::IconDatabase::isEnabled): (WebCore::IconDatabase::delayDatabaseCleanup): (WebCore::IconDatabase::allowDatabaseCleanup): (WebCore::IconDatabase::setClient):
- loader/icon/IconRecord.cpp: Added. (WebCore::IconRecord::IconRecord): IconRecord used to be "IconDataCache" - it is merely a container for the url, timestamp, and image for a site icon. It is Shared, and therefore ref counted - PageURLRecords are the owning containers. This is a tricky way to track how many page urls are retaining an IconRecord and therefore tracking when we should try to get rid of one. (WebCore::IconRecord::~IconRecord): (WebCore::IconRecord::image): (WebCore::IconRecord::setImageData): (WebCore::IconRecord::loadImageFromResource): (WebCore::IconRecord::imageDataStatus): Return whether the image data hasn't been read yet, exists in memory, or is absent (site with no icon) (WebCore::IconRecord::snapshot): Returns a snapshot of the icon's data - url, timestamp, and image data - to be written to disk
- loader/icon/IconRecord.h: Added. (WebCore::IconSnapshot::IconSnapshot): (WebCore::IconRecord::getTimestamp): (WebCore::IconRecord::setTimestamp): (WebCore::IconRecord::iconURL): (WebCore::IconRecord::retainingPageURLs):
- loader/icon/PageURLRecord.cpp: Added. (WebCore::PageURLRecord::PageURLRecord): PageURLRecord is fundamentally a pairing of a Page URL to an Icon. It has manual ref counting for the sake of "retainIconForPageURL" and "releaseIconForPageURL", and can provide a quick snapshot of it's Page URL -> Icon URL mapping for writing to the database (WebCore::PageURLRecord::setIconRecord): (WebCore::PageURLRecord::snapshot):
- loader/icon/PageURLRecord.h: Added. (WebCore::PageURLSnapshot::PageURLSnapshot): (WebCore::PageURLRecord::url): (WebCore::PageURLRecord::PageURLRecord::iconRecord): (WebCore::PageURLRecord::retain): (WebCore::PageURLRecord::release): (WebCore::PageURLRecord::retainCount):
- platform/SharedBuffer.cpp: (WebCore::SharedBuffer::copy): Added a deep copy method for the purposes of handing icon data across the thread boundary into the icon database
- platform/SharedBuffer.h:
- platform/graphics/svg/SVGImageEmptyClients.h: (WebCore::SVGEmptyFrameLoaderClient::registerForIconNotification):
- platform/win/TemporaryLinkStubs.cpp: (WebCore::callOnMainThread): Only other IconDatabase utilizing platform - keep their build going
WebKit:
Reviewed by Darin
<rdar://problem/5434431> - Asynchronous Icon Database
WebKit side of things
Mainly, there are Notifications WebKit has to listen for now that tell it when to either call back into WebCore
for some purpose or to send the webView:didReceiveIcon: delegate call
Many smaller tweaks as well.
- Misc/WebIconDatabase.h:
- Misc/WebIconDatabase.mm: (defaultClient): (-[WebIconDatabase init]): (+[WebIconDatabase delayDatabaseCleanup]): Accessor so clients can prevent the thread from cleaning up the database before they've done all their necessary retaining of icons. (+[WebIconDatabase allowDatabaseCleanup]): (-[WebIconDatabase removeAllIcons]): (-[WebIconDatabase _isEnabled]): (-[WebIconDatabase _sendNotificationForURL:]): (-[WebIconDatabase _sendDidRemoveAllIconsNotification]): (-[WebIconDatabase _databaseDirectory]):
(-[ThreadEnabler threadEnablingSelector:]): Quick and dirty class to enabled Cocoa multithreading
(+[ThreadEnabler enableThreading]):
(importToWebCoreFormat):
- Misc/WebIconDatabaseInternal.h: Expose the internal methods of WebIconDatabase that are required by WebIconDatabaseClient
- Misc/WebNSNotificationCenterExtras.h: Added. - Great utility class whose design was borrowed from Colloquy that allows the posting of a Cocoa notification on the main thread from *any* thread
- Misc/WebNSNotificationCenterExtras.m: Added. (-[NSNotificationCenter postNotificationOnMainThreadWithName:object:]): (-[NSNotificationCenter postNotificationOnMainThreadWithName:object:userInfo:]): (-[NSNotificationCenter postNotificationOnMainThreadWithName:object:userInfo:waitUntilDone:]): (+[NSNotificationCenter _postNotificationName:]):
- WebCoreSupport/WebFrameLoaderClient.h:
- WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::dispatchDidReceiveIcon): Send the webView:didReceiveIcon: delegate call (WebFrameLoaderClient::registerForIconNotification):
- WebCoreSupport/WebIconDatabaseClient.h: Added.
- WebCoreSupport/WebIconDatabaseClient.mm: Added. (WebIconDatabaseClient::performImport): Perform the Safari 2 icon import (WebIconDatabaseClient::dispatchDidRemoveAllIcons): Send the NSNotification (WebIconDatabaseClient::dispatchDidAddIconForPageURL): Ditto
- WebView/WebView.mm: (-[WebView _receivedIconChangedNotification:]): Check and see if this notification is for this WebView's current URL by calling back into the IconDatabase (-[WebView _registerForIconNotification:]): Support for WebIconDatabaseClient (-[WebView _dispatchDidReceiveIconFromWebFrame:]): Dispatch this delegate call as well as unregister for the notification
- WebView/WebViewInternal.h:
- WebKit.xcodeproj/project.pbxproj:
win:
<rdar://problem/5434431> - Asynchronous Icon Database
- WebFrame.cpp: (WebFrame::didPerformFirstNavigation): Empty impl for now (WebFrame::registerForIconNotification): Ditto
- WebFrame.h:
Sep 7, 2007:
- 9:00 PM Changeset in webkit [25438] by
-
- 1 edit in trunk/LayoutTests/ChangeLog
Spell Sams name correctly.
- 8:59 PM Changeset in webkit [25437] by
-
- 1 edit42 deletes in trunk/LayoutTests
RS=Same
r25382 moved a number of tests from platform/mac back to the cross-platform
directories, but did not commit the platform/mac changes themselves.
This patch actually does.
- platform/mac/editing/execCommand/nsresponder-outdent-expected.txt: Removed.
- platform/mac/editing/execCommand/nsresponder-indent-expected.checksum: Removed.
- platform/mac/editing/execCommand/nsresponder-outdent-expected.checksum: Removed.
- platform/mac/editing/execCommand/nsresponder-indent-expected.png: Removed.
- platform/mac/editing/execCommand/nsresponder-outdent-expected.png: Removed.
- platform/mac/editing/execCommand/nsresponder-indent.html: Removed.
- platform/mac/editing/execCommand/nsresponder-outdent.html: Removed.
- platform/mac/editing/execCommand/nsresponder-indent-expected.txt: Removed.
- platform/mac/editing/selection/5195166-1-expected.png: Removed.
- platform/mac/editing/selection/5195166-2-expected.png: Removed.
- platform/mac/editing/selection/select-line-expected.txt: Removed.
- platform/mac/editing/selection/selection-actions-expected.checksum: Removed.
- platform/mac/editing/selection/selection-actions.html: Removed.
- platform/mac/editing/selection/4947387-expected.txt: Removed.
- platform/mac/editing/selection/4947387-expected.png: Removed.
- platform/mac/editing/selection/5195166-1-expected.checksum: Removed.
- platform/mac/editing/selection/5195166-2-expected.checksum: Removed.
- platform/mac/editing/selection/selection-actions-expected.txt: Removed.
- platform/mac/editing/selection/5195166-1.html: Removed.
- platform/mac/editing/selection/5195166-2.html: Removed.
- platform/mac/editing/selection/selection-actions-expected.png: Removed.
- platform/mac/editing/selection/select-line.html: Removed.
- platform/mac/editing/selection/4947387-expected.checksum: Removed.
- platform/mac/editing/selection/5195166-1-expected.txt: Removed.
- platform/mac/editing/selection/4947387.html: Removed.
- platform/mac/editing/selection/5195166-2-expected.txt: Removed.
- platform/mac/editing/deleting/smart-delete-003-expected.checksum: Removed.
- platform/mac/editing/deleting/smart-delete-004-expected.checksum: Removed.
- platform/mac/editing/deleting/smart-delete-003.html: Removed.
- platform/mac/editing/deleting/smart-delete-004.html: Removed.
- platform/mac/editing/deleting/5300379-expected.checksum: Removed.
- platform/mac/editing/deleting/delete-to-end-of-paragraph-expected.checksum: Removed.
- platform/mac/editing/deleting/5300379.html: Removed.
- platform/mac/editing/deleting/delete-to-end-of-paragraph.html: Removed.
- platform/mac/editing/deleting/smart-delete-003-expected.txt: Removed.
- platform/mac/editing/deleting/smart-delete-004-expected.txt: Removed.
- platform/mac/editing/deleting/5300379-expected.txt: Removed.
- platform/mac/editing/deleting/smart-delete-003-expected.png: Removed.
- platform/mac/editing/deleting/delete-to-end-of-paragraph-expected.txt: Removed.
- platform/mac/editing/deleting/smart-delete-004-expected.png: Removed.
- platform/mac/editing/deleting/5300379-expected.png: Removed.
- platform/mac/editing/deleting/delete-to-end-of-paragraph-expected.png: Removed.
- 8:24 PM Changeset in webkit [25436] by
-
- 1 edit17 adds in trunk/LayoutTests
Reviewed by Sam.
Re-adding a few mac specific directories that accidentally got clobbered
during my recent layout test rearranging
- platform/mac/editing/input: Added.
- platform/mac/editing/input/hangul-enter-confirms-and-sends-keypress-expected.txt: Added.
- platform/mac/editing/input/hangul-enter-confirms-and-sends-keypress.html: Added.
- platform/mac/editing/input/hangul.js: Added.
- platform/mac/editing/input/kotoeri-enter-to-confirm-and-newline-expected.txt: Added.
- platform/mac/editing/input/kotoeri-enter-to-confirm-and-newline.html: Added.
- platform/mac/editing/input/kotoeri.js: Added.
- platform/mac/editing/input/logger.js: Added.
- platform/mac/fast/AppleScript: Added.
- platform/mac/fast/AppleScript/001-expected.txt: Added.
- platform/mac/fast/AppleScript/001.html: Added.
- platform/mac/fast/AppleScript/array-expected.txt: Added.
- platform/mac/fast/AppleScript/array.html: Added.
- platform/mac/fast/AppleScript/date-expected.txt: Added.
- platform/mac/fast/AppleScript/date.html: Added.
- platform/mac/fast/objc: Added.
- platform/mac/fast/objc/longlongTest-expected.txt: Added.
- platform/mac/fast/objc/longlongTest.html: Added.
- 8:10 PM Changeset in webkit [25435] by
-
- 2 edits1 delete in trunk/WebCore
WebCore:
Reviewed by Timothy Hatcher.
Housekeeping. No test required.
- bindings/objc/WebScriptObjectInternal.h: Removed unused file.
- bindings/objc/WebScriptObjectPrivate.h: Updated copyright statement.
- 7:31 PM Changeset in webkit [25434] by
-
- 6 edits2 adds2 deletes in trunk
WebCore:
Rolling out my changes from r25421 while I investigate the layout test failures
they caused.
- editing/Selection.cpp: (WebCore::Selection::validate):
- editing/VisiblePosition.cpp: (WebCore::VisiblePosition::next): (WebCore::VisiblePosition::previous): (WebCore::VisiblePosition::lastEditablePositionAtOrBefore): (WebCore::VisiblePosition::firstEditablePositionAtOrAfter):
- editing/VisiblePosition.h:
- editing/visible_units.cpp: (WebCore::endOfWord): (WebCore::previousWordPosition): (WebCore::nextWordPosition): (WebCore::startOfLine): (WebCore::endOfLine): (WebCore::previousSentencePosition): (WebCore::nextSentencePosition):
LayoutTests:
Disabling the layout tests checked in with r25421 while I investigate
some layout test failures that that change caused.
- editing/selection/5057506-2.html: Removed.
- editing/selection/5057506-2.html-disabled: Added.
- editing/selection/5057506.html: Removed.
- editing/selection/5057506.html-disabled: Added.
- 7:23 PM Changeset in webkit [25433] by
-
- 2 edits in trunk/LayoutTests
- platform/win/Skipped: Remove a duplicate test.
- 6:40 PM Changeset in webkit [25432] by
-
- 2 edits in trunk/WebKit
Suggested by Maciej Stachowiak.
Added wKiosk Browser to the browser list. Pretty sweet app.
- WebView/WebPreferences.m: (cacheModelForMainBundle):
- 6:17 PM Changeset in webkit [25431] by
-
- 2 edits in trunk/WebKit
Build fix.
- WebView/WebView.mm: (+[WebView _setCacheModel:]):
- 5:40 PM Changeset in webkit [25430] by
-
- 25 edits in trunk
gtk:
Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no
memory cache, or a very tiny one
Keep the GTK build working with an empty stub.
- WebCoreSupport/FrameLoaderClientGtk.cpp: (WebKit::FrameLoaderClient::didPerformFirstNavigation):
- WebCoreSupport/FrameLoaderClientGtk.h:
WebCore:
Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no
memory cache, or a very tiny one
Added a client callback to notify WebKit when the first navigation has
taken place. "Navigation" here means a transition from one page to
another that ends up in the back/forward list.
WebKit Mac uses this notification to grow its cache model under certain
circumstances.
- loader/FrameLoader.cpp: (WebCore::FrameLoader::addBackForwardItemClippedAtTarget):
- loader/FrameLoaderClient.h:
- platform/graphics/svg/SVGImageEmptyClients.h: (WebCore::SVGEmptyFrameLoaderClient::didPerformFirstNavigation): Ah, SVGEmptyFrameLoaderClient, my old friend.
WebKit:
Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no
memory cache, or a very tiny one
High level explanation:
- Added SPI for specifying a cache model on a per-WebView basis. (Hopefully, this will become API soon.) We balance competing cache models simply by using the largest one that pertains at a given time.
- Added heuristic for guessing a default cache model in WebViews that don't specify one:
1) Default to DocumentViewer for apps linked on or after this
WebKit. Default to DocumentBrowser otherwise.
2) Assign specific defaults to well-known clients based on
bundle ID.
3) Grow the default to DocumentBrowser if a navigation takes
place.
- As a part of the DocumentBrowser & PrimaryWebBrowser settings:
1) Make the Foundation disk cache much much bigger than the
default 20MB, if space allows. (This is a hedge against a small
WebCore cache in DocumentBrowser mode, but also an all-around
win for page load speed.)
2) Scaled the Foundation memory cache's capacity with physical
RAM, just like we do with other caches. This is a small win on
low memory systems.
- Misc/WebKitSystemBits.h:
- Misc/WebKitSystemBits.m: (WebMemorySize): Renamed from "WebSystemMainMemory." (WebHomeDirectoryFreeSize): Added function to measure the free space on the user's home directory. We use this as a factor in determining the disk cache's cacpacity.
- Misc/WebKitVersionChecks.h: Support for linked on or after check.
- WebCoreSupport/WebFrameLoaderClient.h:
- WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::didPerformFirstNavigation): Implementation of heuristic rule #3.
- WebView/WebPreferenceKeysPrivate.h:
- WebView/WebPreferences.m: (cacheModelForMainBundle): Implementation of heuristic rule #2. (-[NSMutableDictionary _web_checkLastReferenceForIdentifier:]): Added notification for when a WebPreferences instance becomes inert. We use this to shrink the cache model back down if possible. Moved this code into a WebPreferences method, since it's not really a feature of NSDictionary.
- WebView/WebPreferencesPrivate.h: SPI declarations.
- WebView/WebView.mm: Replaced manual notification posts with calls to the _postPreferencesChangesNotification convenience method.
(-[WebView _preferencesChangedNotification:]): Merged dispersed code
for updating preferences-related settings into this one function. This
was needed for an earlier version of the patch, even though the
current version could probably do without it.
(+[WebView _preferencesChangedNotification:]): Added a class-level
listener for WebPreferences changes. This listener takes care of
modifying the class-level global cache model setting if necessary.
(+[WebPreferences standardPreferences]): Removed call to
_postPreferencesChangesNotification because the notification already
posts when you create the WebPreferences object. (I noticed this
inefficiency because my new _preferencesChangedNotification: method was
called excessively at startup.)
Also Added explicit tracking of WebPreferences clients, so we know when
a WebPreferences instance becomes inert:
(-[WebPreferences didRemoveFromWebView]):
(-[WebPreferences willAddToWebView]):
(+[WebView _setCacheModel:]): Translates a cache model into actual
settings in various APIs. Caches that have unbounded value grow
linearly relative to available space. Caches that have bounded value
grow inverse-squaredly relative to available space.
WebKitQt:
Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no
memory cache, or a very tiny one
Keep the Qt build working with an empty stub.
- WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClient::didPerformFirstNavigation):
- WebCoreSupport/FrameLoaderClientQt.h:
win:
Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no
memory cache, or a very tiny one
Keep the Windows build working with an empty stub.
- WebFrame.cpp: (FrameLoaderClient::didPerformFirstNavigation):
- WebFrame.h:
- 4:53 PM Changeset in webkit [25429] by
-
- 6 edits2 adds in trunk
WebCore:
Reviewed by Dave Harrison.
Fix for <rdar://problem/5428427> Wrong characters are re-converted after doing reconversion with Kotoeri
Revert change for<rdar://problem/5279521> and add nil checks for the result of TextIterator::rangeFromLocationAndLength
TextIterator::exitNode shouldn't require the m_lastTextNode to be true, but we can't change that without making the logic in _web_attributedStringFromRange match.
We'll get that for free when we switch to use TextIterator in _web_attributedStringFromRange.
- editing/ApplyStyleCommand.cpp: (WebCore::ApplyStyleCommand::applyBlockStyle): Added nil checks.
- editing/IndentOutdentCommand.cpp: (WebCore::IndentOutdentCommand::indentRegion): ditto.
- editing/TextIterator.cpp: (WebCore::TextIterator::exitNode): Re-added check for m_lastTextNode before emitting newline.
LayoutTests:
Reviewed by Dave Harrison.
Tests for <rdar://problem/5428427> Wrong characters are re-converted after doing reconversion with Kotoeri
- platform/mac/fast/text/attributed-substring-from-range-002-expected.txt: Added.
- platform/mac/fast/text/attributed-substring-from-range-002.html: Added.
- fast/forms/textarea-type-spaces-expected.txt: Revert back to old result.
- 4:45 PM Changeset in webkit [25428] by
-
- 2 edits in trunk/WebKit/win
Need to let the OS handle Alt+F4.
Reviewed by Hyatt.
- WebView.cpp: (WebView::keyUp): (WebView::keyDown):
- 3:46 PM Changeset in webkit [25427] by
-
- 2 edits in trunk/WebKit/win
Reviewed by Oliver.
<rdar://problem/5461487>
Seed: Embedded media content (Flash Player 9) inside RSS reported as unknown MIME type.
Don't return ObjectContentNone if the URL's extension can't be mapped to a MIME type. If the MIME type is empty,
we will try to display the content in a subframe instead, just like Mac WebKit.
- WebFrame.cpp: (WebFrame::objectContentType):
- 3:39 PM Changeset in webkit [25426] by
-
- 6 edits in trunk
<rdar://problem/5395928> Need to be able to handle context menu item selection by index
Reviewed by Beth.
WebCore:
- platform/ContextMenu.h: Added method to retrieve context menu item by index
- platform/win/ContextMenuWin.cpp: (WebCore::ContextMenu::ContextMenu): call setPlatformDescription() since that will handle adding the MNS_NOTIFYBYPOS style to the context menu. (WebCore::contextMenuItemByIdOrPosition): helper method so we don't have to duplicate code between itemWithAction() and itemAtIndex(). (WebCore::ContextMenu::itemWithAction): (WebCore::ContextMenu::itemAtIndex): (WebCore::ContextMenu::setPlatformDescription): add MNS_NOTIFYBYPOS style to the context menu so we will get notified by menu position through WM_MENUCOMMAND when the item is selected.
WebKit/win:
- WebView.cpp: (WebView::performContextMenuAction): performContextMenuAction() can now handle context menu item selection via WM_MENUCOMMAND (by specifying byPosition to be true). In that case, we get the ContextMenuItem by position rather than by action id. (WebViewWndProc): handle WM_MENUCOMMAND
- WebView.h:
- 3:01 PM Changeset in webkit [25425] by
-
- 4 edits in trunk
WebKitTools:
Reviewed by Alice.
Strip trailing and leading space/newline characters from skiplist file names.
- Scripts/run-webkit-tests:
LayoutTests:
- platform/win/Skipped: fix typo
- 2:39 PM Changeset in webkit [25424] by
-
- 2 edits in trunk/LayoutTests
- platform/win/Skipped: removing a duplicated test
- 2:34 PM Changeset in webkit [25423] by
-
- 2 edits in trunk/LayoutTests
- platform/win/Skipped: moved a bunch of editing tests that actually succeed in both Debug and Release into a section at the end of the skip list. The reason I'm not just removing these tests from the skip list right now is because the windows bots are not stable and green yet, and I was asked to do this removal at a later time when regressions are easier to spot.
- 12:42 PM Changeset in webkit [25422] by
-
- 2 edits in trunk/JavaScriptCore
Reviewed by Steve Falkenburg.
- fix crash seen on Windows release builds
- wtf/FastMalloc.cpp: Change pthread_getspecific optimization to be done only on the DARWIN platform. Also correct a couple reinterpret_cast that should be static_cast instead.
- 12:18 PM Changeset in webkit [25421] by
-
- 7 edits8 adds in trunk
WebCore:
Reviewed by Darin.
<rdar://problem/5057506> Double-clicking after ToDo content doesn't select the paragraph break
- editing/Selection.cpp: (WebCore::Selection::validate): Moved the code that moves across a paragraph boundary when expanding selections by word granularity from endOfWord to here. In the word and paragraph granularity cases, if the end of the selection is at the end of the last paragraph in the last cell of a block table, expand it so that it ends at the start of the paragraph after the table, instead of just after the table, so that ToDo content gets the same double/tripled click behavior that normal paragraphs get (added two testcases). When expanding the selection to include paragraph breaks, pass VisiblePosition::next true so that it doesn't change editability.
- editing/VisiblePosition.cpp: (WebCore::VisiblePosition::next): Renamed the bool because it's now also used to keep non-editable positions non-editable. (WebCore::VisiblePosition::previous): Ditto. (WebCore::VisiblePosition::lastPositionWithSameEditabilityAtOrBefore): Renamed this function and made it also work with non-editable positions. (WebCore::VisiblePosition::firstPositionWithSameEditabilityAtOrAfter): Ditto.
- editing/VisiblePosition.h:
- editing/visible_units.cpp: (WebCore::endOfWord): Called the renamed function. (WebCore::previousWordPosition): Ditto. (WebCore::nextWordPosition): Ditto. (WebCore::startOfLine): Ditto. (WebCore::endOfLine): Ditto. (WebCore::previousSentencePosition): Ditto. (WebCore::nextSentencePosition): Ditto.
LayoutTests:
Reviewed by Darin.
<rdar://problem/5333725> -webkit-user-select: none makes selection difficult
- editing/selection/5057506-2.html: Added.
- editing/selection/5057506.html: Added.
- platform/mac/editing/selection/5057506-2-expected.checksum: Added.
- platform/mac/editing/selection/5057506-2-expected.png: Added.
- platform/mac/editing/selection/5057506-2-expected.txt: Added.
- platform/mac/editing/selection/5057506-expected.checksum: Added.
- platform/mac/editing/selection/5057506-expected.png: Added.
- platform/mac/editing/selection/5057506-expected.txt: Added.
- 12:07 PM Changeset in webkit [25420] by
-
- 1 edit in trunk/WebKit/WebCoreSupport/WebDragClient.mm
Attempt to fix the PPC build.
- 12:04 PM Changeset in webkit [25419] by
-
- 3 edits in trunk/WebCore
Reviewed by Sam
<rdar://problem/5089241> - ASSERT and other funky effects in IconLoader with large 404 pages
There were two problems:
1 - I originally didn't expect SubresourceLoader to keep pulling in data after it received a 404 response,
but if the server sends back a complex 404 page, the loader did just that. That could result in the
IconLoader "finishing" twice
2 - In this case, the long messy 404 page would be committed to the database as image data. This would
result in wasted space on disk, wasted space in RAM, and wasting processor time trying to parse 50k+
of HTML as image data
Fix is two parts - 1, monitor the "m_loadIsInProgress" flag and 2, make ::finishLoading() take an actual
SharedBuffer argument that is what should be committed to the database so the ResourceHandle is unnecessary
- loader/icon/IconLoader.cpp: (WebCore::IconLoader::didReceiveResponse): If the response is not valid, commit null data (WebCore::IconLoader::didFail): If we've already finished loading once (the 404 response), don't finish again! (WebCore::IconLoader::didFinishLoading): Ditto (WebCore::IconLoader::finishLoading): Take a SharedBuffer argumnt as the actual data to commit
- loader/icon/IconLoader.h: Add a SharedBuffer arg to ::finishLoading()
- 10:59 AM Changeset in webkit [25418] by
-
- 1 edit in trunk/WebCore/platform/AutodrainedPool.h
Build fix (sigh)
- 10:49 AM Changeset in webkit [25417] by
-
- 2 edits in trunk/WebCore
Reviewed by Darin
Inline the in-header definitions for non-Mac platforms
- platform/AutodrainedPool.h: (WebCore::AutodrainedPool::AutodrainedPool): (WebCore::AutodrainedPool::~AutodrainedPool): (WebCore::AutodrainedPool::cycle):
- 10:39 AM Changeset in webkit [25416] by
-
- 2 edits4 adds in trunk/WebCore
Reviewed by Darin
Add some AutoreleasePool and Threading utilities in preparation for the multi-threaded
fix for <rdar://problem/5434431>
AutodrainedPool wraps an NSAutoreleasePool and tracks a "cycle" count. This allows clients
in WebCore to simply call ::cycle() and after a preset number of iterations the pool will drain
and recreate the underlying NSAutoreleasePool
Threading utilities include C++ wrappers for pthread mutexes and conditions, as well as a generic
"callOnMainThread()" function for any non-main thread to use.
- platform/AutodrainedPool.h: Added. (WebCore::AutodrainedPool::AutodrainedPool): Empty implementations for all non-mac platforms (WebCore::AutodrainedPool::~AutodrainedPool): ditto (WebCore::AutodrainedPool::cycle): ditto
- platform/mac/AutodrainedPool.mm: Added. (WebCore::AutodrainedPool::AutodrainedPool): (WebCore::AutodrainedPool::~AutodrainedPool): (WebCore::AutodrainedPool::cycle): Keep track of number of cycles, and drain/recreate the pool if the cycle limit is hit
- platform/Threading.h: Added. (WebCore::Mutex::Mutex): C++ wrapper for pthread_mutex (WebCore::Mutex::~Mutex): (WebCore::Mutex::lock): (WebCore::Mutex::tryLock): (WebCore::Mutex::unlock): (WebCore::MutexLocker::MutexLocker): Handles automatically locking/unlocking a Mutex (for early returns from a function, for example) (WebCore::MutexLocker::~MutexLocker): (WebCore::ThreadCondition::ThreadCondition): C++ wrapper for pthread_condition (WebCore::ThreadCondition::~ThreadCondition): (WebCore::ThreadCondition::wait): (WebCore::ThreadCondition::signal): (WebCore::ThreadCondition::broadcast):
- platform/mac/Threading.mm: Added. (-[WebCoreFunctionWrapper initWithFunction:]): Obj-C implementation of "callOnMainThread" (-[WebCoreFunctionWrapper _call]): (WebCore::callOnMainThread):
- 10:27 AM Changeset in webkit [25415] by
-
- 5 edits in trunk/WebKit/win
<rdar://problem/5453494> Better lifetime management of WebDataSource and WebDocumentLoader
The problem was that WebDataSource does not hold a strong reference to the WebDocumentLoader. If
a WebDataSource is still around after the loader has been destroyed, it'll just point to
a stale WebDocumentLoader.
To fix this without a circular reference, WebDataSource now holds a strong reference to the
WebDocumentLoader. The WebDocumentLoader holds a strong reference to the WebDataSource
until it's detached from the WebFrame. When the WebDataSource is destroyed, it'll notify
its WebDocumentLoader so the loader will clear any references to it.
Reviewed by Darin.
- WebDataSource.cpp: (WebDataSource::~WebDataSource): call WebDocumentLoader::detachDataSource() so the loader will clear any references to this data source (WebDataSource::documentLoader): m_loader is now a RefPtr so we need to call get().
- WebDataSource.h:
- WebDocumentLoader.cpp: (WebDocumentLoader::WebDocumentLoader): initialize m_dataSource since it's no longer a COMPtr. (WebDocumentLoader::~WebDocumentLoader): release m_dataSource if necessary (WebDocumentLoader::setDataSource): add a reference to m_dataSource (WebDocumentLoader::dataSource): (WebDocumentLoader::detachDataSource): clear m_detachedDataSource. (WebDocumentLoader::attachToFrame): call setDataSource() so it'll add the reference to the data source if necessary. (WebDocumentLoader::detachFromFrame): release the reference to the data source
- WebDocumentLoader.h:
- 10:21 AM Changeset in webkit [25414] by
-
- 2 edits18 moves in trunk/LayoutTests
Reviewed by Kevin McCullough.
Fix embarassing spelling mistakes.
- http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-subframe-expected.txt: Copied from http/tests/security/dataURL/xss-DENIED-from-data-url-in-foriegn-domain-subframe-expected.txt.
- http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-subframe.html: Copied from http/tests/security/dataURL/xss-DENIED-from-data-url-in-foriegn-domain-subframe.html.
- http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-window-open-expected.txt: Copied from http/tests/security/dataURL/xss-DENIED-from-data-url-in-foriegn-domain-window-open-expected.txt.
- http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-window-open.html: Copied from http/tests/security/dataURL/xss-DENIED-from-data-url-in-foriegn-domain-window-open.html.
- http/tests/security/dataURL/xss-DENIED-from-data-url-in-foriegn-domain-subframe-expected.txt: Removed.
- http/tests/security/dataURL/xss-DENIED-from-data-url-in-foriegn-domain-subframe.html: Removed.
- http/tests/security/dataURL/xss-DENIED-from-data-url-in-foriegn-domain-window-open-expected.txt: Removed.
- http/tests/security/dataURL/xss-DENIED-from-data-url-in-foriegn-domain-window-open.html: Removed.
- http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-subframe-expected.txt: Copied from http/tests/security/dataURL/xss-DENIED-to-data-url-in-foriegn-domain-subframe-expected.txt.
- http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-subframe-location-change-expected.txt: Copied from http/tests/security/dataURL/xss-DENIED-to-data-url-in-foriegn-domain-subframe-location-change-expected.txt.
- http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-subframe-location-change.html: Copied from http/tests/security/dataURL/xss-DENIED-to-data-url-in-foriegn-domain-subframe-location-change.html.
- http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-subframe.html: Copied from http/tests/security/dataURL/xss-DENIED-to-data-url-in-foriegn-domain-subframe.html.
- http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-window-open-expected.txt: Copied from http/tests/security/dataURL/xss-DENIED-to-data-url-in-foriegn-domain-window-open-expected.txt.
- http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-window-open.html: Copied from http/tests/security/dataURL/xss-DENIED-to-data-url-in-foriegn-domain-window-open.html.
- http/tests/security/dataURL/xss-DENIED-to-data-url-in-foriegn-domain-subframe-expected.txt: Removed.
- http/tests/security/dataURL/xss-DENIED-to-data-url-in-foriegn-domain-subframe-location-change-expected.txt: Removed.
- http/tests/security/dataURL/xss-DENIED-to-data-url-in-foriegn-domain-subframe-location-change.html: Removed.
- http/tests/security/dataURL/xss-DENIED-to-data-url-in-foriegn-domain-subframe.html: Removed.
- http/tests/security/dataURL/xss-DENIED-to-data-url-in-foriegn-domain-window-open-expected.txt: Removed.
- http/tests/security/dataURL/xss-DENIED-to-data-url-in-foriegn-domain-window-open.html: Removed.
- http/tests/security/javascriptURL/xss-DENIED-from-javascipt-url-in-foreign-domain-subframe-expected.txt: Copied from http/tests/security/javascriptURL/xss-DENIED-from-javascipt-url-in-foriegn-domain-subframe-expected.txt.
- http/tests/security/javascriptURL/xss-DENIED-from-javascipt-url-in-foreign-domain-subframe.html: Copied from http/tests/security/javascriptURL/xss-DENIED-from-javascipt-url-in-foriegn-domain-subframe.html.
- http/tests/security/javascriptURL/xss-DENIED-from-javascipt-url-in-foreign-domain-window-open-expected.txt: Copied from http/tests/security/javascriptURL/xss-DENIED-from-javascipt-url-in-foriegn-domain-window-open-expected.txt.
- http/tests/security/javascriptURL/xss-DENIED-from-javascipt-url-in-foreign-domain-window-open.html: Copied from http/tests/security/javascriptURL/xss-DENIED-from-javascipt-url-in-foriegn-domain-window-open.html.
- http/tests/security/javascriptURL/xss-DENIED-from-javascipt-url-in-foriegn-domain-subframe-expected.txt: Removed.
- http/tests/security/javascriptURL/xss-DENIED-from-javascipt-url-in-foriegn-domain-subframe.html: Removed.
- http/tests/security/javascriptURL/xss-DENIED-from-javascipt-url-in-foriegn-domain-window-open-expected.txt: Removed.
- http/tests/security/javascriptURL/xss-DENIED-from-javascipt-url-in-foriegn-domain-window-open.html: Removed.
- http/tests/security/javascriptURL/xss-DENIED-to-javascipt-url-in-foreign-domain-subframe-expected.txt: Copied from http/tests/security/javascriptURL/xss-DENIED-to-javascipt-url-in-foriegn-domain-subframe-expected.txt.
- http/tests/security/javascriptURL/xss-DENIED-to-javascipt-url-in-foreign-domain-subframe.html: Copied from http/tests/security/javascriptURL/xss-DENIED-to-javascipt-url-in-foriegn-domain-subframe.html.
- http/tests/security/javascriptURL/xss-DENIED-to-javascipt-url-in-foreign-domain-window-open-expected.txt: Copied from http/tests/security/javascriptURL/xss-DENIED-to-javascipt-url-in-foriegn-domain-window-open-expected.txt.
- http/tests/security/javascriptURL/xss-DENIED-to-javascipt-url-in-foreign-domain-window-open.html: Copied from http/tests/security/javascriptURL/xss-DENIED-to-javascipt-url-in-foriegn-domain-window-open.html.
- http/tests/security/javascriptURL/xss-DENIED-to-javascipt-url-in-foriegn-domain-subframe-expected.txt: Removed.
- http/tests/security/javascriptURL/xss-DENIED-to-javascipt-url-in-foriegn-domain-subframe.html: Removed.
- http/tests/security/javascriptURL/xss-DENIED-to-javascipt-url-in-foriegn-domain-window-open-expected.txt: Removed.
- http/tests/security/javascriptURL/xss-DENIED-to-javascipt-url-in-foriegn-domain-window-open.html: Removed.
- platform/win/Skipped:
- 9:52 AM Changeset in webkit [25413] by
-
- 5 edits1 move in trunk
Reviewed by Maciej.
- Moved JSRetainPtr to the API.
- API/JSRetainPtr.h: Copied from kjs/JSRetainPtr.h. (JSRetain): (JSRelease): (JSRetainPtr::JSRetainPtr): (JSRetainPtr::~JSRetainPtr): (JSRetainPtr::get): (JSRetainPtr::releaseRef): (JSRetainPtr::operator->): (JSRetainPtr::operator!): (JSRetainPtr::operator UnspecifiedBoolType): (::operator): (::adopt): (::swap): (swap): (operator==): (operator!=):
- JavaScriptCore.xcodeproj/project.pbxproj:
- kjs/JSRetainPtr.h: Removed.
WebKitTools:
Reviewed by Maciej.
- Changed Drosera to take advantage of the JSRetainPtr changes.
- Drosera/DebuggerDocument.cpp: (DebuggerDocument::breakpointEditorHTML): (DebuggerDocument::evaluateScript): (DebuggerDocument::valueForScopeVariableNamed): (DebuggerDocument::log): (DebuggerDocument::windowScriptObjectAvailable): (DebuggerDocument::toJSArray): (DebuggerDocument::callFunctionOnObject): (DebuggerDocument::logException):
- Drosera/mac/DebuggerDocumentMac.mm: (-[DebuggerClientMac webView:didLoadMainResourceForDataSource:]): (-[DebuggerClientMac webView:didParseSource:baseLineNumber:fromURL:sourceId:forWebFrame:]): (DebuggerDocument::platformEvaluateScript): (DebuggerDocument::getPlatformCurrentFunctionStack): (DebuggerDocument::getPlatformLocalScopeVariableNamesForCallFrame): (DebuggerDocument::platformValueForScopeVariableNamed):
- 9:29 AM Changeset in webkit [25412] by
-
- 4 edits in trunk
Fix typo in previous commit
- 7:49 AM Changeset in webkit [25411] by
-
- 6 edits in trunk
Patch from Qing Zhao to export more of the progress details and expose it from
QWebPage