summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell
Commit message (Collapse)AuthorAgeFilesLines
* linux: TCMalloc-based C++ heap profiler.willchan@chromium.org2009-11-113-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requires compiling with linux_use_tcmalloc=1. When enabled by --heap-profiler flag in test_shell exposes chromium.HeapProfiler object to JavaScript. The object has three methods: o start() -- starts profiling o dump() -- dumps data accumulated since start() to file named like chromium-YYYY-MM-DD-TS.heap o stop() -- stops profiling. Output can be analyzed by third_party/tcmalloc/tcmalloc/src/pprof. For example: $ third_party/tcmalloc/tcmalloc/src/pprof \ sconsbuild/Release/test_shell \ chromium-2009-11-06-1234567890.heap See http://code.google.com/p/google-perftools/ for details on how to use pprof. Patch contributed by vitalyr@chromium.org. Original review at http://codereview.chromium.org/377010/show. TBR=vitalyr Review URL: http://codereview.chromium.org/390015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31688 0039d316-1c4b-4281-b951-d872f2087c98
* Add method to control whether local files get universal access during testing.cevans@chromium.org2009-11-112-0/+12
| | | | | | | | | | | This is required to test any form of local filesystem access restrictions. BUG=20450 TEST=Needed for LayoutTests/fast/xmlhttprequest/xmlhttprequest-nonexistent-file.html Review URL: http://codereview.chromium.org/384015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31643 0039d316-1c4b-4281-b951-d872f2087c98
* 'RuntimeEnable' the appcache for test_shell.michaeln@google.com2009-11-101-0/+1
| | | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/377027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31601 0039d316-1c4b-4281-b951-d872f2087c98
* Commit issue 243032: First implementation of PlainTextController.rolandsteiner@chromium.org2009-11-095-7/+116
| | | | | | | | | | | BUG=23285 TEST=LayoutTests/editing/text-iterator/basic-iteration.html Review URL=http://codereview.chromium.org/243032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31422 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache changes to the networking model. Added new classes ↵michaeln@google.com2009-11-091-0/+2
| | | | | | | | | | AppCacheRequestHandler and AppCacheURLRequestJob. TEST=appcache_url_request_job_unittest.cc, appcache_request_handler_unittest.cc BUG=none Review URL: http://codereview.chromium.org/338034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31411 0039d316-1c4b-4281-b951-d872f2087c98
* Move PasswordAutocompleteListener into the WebKit API (AGAIN)yaar@chromium.org2009-11-072-2/+2
| | | | | | | | | Copy of: http://codereview.chromium.org/360013/show Head to create as new patch due to messy merge. Review URL: http://codereview.chromium.org/376017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31350 0039d316-1c4b-4281-b951-d872f2087c98
* Fix build.thakis@chromium.org2009-11-061-0/+2
| | | | | | | | TBR=jcampan Review URL: http://codereview.chromium.org/372032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31300 0039d316-1c4b-4281-b951-d872f2087c98
* Third patch in making destructors of refcounted objects private.jam@chromium.org2009-11-055-10/+32
| | | | | | | BUG=26749 Review URL: http://codereview.chromium.org/363023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31169 0039d316-1c4b-4281-b951-d872f2087c98
* Fix up broken test_shell due to CL http://codereview.chromium.org/345051.dmaclach@chromium.org2009-11-051-2/+3
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/375001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31153 0039d316-1c4b-4281-b951-d872f2087c98
* Initial WebSharedWorkerImpl implementationatwilson@chromium.org2009-11-051-0/+1
| | | | | | | | | | | | | | | Refactored WebWorkerImpl into WebWorkerBase to enable code sharing with WebSharedWorkerImpl. Changed how SharedWorkers are instantiated (now routed through WebFrameClient just like DedicatedWorkers, because WebFrameClient is the only one who knows how to send messages to RenderViewHost. BUG=26233 TEST=none (will enable layout tests when basic functionality available) Review URL: http://codereview.chromium.org/362020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31151 0039d316-1c4b-4281-b951-d872f2087c98
* Switch over to the new way of enabling/disabling session/local storage. jorlow@chromium.org2009-11-051-1/+0
| | | | | | | | BUG=none TEST=|'localStorage' in window| should only be true iff --enable-local-storage is specified Review URL: http://codereview.chromium.org/335034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31082 0039d316-1c4b-4281-b951-d872f2087c98
* Enable the URL portion of storage events. This is mostly just plumbing + a ↵jorlow@chromium.org2009-11-051-3/+4
| | | | | | | | | | | | | hack for making them work in test shell and single process mode. This replaces http://codereview.chromium.org/335034/show TEST=none BUG=24581 Review URL: http://codereview.chromium.org/363014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31081 0039d316-1c4b-4281-b951-d872f2087c98
* FFmpeg in-tree build for mac.ajwong@chromium.org2009-11-051-3/+1
| | | | | | | | | BUG=26509 TEST=none Review URL: http://codereview.chromium.org/340072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31050 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce WebAccessibilityControllerImpl.dglazkov@chromium.org2009-11-041-3/+3
| | | | | | | | | | | | Removes accessibility-related WebCore dependencies from glue. R=darin TEST=none BUG=24616 Review URL: http://codereview.chromium.org/348063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30986 0039d316-1c4b-4281-b951-d872f2087c98
* Add default implementations for WebViewClient and WebWidgetClientdarin@chromium.org2009-11-041-55/+0
| | | | | | | | | | | | | | | methods. Once these interfaces live upstream, we'll want to allow the addition of new methods w/o requiring the consumer (chrome) to implement the new methods. That'll make webkit merging easier, and it'll also make it possible to use a newer webkit with an older chrome. Obviously, this only works if the methods are not crucial to webkit working properly, but that is generally the case for *Client methods. R=dglazkov BUG=none TEST=none Review URL: http://codereview.chromium.org/346042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30943 0039d316-1c4b-4281-b951-d872f2087c98
* linux: add whitespace in an error messageevan@chromium.org2009-11-041-1/+1
| | | | | | This has been bugging me. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30905 0039d316-1c4b-4281-b951-d872f2087c98
* test_shell_common alwayss depend on npapi_layout_test_pluginevan@chromium.org2009-11-031-0/+1
| | | | | | | Previously it was conditional on !x64, but I fixed that earlier today and forgot to readd the dependency. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30874 0039d316-1c4b-4281-b951-d872f2087c98
* linux: fix and build test plugins on 64-bit buildsevan@chromium.org2009-11-031-78/+80
| | | | | | | | | | | | | | | We set -fPIC just on the layout test plugins and only in 64-bit mode. This fixes 44 plugin layout tests on 64-bit. (Retry, now just npapi_layout_test_plugin and not npapi_test_plugin.) BUG=18337,24271 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30851 Review URL: http://codereview.chromium.org/353022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30864 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "linux: fix and build test plugins on 64-bit builds"evan@chromium.org2009-11-031-157/+165
| | | | | | This reverts commit r30851. Build breakage. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30854 0039d316-1c4b-4281-b951-d872f2087c98
* linux: fix and build test plugins on 64-bit buildsevan@chromium.org2009-11-031-165/+157
| | | | | | | | | | | We set -fPIC just on the layout test plugins and only in 64-bit mode. This fixes 44 plugin layout tests on 64-bit. BUG=18337,24271 Review URL: http://codereview.chromium.org/353022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30851 0039d316-1c4b-4281-b951-d872f2087c98
* Eliminate WebViewImpl's dependency on WebDevToolsAgentImpl.darin@chromium.org2009-11-031-3/+0
| | | | | | | | | | | | | | | | | | This CL decouples the implementation of WebDevToolsAgent from the implementation of WebViewImpl. While this allows me to postpone the uplift of glue/devtools into webkit/api/src, I think it also has the advantage of simplifying dependencies. WebDevToolsAgentPrivate is introduced for the method calls made by the FrameLoaderClientImpl to the WebDevToolsAgentImpl. R=dglazkov BUG=none TEST=none Review URL: http://codereview.chromium.org/342092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30833 0039d316-1c4b-4281-b951-d872f2087c98
* Chrome changes to extract the code from V8Proxy that special-casesdarin@chromium.org2009-11-032-10/+2
| | | | | | | | | | | | | | | | | | | | | when scripts are allowed despite user preferences disabling them. Adds more accessors and comments to WebSecurityOrigin. Removes no longer necessary webkit_glue functions. Removes no longer necessary TemporaryGlue.h file. R=abarth BUG=none TEST=browser features like the new tab page and history view should still work when passing --disable-javascript to chrome. similarly, file and ftp directory listings should remain functional when that command line flag is specified. Review URL: http://codereview.chromium.org/351013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30797 0039d316-1c4b-4281-b951-d872f2087c98
* Extract webkit api target from webkit.gypyaar@chromium.org2009-11-021-2/+2
| | | | | | | | (in preparation for upstreaming the api) Review URL: http://codereview.chromium.org/340049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30764 0039d316-1c4b-4281-b951-d872f2087c98
* Adding Chromium's database tracker.dumi@chromium.org2009-11-021-0/+2
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/334039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30747 0039d316-1c4b-4281-b951-d872f2087c98
* Remove WebCore dependency from accessibility_controller.dglazkov@chromium.org2009-11-022-10/+5
| | | | | | | | | | Also, introduce (stubbed out) WebAccessibilityController. R=darin TEST=none BUG=24616 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30716 0039d316-1c4b-4281-b951-d872f2087c98
* Show status bubble for links that have keyboard focus. estade@chromium.org2009-10-301-0/+1
| | | | | | | | | | | | | I tried to just piggy-back off of existing chrome client calls (particularly focus()), but that didn't handle blurs. webkit side is here: http://codereview.chromium.org/328034/show BUG=453 original review: http://codereview.chromium.org/337032/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30629 0039d316-1c4b-4281-b951-d872f2087c98
* Ensure that NPN_PluginThreadAsyncCall callbacks are not invoked after ↵apatrick@google.com2009-10-301-0/+2
| | | | | | | | | | | NPP_Destroy. TEST=none BUG=none Review URL: http://codereview.chromium.org/338050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30628 0039d316-1c4b-4281-b951-d872f2087c98
* Remove WebCore dependencies from accessibility_ui_element.dglazkov@chromium.org2009-10-301-115/+95
| | | | | | | | | | R=darin BUG=24596 TEST=no regressions Review URL: http://codereview.chromium.org/343060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30617 0039d316-1c4b-4281-b951-d872f2087c98
* Initial pass of shared workers renderer-side codeatwilson@chromium.org2009-10-301-0/+4
| | | | | | | | | | | | | Added initial interface hooks betweek WebKit code and renderer-side worker code. The proper messages are generated to fire off a shared worker, but they are currently ignored by the browser process. BUG=26233 TEST=none (will enable layout tests when basic functionality available) Review URL: http://codereview.chromium.org/340036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30599 0039d316-1c4b-4281-b951-d872f2087c98
* Move various runtime enabled features into a WebRuntimeFeatures class.darin@chromium.org2009-10-301-5/+5
| | | | | | | | | | | | There are separate functions to set/test each feature. R=jorlow BUG=25286 TEST=none Review URL: http://codereview.chromium.org/343001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30564 0039d316-1c4b-4281-b951-d872f2087c98
* Add layoutTestController.counterValueForElementByIdhamaji@chromium.org2009-10-302-0/+19
| | | | | | | | | | | | | | Now we can test CSS counters with dumpAsText(). The corresponding upstream bug: https://bugs.webkit.org/show_bug.cgi?id=30555 BUG=none TEST=none Review URL: http://codereview.chromium.org/338056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30554 0039d316-1c4b-4281-b951-d872f2087c98
* Make run_webkit_tests work on Windows 7. dpranke@google.com2009-10-291-11/+16
| | | | | | | | | | | | | | | | | We modify test_shell --check-sys-deps to allow Win 7, add a "chromium-win-7" port to platform_utils, a "WIN-7" port to test_expectations, and create an empty shell directory under webkit/data/layout_tests to make the regression scripts happy. The actual new baselines will follow in a separate CL. R=ojan@chromium.org TEST=none BUG=none Review URL: http://codereview.chromium.org/342033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30528 0039d316-1c4b-4281-b951-d872f2087c98
* Ignore output to stdout that comes before we've started loading a test.ojan@chromium.org2009-10-291-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are tests that, for example, log errors to the console after calling notifyDone. In those cases, we'd get the following: TestDumpHere #EOF CONSOLE MESSAGE: ... NextTestDumpHere #EOF The console message would get lumped in with the next test. Now we get: #URL:LayoutTests/foo/bar.html TestDumpHere #EOF CONSOLE MESSAGE: ... #URL:LayoutTest/foo/baz.html NextTestDumpHere #EOF We only include the lines between URL and EOF in the test's actual output. All text between EOF and URL gets printed as a warning. Right now, that includes stacktraces from crashing tests. In a followon change, I'll make it so that we properly list crash stacktraces separately. See https://bugs.webkit.org/show_bug.cgi?id=30598 for one such test with this problem. Upstream doesn't see the flakiness we see here due to the following webkit bug: https://bugs.webkit.org/show_bug.cgi?id=30893. BUG=25355 Surprisingly, this passes on the try bots. So it just reduces flakiness. Review URL: http://codereview.chromium.org/315007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30489 0039d316-1c4b-4281-b951-d872f2087c98
* Fix hardcoded path directory for linux and mac builds.dpranke@google.com2009-10-292-4/+4
| | | | | | | | | | | | (landing on behalf of kinuko@google.com). This fixes bug 17509 and bug 10371. BUG=17509,10371 R=dpranke@chromium.org TEST=LayoutTests/fast/loader/local-CSS-from-local.html git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30442 0039d316-1c4b-4281-b951-d872f2087c98
* Move glue/EditorClientImpl.h/cpp to webkit/api/srcyaar@chromium.org2009-10-271-1/+2
| | | | | | Review URL: http://codereview.chromium.org/330021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30270 0039d316-1c4b-4281-b951-d872f2087c98
* Modify DataPacks so they can return RefCountedStaticMemory objects.erg@google.com2009-10-272-6/+6
| | | | | | | | | | (This is in preparation for a very large reworking of BrowserThemeProvider). BUG=http://crbug.com/21121 Review URL: http://codereview.chromium.org/338027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30241 0039d316-1c4b-4281-b951-d872f2087c98
* Move console stack dumping code to a function so it can be reused in ↵maruel@chromium.org2009-10-274-5/+12
| | | | | | | | | | test_shell_tests. TEST=none BUG=13770 Review URL: http://codereview.chromium.org/339024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30220 0039d316-1c4b-4281-b951-d872f2087c98
* Let layout tests run on Windows 7.maruel@chromium.org2009-10-271-2/+3
| | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/337043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30211 0039d316-1c4b-4281-b951-d872f2087c98
* A quick fix for Issue 23745.hbono@chromium.org2009-10-271-11/+13
| | | | | | | | | | | This issue is caused by my another mistake that I forgot changing test_shell to apply my input-code refactoring. (Since my refactoring, EventSendingController::keyDown() doesn't need platform-dependent code.) This change just removes the platform-dependent code in EventSendingController::keyDown() and updates 'test_expectations.txt'. BUG=23745 TEST=run-webkit-tests.sh LayoutTests/fast/events/node-event-anchor-lock.html Review URL: http://codereview.chromium.org/258032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30175 0039d316-1c4b-4281-b951-d872f2087c98
* Implemented NPN_ScheduleTimer and NPN_UnscheduleTimer.apatrick@google.com2009-10-261-3/+5
| | | | | | | | | TEST=none BUG=18020 Review URL: http://codereview.chromium.org/329013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30105 0039d316-1c4b-4281-b951-d872f2087c98
* Fix test_shell_tests.exe runtime dependency.maruel@chromium.org2009-10-261-4/+0
| | | | | | | | TEST=build test_shell_tests only and run. BUG=none Review URL: http://codereview.chromium.org/335030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30081 0039d316-1c4b-4281-b951-d872f2087c98
* [mac] Send cmd-c and friends back to browser.thakis@chromium.org2009-10-261-0/+10
| | | | | | | | | | | | | | | | Fixes cmd-c, cmd-v, cmd-x, cmd-a. The menu blinking is worth the extra IPC hop. BUG=25254 TEST=Select text, hit cmd-c. "Edit" menu should blink. Hit cmd-v. "Edit" menu should blink again, correct text should be pasted. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30045 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=30046 Review URL: http://codereview.chromium.org/330014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30079 0039d316-1c4b-4281-b951-d872f2087c98
* Delay OnClose actions.ukai@chromium.org2009-10-261-21/+34
| | | | | | | | | | | | | | If we reset delegate_ in OnClose, some pending tasks for DoOnReceivedData would fail to notify received data to the delegate. Don't reset delegate_ and socket_ in OnClose. Do it in DoOnClose instead. BUG=none TEST=none Review URL: http://codereview.chromium.org/326010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30036 0039d316-1c4b-4281-b951-d872f2087c98
* MockAppCacheStorage implementionmichaeln@google.com2009-10-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | This is a quick and easy 'mock' implementation of the storage interface that doesn't put anything to disk. We simply add an extra reference to objects when they're put in storage, and remove the extra reference when they are removed from storage. Responses are never really removed from the in-memory disk cache. Delegate callbacks are made asyncly to appropiately mimic what will happen with a real disk-backed storage impl that involves IO on a background thread. This is for use in unit tests and to initially bring up the appcache related layout tests. TEST=mock_appcache_storage_unittest.cc BUG=none Review URL: http://codereview.chromium.org/300043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30017 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce WebScriptController for script related methods.mhm@chromium.org2009-10-233-7/+14
| | | | | | | | | | | Made it into a class with static methods. BUG=24602 TEST=Compiled Webkit/Chromium and Try Bot'd Review URL: http://codereview.chromium.org/308015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29912 0039d316-1c4b-4281-b951-d872f2087c98
* Move initialization of ChromeURLRequestContexts to the IO thread.eroman@chromium.org2009-10-231-7/+12
| | | | | | | | | | | | | | | | | | | | | | | Before, these URLRequestContexts were lazily created from the UI thread. Unfortunately that model made it easy for consumers on the UI thread to poke at stuff which was being used from the IO thread, and introduce races. So instead of providing a URLRequestContext*, the Profile now vends a URLRequestContextGetter*. The consequence of this is: * Consumers on the UI thread can no longer get access to a URLRequestContext. * Consumers on the IO thread need to call URLRequestContextGetter::GetURLRequestContext() to get at the context. This uses the same style lazy-creation of URLRequestContexts, albeit from the IO thread. OK, so now the smelly part: There were a couple of consumers of URLRequestContext on the UI thread that can't easily be moved to the IO thread -- these are the consumers of the cookie store. Before they could happily mess with the cookie store from the UI thread, and this was fine since CookieStore is threadsafe. However under the new model, they have no way to get at the URLRequestContext from the UI thread, hence can't get a pointer to the cookie store. To support that use-cases, I bastardized the API some by adding a URLRequestContextGetter::GetCookieStore() method that lets UI thread consumers get a pointer to the cookie store, since we know this particular cross-thread usage is safe. BUG=http://crbug.com/22294 Review URL: http://codereview.chromium.org/258008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29880 0039d316-1c4b-4281-b951-d872f2087c98
* Allow <video> to read from a data URI. Data URI is now handledhclam@chromium.org2009-10-232-4/+14
| | | | | | | | | | | | | | by SimpleDataSource. Selection of data source is done by the existing factory method by calling to IsMediaFormatSupported. And each data source would determine if they support the mentioned scheme. BUG=24357 TEST=open a video with data:/ scheme. Review URL: http://codereview.chromium.org/284007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29848 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup in webkit/glue to remove some dependencies.darin@chromium.org2009-10-221-5/+3
| | | | | | | | | | | | | | | | Switch scoped_ptr to OwnPtr. Switch base::RefCounted to WTF::RefCounted. Switch string16/wstring to WebCore::String Switch DCHECK to ASSERT. Switch from Chromium #ifdefs to WebKit #ifdefs for ports. R=dglazkov BUG=none TEST=none Review URL: http://codereview.chromium.org/292042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29779 0039d316-1c4b-4281-b951-d872f2087c98
* Make WebSocketStreamHandleBridge RefCountedThreadSafe.ukai@chromium.org2009-10-221-4/+3
| | | | | | | | | | | | | | | | | | In layout_tests, test_shell crashed by /base/ref_counted.cc(60)] Check failed: in_dtor_. RefCountedThreadSafe object deleted without calling Release() in context of test_shell(webkit_glue::WebSocketStreamHandleImpl::Context::DidClose(WebKit::WebSocketStreamHandle*)+0x7d) [0x8f6b34b] Since bridge instance is ref counted object, we must not delete it. Make base class WebSocketStreamHandleBridge RefCountedThreadSafe, and manage it by scoped_refptr. BUG=25399 TEST=layout tests not crashed in XHR tests. Review URL: http://codereview.chromium.org/316008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29769 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce WebSecurityPolicy for security related methods.mhm@chromium.org2009-10-222-7/+10
| | | | | | | | | | | | | | | | | Move security related methods out of WebKit.h into its own class WebSecurityPolicy. This involves these functions: - registerURLSchemeAsLocal - registerURLSchemeAsNoAccess - whiteListAccessFromOrigin - resetOriginAccessWhiteLists BUG=24601 TEST=Compiled locally, try bot'ed. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29639 Review URL: http://codereview.chromium.org/293021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29758 0039d316-1c4b-4281-b951-d872f2087c98