1. 30 Sep, 2009 30 commits
    • hyatt@apple.com's avatar
      Make sure the removal of user stylesheets results in all of the WebViews being updated to · 44194bce
      hyatt@apple.com authored
      reflect the changes.
      
      Reviewed by Tim Hatcher.
      
      * page/PageGroup.cpp:
      (WebCore::PageGroup::removeUserContentWithURLForWorld):
      (WebCore::PageGroup::removeUserContentForWorld):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48951 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      44194bce
    • jorlow@chromium.org's avatar
      2009-09-30 Jeremy Orlow <jorlow@chromium.org> · a24eed18
      jorlow@chromium.org authored
              Reviewed by Dimitri Glazkov.
      
              Use a script-tests directory rather than a resources directory for DOM Storage
              https://bugs.webkit.org/show_bug.cgi?id=29938
      
              Use a script-tests directory rather than a resources directory for DOM Storage.
              This matches up with what's been done elsewhere in the tree.
      
              * storage/domstorage/localstorage/clear.html:
              * storage/domstorage/resources: Removed.
              * storage/domstorage/resources/clear.js: Removed.
              * storage/domstorage/script-tests: Copied from LayoutTests/storage/domstorage/resources.
              * storage/domstorage/sessionstorage/clear.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48950 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a24eed18
    • eric@webkit.org's avatar
      2009-09-30 Eric Seidel <eric@webkit.org> · e8d8d4ee
      eric@webkit.org authored
              No review, just adding Geoff to the list of reviewers.
      
              * Scripts/modules/committers.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48949 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e8d8d4ee
    • oliver@apple.com's avatar
      Devirtualise array toString conversion · 55445085
      oliver@apple.com authored
      Reviewed by Geoff Garen.
      
      Tweak the implementation of Array.prototype.toString to have a fast path
      when acting on a true JSArray.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48948 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      55445085
    • mitz@apple.com's avatar
      REGRESSION(r47440): drop down menus at americanexpress.com disappear on mouse out · 66bc5f4e
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=29209
      
      Reviewed by Sam Weinig.
      
      WebCore: 
      
      Test: fast/inline/relative-positioned-overflow.html
      
      * rendering/InlineFlowBox.cpp:
      (WebCore::InlineFlowBox::computeVerticalOverflow): Add self-painting
      inlines to overflow to ensure that they are included in hit-testing.
      
      LayoutTests: 
      
      * fast/inline/relative-positioned-overflow-expected.txt: Added.
      * fast/inline/relative-positioned-overflow.html: Added.
      * platform/mac/fast/repaint/transform-absolute-in-positioned-container-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48947 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      66bc5f4e
    • weinig@apple.com's avatar
      Fix for <rdar://problem/7259706> · 1f89004f
      weinig@apple.com authored
      Need WebKit API or SPI on Mac and Windows to test whether it's safe to load a page in a new tab/window
      
      Reviewed by Dan Bernstein.
      
      WebKit/mac: 
      
      * WebView/WebFrame.mm:
      (-[WebFrame _allowsFollowingLink:]):
      * WebView/WebFramePrivate.h:
      
      WebKit/win: 
      
      * Interfaces/IWebFramePrivate.idl:
      * WebFrame.cpp:
      (WebFrame::allowsFollowingLink):
      * WebFrame.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48946 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1f89004f
    • simon.fraser@apple.com's avatar
      2009-09-30 Simon Fraser <simon.fraser@apple.com> · b2870561
      simon.fraser@apple.com authored
              Reviewed by Mark Rowe.
      
              transforms/3d tests are not run in Release builds
              https://bugs.webkit.org/show_bug.cgi?id=29827
      
              Make sure we export the WebCoreHas3DRendering symbol in Release builds,
              because this symbols is used by run-webkit-tests (via 'nm') to detect whether
              WebCore was built with ENABLE_3D_RENDERING turned on.
      
              * DerivedSources.make:
              * WebCore.3DRendering.exp: Added.
              * WebCore.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48945 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b2870561
    • mitz@apple.com's avatar
      Added the WebKit Layout Tests fonts that are referenced in · 14c717df
      mitz@apple.com authored
      LayoutTests/platform/win/css2.1/resources/Mac-compatible-font-fallback.css
      
      Reviewed by Sam Weinig.
      
      * DumpRenderTree/fonts/WebKit Layout Tests 2.ttf: Added.
      * DumpRenderTree/fonts/WebKit Layout Tests.ttf: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48944 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      14c717df
    • kenneth@webkit.org's avatar
      Add the failed URL to the ErrorPageExtension, as it is quite · 2a3435f5
      kenneth@webkit.org authored
      useful for creating error pages.
      
      Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> on 2009-09-30
      Reviewed by David Hyatt.
      
      * Api/qwebpage.h:
      * WebCoreSupport/FrameLoaderClientQt.cpp:
      (WebCore::FrameLoaderClientQt::callErrorPageExtension):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48943 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2a3435f5
    • jorlow@chromium.org's avatar
      Build fix for QT. Didn't know WebCore.pro existed. · a0d73dec
      jorlow@chromium.org authored
      Patch by Jeremy Orlow <jorlow@chromium.org> on 2009-09-30
      * WebCore.pro:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48942 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a0d73dec
    • hyatt@apple.com's avatar
      WebCore: Add a method for removal of user scripts and stylesheets by URL from a specific world. · 326237f6
      hyatt@apple.com authored
      Reviewed by Adam Roben.
      
      * page/PageGroup.cpp:
      (WebCore::PageGroup::removeUserContentURLForWorld):
      * page/PageGroup.h:
      
      WebKit/mac: Add the ability to remove user stylesheets and scripts by URL.
      
      Reviewed by Adam Roben.
      
      * WebView/WebView.mm:
      (+[WebView _removeUserContentFromGroup:url:worldID:]):
      * WebView/WebViewPrivate.h:
      
      WebKit/win: Add the ability to remove user stylesheets and scripts by URL.
      
      Reviewed by Adam Roben.
      
      * Interfaces/IWebViewPrivate.idl:
      * WebView.cpp:
      (WebView::removeUserContentWithURLFromGroup):
      * WebView.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48941 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      326237f6
    • eric@webkit.org's avatar
      2009-09-30 Chris Hawk <hawk@chromium.org> · 3116d5d6
      eric@webkit.org authored
              Reviewed by Dimitri Glazkov.
      
              Fix for conditionals in the WebCore gyp file, which contained two separate
              'conditions' values for the webcore target. The first entry was ignored,
              resulting in some missine defines.
              https://bugs.webkit.org/show_bug.cgi?id=29907
      
              * WebCore.gyp/WebCore.gyp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48940 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3116d5d6
    • jorlow@chromium.org's avatar
      2009-09-21 Jeremy Orlow <jorlow@chromium.org> · 914f2dd1
      jorlow@chromium.org authored
              Reviewed by Adam Barth.
      
              DOM Storage needs to be more careful about where "ThreadSafe" objects are destroyed.
              https://bugs.webkit.org/show_bug.cgi?id=29265
      
              DOM Storage needs to be more careful about where "ThreadSafe" objects are
              destroyed.  With the current code, there actually isn't a race condition, but
              it sure would be easy for someone to introduce one.  A bunch of
              ThreadSafeShared objects have RefPtrs to objects that are NOT ThreadSafeShared
              objects.  If it were possible any of these objects' destructors to be fired off
              the main thread, then the you'd have a race condition.  The code should be more
              clear and self-documenting about how things related to each other.
      
              Since the lifetime of a LocalStorageTask is bounded by the LocalStorageThread
              which is bounded by the StorageSyncManager, StorageAreaImpl, and
              StorageAreaSync, there's no reason for LocalStorageTask to store anything other
              than pointers.  By breaking this dependency, we can eliminate the risk.
      
              Note that we _could_ have LocalStorageThread's task queue just store
              LocalStorageTask*'s rather than RefPtr<LocalStorageTask>s but then we'd need to
              manually take care of deleting.  It'd probably also be possible to change
              LocalStorageThread around so that it needn't hold onto a reference of itself
              and have a more deterministic shutdown, but my initial attempts to do so
              failed, and I decided it wasn't worth changing.  The queue is killed before
              hand, so the thread is 100% impotent before the main thread continues anyway.
      
              The constructors and destructors of StorageSyncManager, StorageAreaImpl, and
              StorageAreaSync now have ASSERTs to verify they're running on the main thread. 
              I'm fairly positive that it'd be impossible to hit these asserts and the fact
              that these classes are no longer ThreadSafeShared should make it clear how
              they're meant to be used, but I think it's worth it to be extra sure.  Of
              course, ideally, we'd have such an assert every time a ref is incremented or
              decremented.
      
              Behavior should be unchanged and this is just an internal code cleanup, so no
              new tests.
      
              * storage/LocalStorageTask.cpp:
              (WebCore::LocalStorageTask::LocalStorageTask):
              (WebCore::LocalStorageTask::performTask):
              * storage/LocalStorageTask.h:
              (WebCore::LocalStorageTask::createImport):
              (WebCore::LocalStorageTask::createSync):
              (WebCore::LocalStorageTask::createTerminate):
              * storage/LocalStorageThread.cpp:
              (WebCore::LocalStorageThread::scheduleImport):
              (WebCore::LocalStorageThread::scheduleSync):
              * storage/LocalStorageThread.h:
              * storage/StorageArea.h:
              * storage/StorageAreaImpl.cpp:
              (WebCore::StorageAreaImpl::~StorageAreaImpl):
              (WebCore::StorageAreaImpl::StorageAreaImpl):
              * storage/StorageAreaSync.cpp:
              (WebCore::StorageAreaSync::StorageAreaSync):
              (WebCore::StorageAreaSync::~StorageAreaSync):
              * storage/StorageSyncManager.cpp:
              (WebCore::StorageSyncManager::StorageSyncManager):
              (WebCore::StorageSyncManager::~StorageSyncManager):
              (WebCore::StorageSyncManager::scheduleImport):
              (WebCore::StorageSyncManager::scheduleSync):
              * storage/StorageSyncManager.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48939 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      914f2dd1
    • ggaren@apple.com's avatar
      Buildfix for platforms using JSVALUE32. · 834bfad2
      ggaren@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=29915
      
      Patch by Csaba Osztrogonac <oszi@inf.u-szeged.hu> on 2009-09-30
      Reviewed by Geoffrey Garen.
      
      After http://trac.webkit.org/changeset/48905 the build broke in JSVALUE32 case.
      Also removed unreachable code.
      
      * jit/JITArithmetic.cpp:
      (JSC::JIT::emit_op_add):
       - Declaration of "OperandTypes types" moved before first use.
       - Typos fixed: dst modified to result, regT2 added.
       - Unreachable code removed.
      (JSC::JIT::emitSlow_op_add):
       - Missing declaration of "OperandTypes types" added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48938 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      834bfad2
    • jorlow@chromium.org's avatar
      2009-09-28 Jeremy Orlow <jorlow@chromium.org> · 78f679fb
      jorlow@chromium.org authored
              Reviewed by Darin Fisher.
      
              Chromium needs to be able to override the way storage events are delivered
              https://bugs.webkit.org/show_bug.cgi?id=29655
      
              Chromium needs to be able to override the way storage events are delivered.
              This replaced https://bugs.webkit.org/show_bug.cgi?id=29257 because it'll be
              faster (no vtables and extra allocation) and somewhat cleaner (no dependency
              injection).  This is necessary because Chromium needs to transport events across
              a process barrier and then dispatch them without use of a Frame*.
      
              Behavior should not change with this, so no updates to tests.
      
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * storage/StorageAreaImpl.cpp:
              (WebCore::StorageAreaImpl::setItem):
              (WebCore::StorageAreaImpl::removeItem):
              (WebCore::StorageAreaImpl::clear):
              * storage/StorageAreaImpl.h:
              * storage/StorageEventDispatcher.cpp: Copied from WebCore/storage/StorageAreaImpl.cpp.
              (WebCore::StorageEventDispatcher::dispatch):
              * storage/StorageEventDispatcher.h: Added.  (Well, technically in the other half of this patch.)
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48937 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      78f679fb
    • mrowe@apple.com's avatar
      Versioning. · 48fc67b6
      mrowe@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48936 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      48fc67b6
    • jianli@chromium.org's avatar
      Need to check NULL frame in EventHandler::updateDragAndDrop. · 00364e3d
      jianli@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=29929
      
      Reviewed by Darin Adler.
      
      WebCore:
      
      Test: http/tests/misc/drag-over-iframe-invalid-source-crash.html
      
      * page/EventHandler.cpp:
      (WebCore::EventHandler::updateDragAndDrop):
      
      LayoutTests:
      
      Add a new test for the bug.
      
      * http/tests/misc/drag-over-iframe-invalid-source-crash-expected.txt: Added.
      * http/tests/misc/drag-over-iframe-invalid-source-crash.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48934 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      00364e3d
    • mitz@apple.com's avatar
      fa4da37e
    • simon.fraser@apple.com's avatar
      2009-09-29 Simon Fraser <simon.fraser@apple.com> · 195d0d67
      simon.fraser@apple.com authored
              Reviewed by Dan Bernstein.
      
              ASSERTION FAILED: !repaintContainer || repaintContainer == this
              https://bugs.webkit.org/show_bug.cgi?id=29755
      
              Generalize the fix for this bug to account for cases where there may be multiple
              containing blocks between the repaint container, and the container of the element
              being repainted.
      
              Test: compositing/repaint/opacity-between-absolute2.html
      
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::mapLocalToContainer):
              Call offsetFromAncestorContainer() to get the correct offset.
      
              (WebCore::RenderBox::computeRectForRepaint): Ditto
              * rendering/RenderInline.cpp:
              (WebCore::RenderInline::computeRectForRepaint): Ditto.
      
              * rendering/RenderObject.h:
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::offsetFromAncestorContainer):
              New method that computes an offset from some object in the ancestor container() chain.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48932 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      195d0d67
    • ddkilzer@apple.com's avatar
      2009-09-30 Csaba Osztrogonac <oszi@inf.u-szeged.hu> · 026bca0d
      ddkilzer@apple.com authored
              Reviewed by David Kilzer.
      
              Make sunspider scripts work on Windows platform.
              https://bugs.webkit.org/show_bug.cgi?id=29656
      
              * Scripts/run-sunspider: Perl scripts invoked with same Perl interpreter.
              * Scripts/sunspider-compare-results: Perl scripts invoked with same Perl interpreter.
              * Scripts/webkitdirs.pm: currentPerlPath() added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      026bca0d
    • eric@webkit.org's avatar
      2009-09-30 Yaar Schnitman <yaar@chromium.org> · 224419c0
      eric@webkit.org authored
              Reviewed by Dimitri Glazkov.
      
              1. Keeping up with downstream revisions.
              2. Turning off v8 snapshot build step.
      
              https://bugs.webkit.org/show_bug.cgi?id=29928
      
              * chromium/DEPS
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48930 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      224419c0
    • eric@webkit.org's avatar
      2009-09-30 Andras Becsi <becsi.andras@stud.u-szeged.hu> · a6b728be
      eric@webkit.org authored
              Reviewed by Simon Hausmann.
      
              [Qt] Fix TextCodecQt::decode method after r48752 to return a non-null string if the length of the input is 0.
              This fixes https://bugs.webkit.org/show_bug.cgi?id=29736.
      
              * platform/text/qt/TextCodecQt.cpp:
              (WebCore::TextCodecQt::decode):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48929 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a6b728be
    • hausmann@webkit.org's avatar
      Reduce heap size on Symbian from 64MB to 8MB. · 1103cc33
      hausmann@webkit.org authored
      Patch by Janne Koskinen <janne.p.koskinen@digia.com> on 2009-09-30
      Reviewed by Simon Hausmann.
      
      This is not a perfect fix, it requires more fine tuning.
      But this makes it possible again to debug in the emulator,
      which is more important in order to be able to fix other
      run-time issues.
      
      * runtime/Collector.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48928 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1103cc33
    • hausmann@webkit.org's avatar
      [Qt] Update Skipped after #48873 and some expected files, whose · a4200b64
      hausmann@webkit.org authored
      problems are the same (default font size reconciliation
      16px/13px), but the previous update didn't contain them.
      
      Patch by Renata Hodovan <hodovan.renata@stud.u-szeged.hu> on 2009-09-30
      Reviewed by Simon Hausmann.
      
      * platform/qt/Skipped:
      * platform/qt/css2.1/t040103-ident-04-c-expected.txt:
      * platform/qt/css2.1/t0402-c71-fwd-parsing-00-f-expected.txt:
      * platform/qt/css2.1/t040304-c64-uri-00-a-g-expected.txt:
      * platform/qt/css2.1/t040306-syntax-01-f-expected.txt:
      * platform/qt/css2.1/t1202-counter-05-b-expected.txt:
      * platform/qt/css2.1/t140201-c535-bg-fixd-00-b-g-expected.txt:
      * platform/qt/css2.1/t1507-c526-font-sz-03-f-a-expected.txt:
      * platform/qt/css2.1/t170602-bdr-conflct-w-00-d-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48927 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a4200b64
    • eric@webkit.org's avatar
      2009-09-30 Shinichiro Hamaji <hamaji@chromium.org> · e7501510
      eric@webkit.org authored
              Reviewed by David Levin.
      
              Move message-port-multi.js from resources to script-tests
              https://bugs.webkit.org/show_bug.cgi?id=29798
      
              Revert r48823. message-port-multi.js needs custom HTML.
      
              * fast/events/message-port-multi-expected.txt:
              * fast/events/message-port-multi.html:
              * fast/events/resources/message-port-multi.js: Added.
              (channel.port2.onmessage):
              * fast/events/script-tests/message-port-multi.js: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48926 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e7501510
    • eric@webkit.org's avatar
      2009-09-30 Shinichiro Hamaji <hamaji@chromium.org> · f670f333
      eric@webkit.org authored
              Reviewed by David Kilzer.
      
              Change remaining references in tests from bugzilla.opendarwin.org to bugs.webkit.org
              https://bugs.webkit.org/show_bug.cgi?id=12140
      
              Fixes for JS files.
      
              * fast/js/date-preserve-milliseconds-expected.txt:
              * fast/js/script-tests/array-float-delete.js:
              * fast/js/script-tests/array-tostring-ignore-separator.js:
              * fast/js/script-tests/date-big-setmonth.js:
              * fast/js/script-tests/date-negative-setmonth.js:
              * fast/js/script-tests/date-preserve-milliseconds.js:
              * fast/js/script-tests/number-tofixed.js:
              * fast/js/script-tests/object-extra-comma.js:
              * fast/js/script-tests/object-prototype-constructor.js:
              * fast/js/script-tests/object-prototype-toLocaleString.js:
              * fast/js/script-tests/regexp-lastindex.js:
              * fast/js/script-tests/regexp-stack-overflow.js:
              * fast/js/script-tests/string-split-ignore-case.js:
              * fast/js/script-tests/toString-exception.js:
              * fast/js/script-tests/toString-overrides.js:
              * fast/js/script-tests/toString-stack-overflow.js:
              * fast/js/toString-stack-overflow-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48925 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f670f333
    • eric@webkit.org's avatar
      2009-09-30 Steve Block <steveblock@google.com> · 98a05b0a
      eric@webkit.org authored
              Reviewed by Darin Adler.
      
              Geolocation LayoutTests should use an HTML template.
              https://bugs.webkit.org/show_bug.cgi?id=29179
      
              Updates Geolocation LayoutTests to correctly use an HTML template so that
              individual HTML files can be generated using make-script-test-wrappers.
              This requires a new js-test-post.js which allows for asynchronous tests.
      
              * fast/dom/Geolocation/resources/TEMPLATE.html: Modified. Updated to use new js-test-post.js.
              * fast/dom/Geolocation/resources/js-test-post.js: Added. Allows for asynchronous tests.
      
              * fast/dom/Geolocation/resources/argument-types.js: Modified. Sepcifies synchronous test.
              * fast/dom/Geolocation/argument-types.html: Modified. Updated to use new js-test-post.js.
      
              * fast/dom/Geolocation/resources/callback-exception.js: Modified. Specifies asynchronous test.
              * fast/dom/Geolocation/callback-exception.html: Modified. Updated to use new js-test-post.js.
              * fast/dom/Geolocation/callback-exception-expected.txt: Modified. Adds successfullyParsed.
      
              * fast/dom/Geolocation/resources/enabled.js: Modified. Sepcifies synchronous test.
              * fast/dom/Geolocation/enabled.html: Modified. Updated to use new js-test-post.js.
      
              * fast/dom/Geolocation/resources/error.js: Modified. Specifies asynchronous test.
              * fast/dom/Geolocation/error.html: Modified. Updated to use new js-test-post.js.
              * fast/dom/Geolocation/error-expected.txt: Modified. Adds successfullyParsed.
      
              * fast/dom/Geolocation/resources/permission-denied.js: Modified. Specifies asynchronous test.
              * fast/dom/Geolocation/permission-denied.html: Modified. Updated to use new js-test-post.js.
              * fast/dom/Geolocation/permission-denied-expected.txt: Modified. Adds successfullyParsed.
      
              * fast/dom/Geolocation/resources/permission-denied-stops-watches.js: Modified. Specifies asynchronous test.
              * fast/dom/Geolocation/permission-denied-stops-watches.html: Modified. Updated to use new js-test-post.js.
              * fast/dom/Geolocation/permission-denied-stops-watches-expected.txt: Modified. Adds successfullyParsed.
      
              * fast/dom/Geolocation/resources/position-string.js: Modified. Specifies asynchronous test.
              * fast/dom/Geolocation/position-string.html: Modified. Updated to use new js-test-post.js.
              * fast/dom/Geolocation/position-string-expected.txt: Modified. Adds successfullyParsed.
      
              * fast/dom/Geolocation/resources/reentrant-error.js: Modified. Specifies asynchronous test.
              * fast/dom/Geolocation/reentrant-error.html: Modified. Updated to use new js-test-post.js.
              * fast/dom/Geolocation/reentrant-error-expected.txt: Modified. Adds successfullyParsed.
      
              * fast/dom/Geolocation/resources/reentrant-success.js: Modified. Specifies asynchronous test.
              * fast/dom/Geolocation/reentrant-success.html: Modified. Updated to use new js-test-post.js.
              * fast/dom/Geolocation/reentrant-success-expected.txt: Modified. Adds successfullyParsed.
      
              * fast/dom/Geolocation/resources/success.js: Modified. Specifies asynchronous test.
              * fast/dom/Geolocation/success.html: Modified. Updated to use new js-test-post.js.
              * fast/dom/Geolocation/success-expected.txt: Modified. Adds successfullyParsed.
      
              * fast/dom/Geolocation/resources/timeout.js: Modified. Specifies asynchronous test.
              * fast/dom/Geolocation/timeout.html: Modified. Updated to use new js-test-post.js.
              * fast/dom/Geolocation/timeout-expected.txt: Modified. Adds successfullyParsed.
      
              * fast/dom/Geolocation/resources/timeout-zero.js: Modified. Specifies asynchronous test.
              * fast/dom/Geolocation/timeout-zero.html: Modified. Updated to use new js-test-post.js.
              * fast/dom/Geolocation/timeout-zero-expected.txt: Modified. Adds successfullyParsed.
      
              * fast/dom/Geolocation/resources/watch.js: Modified. Specifies asynchronous test.
              * fast/dom/Geolocation/watch.html: Updated to use new js-test-post.js.
              * fast/dom/Geolocation/watch-expected.txt: Modified. Adds successfullyParsed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48924 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      98a05b0a
    • eric@webkit.org's avatar
      2009-09-30 Csaba Osztrogonac <oszi@inf.u-szeged.hu> · b3420184
      eric@webkit.org authored
              Reviewed by Darin Adler.
      
              Platform specific null device replaced with a platform independent.
              https://bugs.webkit.org/show_bug.cgi?id=29544
      
              * sunspider: Using File::Spec->devnull() instead of /dev/null and NUL.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48923 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b3420184
    • hausmann@webkit.org's avatar
      Fix CRASH() macro for Symbian build. · 6c9c63f4
      hausmann@webkit.org authored
      Patch by Janne Koskinen <janne.p.koskinen@digia.com> on 2009-09-30
      Reviewed by Simon Hausmann.
      
      * wtf/Assertions.h: Added missing }
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48922 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6c9c63f4
    • hamaji@chromium.org's avatar
      2009-09-29 Shinichiro Hamaji <hamaji@chromium.org> · b1658259
      hamaji@chromium.org authored
              Reviewed by Eric Seidel.
      
              Change remaining references in tests from bugzilla.opendarwin.org to bugs.webkit.org
              https://bugs.webkit.org/show_bug.cgi?id=12140
      
              Remove opendarwin URLs from href="".
              This change doesn't change pixel test results.
      
              * editing/pasteboard/display-block-on-spans.html:
              * editing/pasteboard/drop-text-without-selection.html:
              * editing/pasteboard/paste-text-019.html:
              * editing/selection/6476.html:
              * editing/selection/7152-1.html:
              * editing/selection/7152-2.html:
              * editing/selection/after-line-wrap.html:
              * editing/selection/click-start-of-line.html:
              * editing/selection/leave-requested-block.html:
              * editing/selection/select-from-textfield-outwards.html:
              * fast/block/basic/text-indent-rtl.html:
              * fast/block/float/nopaint-after-layer-destruction.html:
              * fast/block/float/nopaint-after-layer-destruction2.html:
              * fast/block/float/table-relayout.html:
              * fast/block/float/vertical-move-relayout.html:
              * fast/block/positioning/height-change.html:
              * fast/block/positioning/relayout-on-position-change.html:
              * fast/block/positioning/window-height-change.html:
              * fast/css-generated-content/hover-style-change.html: Added property allow-tabs.
              * fast/css/error-in-last-decl.html:
              * fast/css/ex-after-font-variant.html:
              * fast/css/find-next-layer.html:
              * fast/css/first-letter-detach.html:
              * fast/css/font-shorthand-weight-only.html:
              * fast/css/hover-subselector.html:
              * fast/css/invalidation-errors-2.html:
              * fast/css/invalidation-errors-3.html:
              * fast/css/invalidation-errors.html:
              * fast/css/resize-corner-tracking.html:
              * fast/css/rtl-ordering.html:
              * fast/css/universal-hover-quirk.html:
              * fast/dom/Element/class-attribute-whitespace.html: Added property allow-tabs.
              * fast/dom/HTMLHeadElement/head-link-style-href-check.html:
              * fast/dom/HTMLLinkElement/pending-stylesheet-count.html:
              * fast/dynamic/layer-hit-test-crash.html:
              * fast/dynamic/selection-highlight-adjust.html:
              * fast/encoding/resources/%25%u0435 0 %xx%%%ulike.html:
              * fast/events/event-sender-mouse-moved.html:
              * fast/events/resources/drag-outside-window-frame.html:
              * fast/forms/button-cannot-be-nested.html:
              * fast/forms/button-generated-content.html:
              * fast/forms/button-inner-block-reuse.html:
              * fast/forms/button-white-space.html:
              * fast/forms/floating-textfield-relayout.html:
              * fast/forms/form-hides-table.html:
              * fast/forms/visual-hebrew-text-field.html:
              * fast/history/clicked-link-is-visited.html:
              * fast/history/resources/clicked-link-is-visited-2.html:
              * fast/inline-block/overflow-clip.html:
              * fast/invalid/missing-address-end-tag.html:
              * fast/invalid/missing-dl-end-tag.html:
              * fast/invalid/missing-dt-end-tag.html:
              * fast/invalid/missing-font-end-tag.html:
              * fast/js/exception-linenums-in-html-3.html:
              * fast/js/missing-style-end-tag-js.html:
              * fast/layers/opacity-outline.html:
              * fast/lists/list-style-none-crash.html:
              * fast/lists/markers-in-selection.html:
              * fast/lists/scrolled-marker-paint.html:
              * fast/overflow/image-selection-highlight.html:
              * fast/overflow/overflow-rtl-inline-scrollbar.html:
              * fast/parser/broken-comments-vs-parsing-mode.html:
              * fast/parser/nofoo-tags-inside-paragraph.html:
              * fast/parser/remove-block-in-residual-style.html:
              * fast/repaint/backgroundSizeRepaint.html:
              * fast/repaint/border-repaint-glitch.html:
              * fast/repaint/bugzilla-3509.html:
              * fast/repaint/bugzilla-5699.html:
              * fast/repaint/bugzilla-6278.html:
              * fast/repaint/bugzilla-6388.html:
              * fast/repaint/bugzilla-6473.html:
              * fast/repaint/bugzilla-7235.html:
              * fast/repaint/clipped-relative.html:
              * fast/repaint/containing-block-position-change.html:
              * fast/repaint/flexible-box-overflow-horizontal.html:
              * fast/repaint/flexible-box-overflow.html:
              * fast/repaint/float-move-during-layout.html:
              * fast/repaint/inline-outline-repaint.html:
              * fast/repaint/layer-outline-horizontal.html:
              * fast/repaint/layer-outline.html:
              * fast/repaint/line-overflow.html:
              * fast/repaint/outline-repaint-glitch.html:
              * fast/repaint/outline-shrinking.html:
              * fast/repaint/repaint-resized-overflow.html:
              * fast/repaint/static-to-positioned.html:
              * fast/repaint/table-cell-move.html:
              * fast/repaint/table-extra-bottom-grow.html:
              * fast/repaint/text-shadow-horizontal.html:
              * fast/repaint/text-shadow.html:
              * fast/replaced/applet-rendering-java-disabled.html:
              * fast/replaced/image-solid-color-with-alpha.html:
              * fast/replaced/inline-box-wrapper-handover.html:
              * fast/replaced/pdf-as-image.html:
              * fast/table/absolute-table-at-bottom.html:
              * fast/table/add-before-anonymous-child.html:
              * fast/table/border-collapsing/003.html:
              * fast/table/border-collapsing/border-collapsing-head-foot.html:
              * fast/table/border-collapsing/rtl-border-collapsing.html:
              * fast/table/cell-absolute-child.html:
              * fast/table/click-near-anonymous-table.html:
              * fast/table/edge-offsets.html:
              * fast/table/empty-section-crash.html:
              * fast/table/fixed-table-non-cell-in-row.html:
              * fast/table/form-with-table-style.html:
              * fast/table/row-height-recalc.html:
              * fast/table/rtl-cell-display-none-assert.html:
              * fast/table/text-field-baseline.html:
              * fast/text/atsui-small-caps-punctuation-size.html:
              * fast/text/atsui-spacing-features.html:
              * fast/text/basic/015.html:
              * fast/text/capitalize-empty-generated-string.html:
              * fast/text/in-rendered-text-rtl.html:
              * fast/text/international/rtl-caret.html:
              * fast/text/midword-break-hang.html:
              * fast/text/whitespace/pre-wrap-overflow-selection.html:
              * fast/text/whitespace/pre-wrap-spaces-after-newline.html:
              * fast/tokenizer/missing-style-end-tag-1.html:
              * fast/tokenizer/missing-style-end-tag-2.html:
              * fast/tokenizer/missing-title-end-tag-1.html:
              * fast/tokenizer/missing-title-end-tag-2.html:
              * http/tests/misc/iframe404.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48921 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b1658259
  2. 29 Sep, 2009 10 commits
    • ggaren@apple.com's avatar
      Inlined a few math operations. · 71adc78b
      ggaren@apple.com authored
              
      Patch by Geoffrey Garen <ggaren@apple.com> on 2009-09-29
      Reviewed by Gavin Barraclough.
      
      ~1% SunSpider speedup.
      
      * jit/JIT.h:
      * jit/JITArithmetic.cpp:
      (JSC::JIT::compileBinaryArithOpSlowCase):
      (JSC::JIT::emitSlow_op_add):
      (JSC::JIT::emitSlow_op_mul):
      (JSC::JIT::emit_op_sub):
      (JSC::JIT::emitSlow_op_sub): Don't take a stub call when operating on
      a constant int and a double.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48920 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      71adc78b
    • hyatt@apple.com's avatar
      Fix a couple of bugs with patterns. Move the setting of the document URL to before the style · 220f4e65
      hyatt@apple.com authored
      selector gets constructed so that pattern match testing gets the correct URL.
      
      Reviewed by Jon Honeycutt.
      
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::begin):
      * page/UserContentURLPattern.cpp:
      (WebCore::UserContentURLPattern::parse):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48919 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      220f4e65
    • ap@apple.com's avatar
      Rubber-stamped by Brady Eidson. · 744d93ab
      ap@apple.com authored
              Assertion failure in http/tests/xmlhttprequest/failed-auth.html.
      
              I couldn't find out why this only started to happen now, but it was incorrect to check
              persistence of a credential returned by CredentialStorage::get() without checking that it
              was non-null. When there is no credential for the protection space in storage, get()
              returns a new object, and Credentil constructor doesn't initialize m_persistence.
      
              * platform/network/mac/ResourceHandleMac.mm:
              (-[WebCoreSynchronousLoader connection:didReceiveAuthenticationChallenge:]): Moved the
              assertion after credential null check.
              (WebCore::ResourceHandle::didReceiveAuthenticationChallenge): Added the same persistence
              assertion, matching sync code (and CF one, as well).
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48918 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      744d93ab
    • beidson@apple.com's avatar
      Rubberstamped by Dan Bernstein. · c48a1977
      beidson@apple.com authored
      Fix license and some sorting in new files.
      
      WebKit/mac: 
      
      * WebView/WebHistoryDelegate.h:
      * WebView/WebNavigationData.h:
      * WebView/WebNavigationData.mm:
      
      WebKitTools: 
      
      * DumpRenderTree/mac/HistoryDelegate.h:
      * DumpRenderTree/mac/HistoryDelegate.mm:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48917 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c48a1977
    • eric@webkit.org's avatar
      2009-09-29 Yaar Schnitman <yaar@chromium.org> · 2649ea54
      eric@webkit.org authored
              Reviewed by David Kilzer.
      
              Fixed how error codes are handled.
              https://bugs.webkit.org/show_bug.cgi?id=29898
      
              * Scripts/update-webkit:
              * Scripts/update-webkit-chromium:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48916 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2649ea54
    • beidson@apple.com's avatar
      Updated way-out-of-date sorting throughout the dump methods/flags. · 00a441a6
      beidson@apple.com authored
      Reviewed by John Sullivan.
      
      * DumpRenderTree/LayoutTestController.cpp:
      (LayoutTestController::LayoutTestController):
      (dumpAsPDFCallback):
      (dumpAsTextCallback):
      (dumpFrameLoadCallbacksCallback):
      (dumpResourceLoadCallbacksCallback):
      (LayoutTestController::staticFunctions):
      
      * DumpRenderTree/LayoutTestController.h:
      (LayoutTestController::dumpAsText):
      (LayoutTestController::setDumpAsText):
      (LayoutTestController::dumpFrameLoadCallbacks):
      (LayoutTestController::setDumpFrameLoadCallbacks):
      (LayoutTestController::dumpSelectionRect):
      (LayoutTestController::setDumpSelectionRect):
      (LayoutTestController::dumpSourceAsWebArchive):
      (LayoutTestController::setDumpSourceAsWebArchive):
      (LayoutTestController::dumpStatusCallbacks):
      (LayoutTestController::setDumpStatusCallbacks):
      (LayoutTestController::dumpTitleChanges):
      (LayoutTestController::setDumpTitleChanges):
      (LayoutTestController::dumpWillCacheResponse):
      (LayoutTestController::setDumpWillCacheResponse):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48915 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      00a441a6
    • beidson@apple.com's avatar
      WebKit Mac API should provide a delegate interface for global history. · b0b8ef70
      beidson@apple.com authored
      <rdar://problem/7042773> and https://webkit.org/b/29904
      
      Reviewed by John Sullivan.
      
      WebKit: 
      
      * WebKit.xcodeproj/project.pbxproj:
      
      WebKit/mac: 
      
      * WebView/WebHistoryDelegate.h: Added. New interface for WebKit clients to implement to manage 
        their own global history store.
      
      Object to store all of the bits of data relevant to a page visit:
      * WebView/WebNavigationData.h: Added.
      * WebView/WebNavigationData.mm: Added.
      (-[WebNavigationDataPrivate dealloc]):
      (-[WebNavigationData initWithURLString:title:originalRequest:response:hasSubstituteData:clientRedirectSource:]):
      (-[WebNavigationData url]):
      (-[WebNavigationData title]):
      (-[WebNavigationData originalRequest]):
      (-[WebNavigationData response]):
      (-[WebNavigationData hasSubstituteData]):
      (-[WebNavigationData clientRedirectSource]):
      (-[WebNavigationData dealloc]):
      
      * WebCoreSupport/WebFrameLoaderClient.mm:
      (WebFrameLoaderClient::updateGlobalHistory): If the delegate exists, don't use the built-in WebHistory.
        If the implementation for this method exists, call it.
      (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks): Ditto
      
      * WebView/WebDelegateImplementationCaching.h:
      * WebView/WebDelegateImplementationCaching.mm:
      (WebViewGetHistoryDelegateImplementations):
      (CallHistoryDelegate):
      
      * WebView/WebView.mm:
      (-[WebView _cacheHistoryDelegateImplementations]):
      (-[WebView setHistoryDelegate:]):
      (-[WebView historyDelegate]):
      * WebView/WebViewData.h:
      * WebView/WebViewPrivate.h:
      
      WebKitTools: 
      
      Adding the dumping of global history delegate callbacks.
      
      * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
      
      Automatically dump history delegate callbacks for tests with "globalhistory/" in their URL:
      * DumpRenderTree/mac/DumpRenderTree.mm:
      (createWebViewAndOffscreenWindow):
      (allocateGlobalControllers):
      (shouldLogFrameLoadDelegates):
      (shouldLogHistoryDelegates):
      (runTest):
      
      Dump history delegate callbacks:
      * DumpRenderTree/mac/HistoryDelegate.h: Added.
      * DumpRenderTree/mac/HistoryDelegate.mm: Added.
      (-[HistoryDelegate webView:didNavigateWithNavigationData:inFrame:]):
      (-[HistoryDelegate webView:didPerformClientRedirectFromURL:toURL:inFrame:]):
      (-[HistoryDelegate webView:didPerformServerRedirectFromURL:toURL:inFrame:]):
      
      LayoutTests: 
      
      * http/tests/globalhistory: Added.
      * http/tests/globalhistory/history-delegate-basic-302-redirect-expected.txt: Added.
      * http/tests/globalhistory/history-delegate-basic-302-redirect.html: Added.
      * http/tests/globalhistory/history-delegate-basic-refresh-redirect-expected.txt: Added.
      * http/tests/globalhistory/history-delegate-basic-refresh-redirect.html: Added.
      * http/tests/resources/notify-done.html: Added.
      * http/tests/resources/redirect.php: Augment to optionally do "Refresh:"-style redirects.
      
      Skip these new tests on all platforms that don't have history delegates (yet):
      * platform/gtk/Skipped:
      * platform/qt/Skipped:
      * platform/win/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48914 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b0b8ef70
    • yong.li@torchmobile.com's avatar
      2009-09-29 Yong Li <yong.li@torchmobile.com> · 9c89fdba
      yong.li@torchmobile.com authored
              Reviewed by Darin Adler.
      
              Add an ASSERT for UTF8Encoding().isValid()
              https://bugs.webkit.org/show_bug.cgi?id=29908
      
              * platform/text/TextEncoding.cpp:
              (WebCore::UTF8Encoding):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48913 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9c89fdba
    • hyatt@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=29892 · 5d1c0e78
      hyatt@apple.com authored
      Add support for whitelist patterns to control conditional injection of user scripts and
      user stylesheets.
      
      Reviewed by Jon Honeycutt.
      
      No new tests. Not testable until WebKit portion is added in followup patch.
      
      * GNUmakefile.am:
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * dom/Document.cpp:
      (WebCore::Document::pageGroupUserSheets):
      * page/Frame.cpp:
      (WebCore::Frame::injectUserScriptsForWorld):
      * page/UserContentURLPattern.cpp: Added.
      (WebCore::UserContentURLPattern::matchesPatterns):
      (WebCore::UserContentURLPattern::parse):
      (WebCore::UserContentURLPattern::matches):
      (WebCore::UserContentURLPattern::matchesHost):
      (WebCore::MatchTester::MatchTester):
      (WebCore::MatchTester::testStringFinished):
      (WebCore::MatchTester::patternStringFinished):
      (WebCore::MatchTester::eatWildcard):
      (WebCore::MatchTester::eatSameChars):
      (WebCore::MatchTester::test):
      (WebCore::UserContentURLPattern::matchesPath):
      * page/UserContentURLPattern.h: Added.
      (WebCore::UserContentURLPattern::UserContentURLPattern):
      (WebCore::UserContentURLPattern::scheme):
      (WebCore::UserContentURLPattern::host):
      (WebCore::UserContentURLPattern::path):
      (WebCore::UserContentURLPattern::matchSubdomains):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48912 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5d1c0e78
    • dbates@webkit.org's avatar
      2009-09-29 Daniel Bates <dbates@webkit.org> · 59ac2d39
      dbates@webkit.org authored
              Reviewed by Adam Barth.
      
              https://bugs.webkit.org/show_bug.cgi?id=29837
              
              More tests for the XSSAuditor.
      
              * http/tests/security/xssAuditor/embed-tag-javascript-url-expected.txt: Added.
              * http/tests/security/xssAuditor/embed-tag-javascript-url.html: Added.
              * http/tests/security/xssAuditor/meta-tag-http-refresh-javascript-url-expected.txt: Added.
              * http/tests/security/xssAuditor/meta-tag-http-refresh-javascript-url.html: Added.
              * http/tests/security/xssAuditor/object-tag-javascript-url-expected.txt: Added.
              * http/tests/security/xssAuditor/object-tag-javascript-url.html: Added.
              * http/tests/security/xssAuditor/property-escape-noquotes-expected.txt: Added.
              * http/tests/security/xssAuditor/property-escape-noquotes-tab-slash-chars-expected.txt: Added.
              * http/tests/security/xssAuditor/property-escape-noquotes-tab-slash-chars.html: Added.
              * http/tests/security/xssAuditor/property-escape-noquotes.html: Added.
              * http/tests/security/xssAuditor/property-inject-expected.txt: Added.
              * http/tests/security/xssAuditor/property-inject.html: Added.
              * http/tests/security/xssAuditor/resources/echo-head.pl: Added.
              * http/tests/security/xssAuditor/resources/echo-inner-tag.pl: Added.
              * http/tests/security/xssAuditor/resources/echo-property-noquotes.pl: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48911 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      59ac2d39