summaryrefslogtreecommitdiffstats
path: root/webkit/glue
Commit message (Collapse)AuthorAgeFilesLines
* WebKit Merge 40875:41017, Chromium sidedglazkov@google.com2009-02-162-2/+23
| | | | | | | | | | | | | | R=tc BUG=NONE The changes are to account for: http://trac.webkit.org/changeset/40925 -- Adding MediaPlayerPrivate http://trac.webkit.org/changeset/40981 -- Converting GKURL constructor arg to CString. Review URL: http://codereview.chromium.org/20409 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9860 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 9855.maruel@chromium.org2009-02-165-90/+0
| | | | | | | This change didn't have any description and it broke the tree Review URL: http://codereview.chromium.org/21393 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9856 0039d316-1c4b-4281-b951-d872f2087c98
* Review URL: http://codereview.chromium.org/20405yurys@google.com2009-02-165-0/+90
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9855 0039d316-1c4b-4281-b951-d872f2087c98
* Match the Windows plugin moving/sizing behavior on Linux.deanm@chromium.org2009-02-154-20/+28
| | | | | | | | | | | | | This keep the sizing operations in WebPluginDelegateImpl, and does the moving in DidMove. This more or less matches what currently happens on Windows. Add a comment explaining this situation better. Add some random comments and small code cleanup. Remove the flash useragent spoofing hack on non-Windows, we don't need to worry about this for now. Review URL: http://codereview.chromium.org/20304 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9843 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting r9823 (http://codereview.chromium.org/16207) because dkegel@google.com2009-02-141-4/+1
| | | | | | | | | | | | | | | | | | | | | 1) the Interactive Tests (dbg) buildbot needs the SSL cert installed 2) the same buildbot showed a refcounting problem, e.g. FATAL:ref_counted.cc(22)] Check failed: in_dtor_. RefCounted object deleted without calling Release() c:\b\slave\chromium-dbg-builder\build\src\chrome\browser\views\find_bar_win_interactive_uitest.cc(57): error: Value of: NULL != server.get() Actual: false Expected: true [ FAILED ] FindInPageTest.CrashEscHandlers (2109 ms) 3) the Webkit Linux buildbot failed four tests redirect302-frames.html cross-frame-access-protocol-explicit-domain.html cross-frame-access-protocol.html origin-header-for-https.html I'm leaving the tcp_pinger files in for the moment, they shouldn't hurt anything. Review URL: http://codereview.chromium.org/23028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9827 0039d316-1c4b-4281-b951-d872f2087c98
* ssl_client_socket_unittest.cc: launch local server with TestServerLauncher dkegel@google.com2009-02-141-1/+4
| | | | | | | | | | | | | | | | | | | | | | rather than use bugs.webkit.org, fixes TODO(darin) Add tests with bad server certs ssl_client_socket_nss.cc: fix bugs revealed by new tests tcp_pinger.cc: helper class to do synchronous connect from tests. Has to work inside ui tests where one can't use TestCompletionCallback. ssl_test_util: renamed class TestServerLauncher, added Start/Stop methods. Make part of net.lib to work around link error in test_shell_tests. url_request_unittest.h: use TestServerLauncher to manage server. SSL client tests disabled for now on Mac. BUG=7114 Review URL: http://codereview.chromium.org/16207 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9823 0039d316-1c4b-4281-b951-d872f2087c98
* Add early-injection capability to user scripts.aa@chromium.org2009-02-142-2/+10
| | | | | | Review URL: http://codereview.chromium.org/19624 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9822 0039d316-1c4b-4281-b951-d872f2087c98
* Fix linux build bustageestade@chromium.org2009-02-141-1/+1
| | | | | | | tbr=jhawkins git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9810 0039d316-1c4b-4281-b951-d872f2087c98
* Change mime type utils to operate on platform-specific string types for ↵estade@chromium.org2009-02-145-11/+39
| | | | | | | | filenames/file extensions. Review URL: http://codereview.chromium.org/21327 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9809 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor CppBoundClass to allow binding one class as a property of another.mpcomplete@google.com2009-02-133-25/+60
| | | | | | | | | Also cached the NPObject we create for a CppBoundClass, so we only create one each time we bind it to a frame. This will be useful for extensions. Review URL: http://codereview.chromium.org/21337 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9802 0039d316-1c4b-4281-b951-d872f2087c98
* WebKit merge 40847-40875 Chrome side.brettw@chromium.org2009-02-132-0/+6
| | | | | | Review URL: http://codereview.chromium.org/21351 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9767 0039d316-1c4b-4281-b951-d872f2087c98
* The WebFrame interface currently supports reference counting, but no one uses.darin@chromium.org2009-02-139-34/+40
| | | | | | | | | | | | | | | | Internally, WebFrameImpl needs reference counting, so we still define it there. Same goes for WebView and WebWidget. While making this change, I noticed that WebInspectorClient was casting WebView pointers to WebViewImpl pointers too much. By just starting with WebViewImpl pointers, things could be cleaned up considerably. R=brettw Review URL: http://codereview.chromium.org/21342 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9745 0039d316-1c4b-4281-b951-d872f2087c98
* Stop crash in renderer at the end of displayingjrg@chromium.org2009-02-131-0/+7
| | | | | | | | | | | | | | | http://dev.chromium.org. Now that webkit merge has landed, actually create a RenderView in RenderThread. With these changes, there is only manual tweak needed (locally called "disable-button.diff") to get bits on the screen for OSX without crashing. Review URL: http://codereview.chromium.org/20349 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9743 0039d316-1c4b-4281-b951-d872f2087c98
* Call the DidStartLoading/DidStopLoading methods on the WebViewDelegate ↵ananta@chromium.org2009-02-131-0/+6
| | | | | | | | | | | | | | | | interface whenever we receive the initial response for a byte range request and when the request eventually completes. This ensures that the throbber continues to spin when these requests take a while. It stops spinning during load when the document load is cancelled by the plugin process. This occurs when the plugin invokes NPN_RequestRead the first time on the stream. This fixes http://code.google.com/p/chromium/issues/detail?id=7375 Bug=7375 Review URL: http://codereview.chromium.org/20333 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9732 0039d316-1c4b-4281-b951-d872f2087c98
* Move v8-specific code for processing console messages mbelshe@google.com2009-02-131-0/+9
| | | | | | | | | when displaying javascript alerts into the glue code. This moves them out of DOMWindow.cpp. Review URL: http://codereview.chromium.org/20317 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9731 0039d316-1c4b-4281-b951-d872f2087c98
* Chromium side of WebKit merge to 40846awalker@google.com2009-02-122-6/+6
| | | | | | | | Darin: primary Brett: FYI Review URL: http://codereview.chromium.org/21243 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9712 0039d316-1c4b-4281-b951-d872f2087c98
* Lots of small nits to help to split off webkit.dll.maruel@chromium.org2009-02-129-67/+102
| | | | | | | | | - Stop directly referencing WebPluginDelegateImpl. - Make the password manager to not allocation the data on heap. - Remove some unneeded includes. Review URL: http://codereview.chromium.org/20208 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9692 0039d316-1c4b-4281-b951-d872f2087c98
* Match Firefox by not calling SetWindow(NULL) on plugin destruction.deanm@chromium.org2009-02-123-25/+13
| | | | | | | | This matches the behavior of Firefox on Windows and Linux. This change is especially important for plugin compatability on Linux. This also nicely removes a quirk mode. Review URL: http://codereview.chromium.org/21290 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9653 0039d316-1c4b-4281-b951-d872f2087c98
* Revert WebFrameImpl::ComputePageRects() (webkit\glue\webframe_impl.cc)maruel@google.com2009-02-121-8/+4
| | | | | | | | | | | | implementation to rev 9214. The pages_ member of WebFrameImpl must be set properly or printing will fail. Patch contributed by Marshall Greenblatt <magreenblatt@gmail.com> Review url: http://codereview.chromium.org/20222/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9652 0039d316-1c4b-4281-b951-d872f2087c98
* Change url wstrings to GURLSestade@chromium.org2009-02-123-102/+87
| | | | | | Review URL: http://codereview.chromium.org/20273 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9635 0039d316-1c4b-4281-b951-d872f2087c98
* Fix bug where right click in a text area selects empty space.sidchat@google.com2009-02-111-1/+8
| | | | | | | Issue=6107 Review URL: http://codereview.chromium.org/20280 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9613 0039d316-1c4b-4281-b951-d872f2087c98
* Media player availability now determined by SetMediaPlayerAvailable.scherkus@chromium.org2009-02-111-0/+4
| | | | | | | | Instead of relying on the command line, RenderProcess will attempt to load and enable the media player if possible. This is the first in a few changes where I'll be adding in hooks to load media DLLs at runtime if present. Review URL: http://codereview.chromium.org/20253 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9584 0039d316-1c4b-4281-b951-d872f2087c98
* This CL ensures we don't store empty values in the autofill form DB.jcampan@chromium.org2009-02-111-1/+11
| | | | | | | | | | Also it applies a clean-up to remove any empty values previously stored in the DB. BUG=6111 TEST=Submit a form and leave some fields empty. Come back to that form, click on a field that was empty. No autofill popup should show up (or if one show up, it should not contains empty values). Review URL: http://codereview.chromium.org/21217 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9570 0039d316-1c4b-4281-b951-d872f2087c98
* Add an #if around user_gesture_msg_factory_ to unbreak the Linuxamanda@chromium.org2009-02-111-0/+2
| | | | | | | | | build, add another missed file (plugin_impl_mac.h) to unbreak the Mac build. Review URL: http://codereview.chromium.org/21245 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9561 0039d316-1c4b-4281-b951-d872f2087c98
* Forgot webplugin_delegate_impl_mac.cc in r9558amanda@chromium.org2009-02-111-0/+457
| | | | | | Review URL: http://codereview.chromium.org/21244 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9560 0039d316-1c4b-4281-b951-d872f2087c98
* Checkpoint of plugin support code for Mac. Does not work yet; being checkedamanda@chromium.org2009-02-114-47/+70
| | | | | | | | in to help stay in sync with linux plugin mods and ensure that it doesn't break Windows plugins. Review URL: http://codereview.chromium.org/21095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9558 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land the WebKit merge 40722:40785.darin@chromium.org2009-02-106-15/+17
| | | | | | | | TBR=amanda Review URL: http://codereview.chromium.org/21197 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9462 0039d316-1c4b-4281-b951-d872f2087c98
* Rollback WebKit merge since background images don't paint.darin@chromium.org2009-02-096-17/+15
| | | | | | | | TBR=amanda Review URL: http://codereview.chromium.org/21193 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9434 0039d316-1c4b-4281-b951-d872f2087c98
* WebKit merge 40722:40785 (part 2)darin@chromium.org2009-02-096-15/+17
| | | | | | | | | Account for the renaming of toRange to toNormalizedRange done by Eric Seidel. R=amanda Review URL: http://codereview.chromium.org/20192 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9427 0039d316-1c4b-4281-b951-d872f2087c98
* Add Threading Support based on Chromium's MessageLoop, Chromium ↵dglazkov@google.com2009-02-093-0/+32
| | | | | | | | side.R=darin,brettw Review URL: http://codereview.chromium.org/19725 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9426 0039d316-1c4b-4281-b951-d872f2087c98
* This changes the approach for our webkit widget area, from using a custom ↵deanm@chromium.org2009-02-091-4/+57
| | | | | | | | | | | | | | | | | | | | | GtkContainer to a GtkFixed container. Our previous custom container did not track its children, which meant it couldn't propagate size-request and size-allocate. In some ways this is what we wanted, however it prevented GtkSocket from running some important code. Specifically an expose event wouldn't trigger initially on the GtkSocket, leaving the widget window unpainted. Instead of writing / copying container code to manage children, it is much easier if we can reuse an existing container. This changes makes the drawing area a GtkFixed backed by a GdkWindow, and we paint into its window. We implement a small custom widget around GtkSocket, which allows us to control the size requisition phase. This solves the problem of controlling the GtkSocket layout within the container. Plugins are now painted correctly, without having to jiggle the scrollbar. This change additionally groups all of the widget code in a class of statics. GtkFixedSocket implements the GtkSocket with custom size requisition. WebWidgetHostGtkWidget is just a GtkFixed with a window, along with the signal connection handlers. This also means we'll have no custom container implementation to share across test_shell and the browser. It seems we still don't handle keyboard focus exactly right, and youtube videos still need mouse events to repaint. I believe these are subtle issues, and can be solved while keeping the GtkFixed container approach. Review URL: http://codereview.chromium.org/20128 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9407 0039d316-1c4b-4281-b951-d872f2087c98
* Retrying previous changelist. I can't get this to fail finnur@google.com2009-02-093-18/+24
| | | | | | | | | | | locally so I am checking this in again and debugging live. TBR=nsylvain (already reviewed by mbelshe) Review URL: http://codereview.chromium.org/21175 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9398 0039d316-1c4b-4281-b951-d872f2087c98
* Selecting an item in the autocomplete popup would cause a crasher.jcampan@chromium.org2009-02-092-31/+46
| | | | | | | | | | | | | | This was caused by a change in the PopupMenuChromium where the popup would first hide itself before setting the selection. We use to delete our client on hide, causing a crasher when setting the selection. This new CL makes the autocomplete popup and client live as long as the WebView is alive and the WebView reuse them (we just hide the popup when necessary). TEST=In a form, type some text in an input field. Make sure the autocomplete popups up and behaves as expected. BUG=7435 Review URL: http://codereview.chromium.org/21153 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9397 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 9394.ojan@google.com2009-02-092-0/+6
| | | | | | | Relanding merge for the third time. Darin will fix mac build. Review URL: http://codereview.chromium.org/20183 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9395 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 9393.ojan@google.com2009-02-092-6/+0
| | | | | | | Merge still broken on a mac clobber build. Review URL: http://codereview.chromium.org/20182 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9394 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 9383.ojan@google.com2009-02-092-0/+6
| | | | | | | Try again to land webkit merge. Review URL: http://codereview.chromium.org/21173 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9393 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 9380,9379,9378.ojan@google.com2009-02-092-6/+0
| | | | | | | Reverting merge. Mac build mysteriously broken Review URL: http://codereview.chromium.org/21164 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9383 0039d316-1c4b-4281-b951-d872f2087c98
* WebKit merge 40668:40722 part 2.ojan@google.com2009-02-092-0/+6
| | | | | | Review URL: http://codereview.chromium.org/20151 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9380 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 9366.finnur@google.com2009-02-073-24/+18
| | | | | | | Reverting due to failures in layout tests Review URL: http://codereview.chromium.org/21159 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9374 0039d316-1c4b-4281-b951-d872f2087c98
* Implementing that callback required to passfinnur@google.com2009-02-073-18/+24
| | | | | | | | | | | | | LayoutTest/fast/dom/assign-to-window-status.html which is testing whether we can assign values to window.status. BUG=1143492 Review URL: http://codereview.chromium.org/21147 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9366 0039d316-1c4b-4281-b951-d872f2087c98
* Add logging to NP_Initialize and CP_Initialize to try to figure out why gearsmpcomplete@google.com2009-02-061-0/+4
| | | | | | | is failing to load. Review URL: http://codereview.chromium.org/21138 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9348 0039d316-1c4b-4281-b951-d872f2087c98
* Add a command line option --disable-web-security. People can use this ↵abarth@chromium.org2009-02-062-0/+3
| | | | | | | | | | | option when the same-origin policy interferes with testing their web sites. R=deanm BUG=6449 Review URL: http://codereview.chromium.org/20101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9337 0039d316-1c4b-4281-b951-d872f2087c98
* Reference and create a RenderView when needed.jrg@chromium.org2009-02-061-6/+25
| | | | | | | | | This initiates the landslide of linker hell in Chromium.app, bringing in webkit, v8, and the kitchen sink. Review URL: http://codereview.chromium.org/21123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9335 0039d316-1c4b-4281-b951-d872f2087c98
* Make the mime -> extension code return a dotless extension.deanm@chromium.org2009-02-061-1/+2
| | | | | | | | | | | Previously we would return something like ".html", because that's how it's stored in the registry on Windows. For a variety of reasons, it's much simpler to work without the prefixed dot. In fact, the only two consumers were manually stripping of the prefix dot. There is a cooresponding change that should happen in WebKit / ChromiumBridge, but since it's checking if there is a prefix dot and removing it, the code will still work, and I'll follow up with that change. Review URL: http://codereview.chromium.org/23010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9333 0039d316-1c4b-4281-b951-d872f2087c98
* Get 6 more layout tests passing.finnur@google.com2009-02-061-3/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems at some point we disabled the platform test folder entirely in order to disable some Mac specific tests and in the process disabled some Windows tests because they appear in a sub-folder of the platform folder. This change makes us pass 6 more tests from platform/win/fast/events/, tests which needed the function dispatchMessage (and a few properties) added to TestShell. I also implemented the IS_NUMPAD modifier on the Keyboard event. A good test that relies on dispatchMessage, the properties and the NumPad detection is: LayoutTests\platform\win\fast\events\keyLocation-numpad.html. Note: This folder also contains... LayoutTests/platform/win/editing/shift-page-up-down.html ... which was added to the defer list for now. Review URL: http://codereview.chromium.org/21113 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9316 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for http://code.google.com/p/chromium/issues/detail?id=7429mbelshe@google.com2009-02-061-2/+4
| | | | | | | | | | | | | | | | | | | | | The problem is that webkit's timers are all based off the WTF/CurrentTime implementation, but the bridge was doing math between a webkit that implementation of currentTime and Chromium's base/Time implementation. Subtracting two different times leads to skew, which turned out to always be negative, so the CPU was spinning for most all timers. This bug was introduced during the merge which brought in timers. From the outside, functionality was correct (timers fired at the right time), but internally we could spin the CPU in while waiting for the timer to fire. There is some code to remove from SystemTimeChromium, which I will do, but that is in the webkit tree, so I'll do that separately. Review URL: http://codereview.chromium.org/21122 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9307 0039d316-1c4b-4281-b951-d872f2087c98
* The final bits needed so we can navigate away from Flash pages without ↵evan@chromium.org2009-02-052-39/+28
| | | | | | | | | | | | | | crashing. Also fixes the plugin positioning. We needed to catch plug-removed and return TRUE, as well as implement a bit more of the GtkContainer API. Also, Flash seems to crash no matter what when I call the SetWindow with a NULL window, so don't do that for now. (It can be revisited once that code is remerged.) Review URL: http://codereview.chromium.org/22003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9274 0039d316-1c4b-4281-b951-d872f2087c98
* Remove webkit glue stubs.jrg@chromium.org2009-02-051-29/+0
| | | | | | | | | Make unit tests link with libglue.a directly. OSX-only change. Review URL: http://codereview.chromium.org/21065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9264 0039d316-1c4b-4281-b951-d872f2087c98
* Stop using the function computePageRects() duplicated in FrameChromium.cpp.maruel@chromium.org2009-02-051-4/+8
| | | | | | | Use the code from PrintContext instead. Review URL: http://codereview.chromium.org/20058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9258 0039d316-1c4b-4281-b951-d872f2087c98
* Disable the WanWang protocol handler plugin (npww.dll) as it crashes during ↵ananta@chromium.org2009-02-051-0/+8
| | | | | | | | | | | | shutdown. This fixes bug http://code.google.com/p/chromium/issues/detail?id=3953 Bug=3953 Review URL: http://codereview.chromium.org/20087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9224 0039d316-1c4b-4281-b951-d872f2087c98