summaryrefslogtreecommitdiffstats
path: root/webkit/glue
Commit message (Collapse)AuthorAgeFilesLines
* Remove GetNextEvent loop from Carbon plugin processingstuartmorgan@chromium.org2010-03-051-19/+0
| | | | | | | | | | | This was originally added to make events in plugin-opened windows work, but it no longer appears to be necessary (presumably because we are now doing full Cocoa initialization vi CrApplication). BUG=none TEST=Plugin-opened windows (Flash 10.0 full screen, Gmail attachment selection, etc.) should still work correctly. Review URL: http://codereview.chromium.org/661317 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40688 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid having every frame of a multipart response create a newtony@chromium.org2010-03-043-1/+42
| | | | | | | | | | | | | | | row in the history database. We do this by setting a flag on the WebURLResponse created for multipart responses and not updating the history db when this flag is set. Take 2, the last landing failed because we weren't always initializing m_isMultipartPayload in ResourceResponse. BUG=34350 Review URL: http://codereview.chromium.org/668050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40613 0039d316-1c4b-4281-b951-d872f2087c98
* Initial change for DumpRrenderTree support librarytkent@google.com2010-03-042-1/+2
| | | | | | | | | | | | | | | | | | | This library provides: - An implementation of WebKitClient, - An implementation of WebPlugin, - An implementation of WebMediaPalyer, - Initialization and termination functions, - Two function for database, and - Some functions required by webkit_glue. webkit_support.gyp is not referred by build/all.gyp. A gyp for DRT/chromium in WebKit tree will refer to it. BUG=none TEST=none. This is a part of test code. Review URL: http://codereview.chromium.org/652226 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40610 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Avoid having every frame of a multipart response create a"tony@chromium.org2010-03-043-42/+1
| | | | | | | | | | This reverts commit r40599. TBR=darin Review URL: http://codereview.chromium.org/668041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40601 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid having every frame of a multipart response create atony@chromium.org2010-03-043-1/+42
| | | | | | | | | | | | new row in the history database. We do this by setting a flag on the WebURLResponse created for multipart responses and not updating the history db when this flag is set. BUG=34350 Review URL: http://codereview.chromium.org/661445 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40599 0039d316-1c4b-4281-b951-d872f2087c98
* Replace a call to settings->setDatabasesEnabled [which is about to go away] withericu@google.com2010-03-041-1/+1
| | | | | | | | | | | | | | a call to WebRuntimeFeatures::enableDatabase. This is to prepare the way for WebKit changes in https://bugs.webkit.org/show_bug.cgi?id=35310. BUG=none TEST=none Review URL: http://codereview.chromium.org/661233 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40594 0039d316-1c4b-4281-b951-d872f2087c98
* Use UpdateDummyWindowBounds to do the initial Carbon plugin window setupstuartmorgan@chromium.org2010-03-031-3/+1
| | | | | | | | | BUG=none TEST=Carbon plugin behavior should be unchanged. Review URL: http://codereview.chromium.org/666013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40568 0039d316-1c4b-4281-b951-d872f2087c98
* Fix low quality scaling of <video> on machclam@chromium.org2010-03-031-5/+23
| | | | | | | | | | | | | | | | | | | BUG=35534 TEST=Use sample in http://crbug.com/35534 Fixing bug 35534 of image quality if CSS scaling is applied to a <video> tag. On mac we currently create an image the same size of the width and height attribute of the <video> tag regardless of the transformation matrix of the canvas. If we use the scaling factor in the transformation matrix and use it directly in the YUV to RGB conversion, not only we solve the problem of low quality image scaling but performance is also improved. Review URL: http://codereview.chromium.org/660435 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40546 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 40490 - Make the pepper 2D flush callback actually function as ↵brettw@chromium.org2010-03-032-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | advertised. It will now get called asynchronously when the bits are actually copied to the screen, rather than synchronously from inside the paint function. This makes it useful for plugins to use the callback for rate limiting. This also adds a lot of infrastructure for running tests on pepper devices, and includes a unit test for the new flush behavior. I made the existing RenderProcess object an abstract interface and made the existing MockProcess (renamed to be more clear) implement that. This avoids a static cast that would actually crash during a unit test because some code was hardcoded to expect a RenderProcess object. This fixes base's IDMap iterator which has apparently never been used for an IDMap with ownership semantics. TEST=Unit test included BUG=none Review URL: http://codereview.chromium.org/661124 TBR=brettw@chromium.org Review URL: http://codereview.chromium.org/660439 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40494 0039d316-1c4b-4281-b951-d872f2087c98
* Make the pepper 2D flush callback actually function as advertised. It will nowbrettw@chromium.org2010-03-032-0/+17
| | | | | | | | | | | | | | | | | | | | | | | get called asynchronously when the bits are actually copied to the screen, rather than synchronously from inside the paint function. This makes it useful for plugins to use the callback for rate limiting. This also adds a lot of infrastructure for running tests on pepper devices, and includes a unit test for the new flush behavior. I made the existing RenderProcess object an abstract interface and made the existing MockProcess (renamed to be more clear) implement that. This avoids a static cast that would actually crash during a unit test because some code was hardcoded to expect a RenderProcess object. This fixes base's IDMap iterator which has apparently never been used for an IDMap with ownership semantics. TEST=Unit test included BUG=none Review URL: http://codereview.chromium.org/661124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40490 0039d316-1c4b-4281-b951-d872f2087c98
* String translations from TCoritm@google.com2010-03-031-2/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40466 0039d316-1c4b-4281-b951-d872f2087c98
* Don't store the submit element on the FormData structure as it's no longer used.jhawkins@chromium.org2010-03-032-5/+1
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/661413 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40463 0039d316-1c4b-4281-b951-d872f2087c98
* Rename FakePluginWindowTrackerstuartmorgan@chromium.org2010-03-024-68/+68
| | | | | | | | | | | Removes confusion with the new "fake window" code related to the GPU process, and makes the name better reflect the reality of how the Carbon plugin windows are actually used since we no longer expect to replace them entirely with interposing. BUG=none TEST=none (no behavioral changes) Review URL: http://codereview.chromium.org/660407 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40459 0039d316-1c4b-4281-b951-d872f2087c98
* Note: I'm reverting it to see if it fixes all the dromaeo_test failures.jam@chromium.org2010-03-021-51/+5
| | | | | | | | | | | | | Revert 40158 - Estimate the renderer working set on Linux. This is less expensive and works in the Chromium SUID sandbox because it does not require access to /proc. BUG=32519 TEST=none Review URL: http://codereview.chromium.org/593060 TBR=thestig@chromium.org Review URL: http://codereview.chromium.org/660400 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40432 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes to 10.6 port of GPU plugin after recent backport to 10.5 andkbr@google.com2010-03-021-1/+2
| | | | | | | | | | | (apparently) other recent changes. BUG=none TEST=ran Pepper test plugin with both 10.6 and 10.5 code paths Review URL: http://codereview.chromium.org/661391 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40417 0039d316-1c4b-4281-b951-d872f2087c98
* Implement FormManager::LabelForElement and use this to store the field labels.jhawkins@chromium.org2010-03-021-12/+5
| | | | | | | | BUG=none TEST=FormManagerTest.Labels Review URL: http://codereview.chromium.org/660154 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40416 0039d316-1c4b-4281-b951-d872f2087c98
* Specify the first-party-for-cookies URL for HTTP requestswtc@chromium.org2010-03-021-2/+6
| | | | | | | | | | | | | issued by plugins. Fix formatting nits. R=abarth,darin,eroman BUG=36957 TEST=none Review URL: http://codereview.chromium.org/601038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40331 0039d316-1c4b-4281-b951-d872f2087c98
* Check for Carbon Mac plugin destruction after each GetNextEvent cyclestuartmorgan@chromium.org2010-03-011-31/+27
| | | | | | | | | | | Also removes unnecessary event model checks (this method is only called for Carbon-event plugins) BUG=36928 TEST=none Review URL: http://codereview.chromium.org/661284 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40298 0039d316-1c4b-4281-b951-d872f2087c98
* Fix formatting nits.wtc@chromium.org2010-02-272-2/+2
| | | | | | | | | R=eroman BUG=none TEST=No compilation errors. Review URL: http://codereview.chromium.org/660223 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40201 0039d316-1c4b-4281-b951-d872f2087c98
* Estimate the renderer working set on Linux. This is less expensive and works ↵thestig@chromium.org2010-02-261-5/+51
| | | | | | | | | | in the Chromium SUID sandbox because it does not require access to /proc. BUG=32519 TEST=none Review URL: http://codereview.chromium.org/593060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40158 0039d316-1c4b-4281-b951-d872f2087c98
* Initial work for cross-process video rendering using layers.scherkus@chromium.org2010-02-265-34/+118
| | | | | | | | | | | Introduces VideoLayer, which is similar to BackingStore except handles YUV surfaces and conversion to RGB. BUG=33329 TEST=N/A Review URL: http://codereview.chromium.org/597066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40137 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused methods.darin@chromium.org2010-02-262-17/+0
| | | | | | | | | | R=jorlow BUG=none TEST=none Review URL: http://codereview.chromium.org/660166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40103 0039d316-1c4b-4281-b951-d872f2087c98
* Call NPP_SetWindow immediately on initialization for Mac QuickTimestuartmorgan@chromium.org2010-02-261-0/+6
| | | | | | | | | BUG=35081 TEST=Fail a login at codeweavers.com/login; QuickTime should not crash. Review URL: http://codereview.chromium.org/661107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40078 0039d316-1c4b-4281-b951-d872f2087c98
* Remove submit handling in FillFormImpl. The one caller passes false to ↵jhawkins@chromium.org2010-02-251-16/+5
| | | | | | | | | | |submit|, so this is essentially dead code. BUG=none TEST=none Review URL: http://codereview.chromium.org/660059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40033 0039d316-1c4b-4281-b951-d872f2087c98
* Don't unload RealPlayer in the plugin process on the Macstuartmorgan@chromium.org2010-02-251-2/+3
| | | | | | | | | BUG=36803 TEST=none Review URL: http://codereview.chromium.org/661086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40031 0039d316-1c4b-4281-b951-d872f2087c98
* Implement WebCookieJar.darin@chromium.org2010-02-252-3/+29
| | | | | | | | | | | | | | | | | | | | | | Moves the implementation of cookie methods in RendererWebKitClientImpl into RendererWebCookieJarImpl. Moves the implementation of cookie methods in TestShellWebKitInit into SimpleWebCookieJarImpl. This leaves us with no longer implementing the cookie methods on WebKitClient. That'll allow us to delete those. WebPluginImpl needs to access the WebCookieJar used by either the renderer or test_shell. To enable that, I added a GetCookieJar method on WebPluginPageDelegate. This interface is used whenever the WebPluginImpl needs to talk to the RenderView or TestWebViewDelegate. R=jorlow BUG=35589 Review URL: http://codereview.chromium.org/661070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40023 0039d316-1c4b-4281-b951-d872f2087c98
* Solaris: first set of patches to make WebKit build on Solaris.evan@chromium.org2010-02-251-1/+1
| | | | | | | | | | | | This set is mostly definitions and minor naming things. BUG=30101 TEST=compiles Patch by James Choi <jchoi42@pha.jhu.edu> Review URL: http://codereview.chromium.org/650015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40002 0039d316-1c4b-4281-b951-d872f2087c98
* Remove ViewMsg_FormFill and the underlying implementation FillForm which are ↵jhawkins@chromium.org2010-02-242-26/+7
| | | | | | | | | | not used anymore. BUG=none TEST=none Review URL: http://codereview.chromium.org/657059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39925 0039d316-1c4b-4281-b951-d872f2087c98
* Move nphostapi.h to be with the rest of the NPAPI headers.jam@chromium.org2010-02-246-324/+13
| | | | | | Review URL: http://codereview.chromium.org/652161 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39852 0039d316-1c4b-4281-b951-d872f2087c98
* Landing Chris Guillory CL.jcampan@chromium.org2010-02-242-30/+33
| | | | | | | | | | | | See original review at: http://codereview.chromium.org/626014/show BUG=None TEST=None Review URL: http://codereview.chromium.org/657020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39828 0039d316-1c4b-4281-b951-d872f2087c98
* Add 3D support for the Mac on Leopard (OS X 10.5) and earlier. This CL usesdspringer@google.com2010-02-234-25/+106
| | | | | | | | | | | | | | | | | FBO rendering with glGetTexImage() into a TransportDIB that is then used as a texture for rendering the final image in the render view in the browser. While not optimal, it works and can be optimized later, after the new GPU process work is completed. This CL also enables stencil buffer support on the Mac. All the Pepper3D demos run on the Mac with these changes. BUG=none TEST=3D rendering unit tests. Review URL: http://codereview.chromium.org/647043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39744 0039d316-1c4b-4281-b951-d872f2087c98
* Remove usages of obsolete WebSettings::setGeolocation so it can be removed ↵joth@chromium.org2010-02-232-6/+0
| | | | | | | | | | | from webkit BUG=https://bugs.webkit.org/show_bug.cgi?id=35242 TEST=none Review URL: http://codereview.chromium.org/650148 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39707 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid unnecessary restarts of the webkit shared timer, and when restarting, usedarin@chromium.org2010-02-232-2/+6
| | | | | | | | | | | | | | | the given fire time instead of the current time. This is an attempt to isolate and fix the mac / linux intl2 page cycler regression. TBR=jam BUG=36310 TEST=none Review URL: http://codereview.chromium.org/654001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39701 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: correctly handle single byte value for NPPVpluginNeedsXEmbed.craig.schlenter@chromium.org2010-02-221-3/+3
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/650135 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39596 0039d316-1c4b-4281-b951-d872f2087c98
* AutoFill forms. We do this by responding to a message from WebKit which ↵jhawkins@chromium.org2010-02-201-2/+5
| | | | | | | | | | sends the (name, label) key requested to fill out a specific field. The RenderView finds the form to AutoFill using the FormManager and requests the AutoFillManager to fill in the data for the form. At the end, the FormManager uses this data to fill out the fields in the form on the web page. BUG=18201 TEST=none Review URL: http://codereview.chromium.org/651002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39533 0039d316-1c4b-4281-b951-d872f2087c98
* Disable the "Copy Image" context menu option when the user right-clicks a ↵pkasting@chromium.org2010-02-201-0/+4
| | | | | | | | | | blocked image. BUG=36021 TEST=Right-click a blocked image, "copy image" should be greyed out Review URL: http://codereview.chromium.org/651075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39524 0039d316-1c4b-4281-b951-d872f2087c98
* Fix cliprect handling for Mac plugins in hidden tabs/windowsstuartmorgan@chromium.org2010-02-191-3/+3
| | | | | | | | | BUG=36265 TEST=See bug. Automated test will follow. Review URL: http://codereview.chromium.org/650064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39492 0039d316-1c4b-4281-b951-d872f2087c98
* Adding command line flag (--show-composited-render-layers) to enable the ↵vangelis@chromium.org2010-02-192-4/+7
| | | | | | | | | | | showDebugBorders setting in WebKit which is used for displaying a border around composited layers. BUG=35613 TEST=NONE Review URL: http://codereview.chromium.org/593099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39483 0039d316-1c4b-4281-b951-d872f2087c98
* Protect against re-entering OnThrottleMessage thru CallWindowProc.darin@chromium.org2010-02-191-16/+24
| | | | | | | | | | | | This is a speculative fix for a crash that showed up on the reliability bot. R=jam BUG=36188 TEST=none Review URL: http://codereview.chromium.org/646051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39424 0039d316-1c4b-4281-b951-d872f2087c98
* Pulled out Callback code into base/callback.h. This is the first step ↵akalin@chromium.org2010-02-1912-8/+18
| | | | | | | | | | | | | towards redoing the Callback interfaces. Added and removed includes as needed. BUG=35223 TEST=trybots Review URL: http://codereview.chromium.org/646061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39419 0039d316-1c4b-4281-b951-d872f2087c98
* Flip the "unique file:// URI origin" flag to on. Add thecevans@chromium.org2010-02-181-1/+1
| | | | | | | | | | | | | --allow-file-access-from-files developer switch. Turn on this flag for the UI tests, which depend on the old behaviour. BUG=4197 TEST=WebKit test submitted upstream TBR=abarth Review URL: http://codereview.chromium.org/648003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39343 0039d316-1c4b-4281-b951-d872f2087c98
* Chromium plumbing for new file:// security flag, including test_shell support.cevans@chromium.org2010-02-182-0/+3
| | | | | | | | | | | | | This change does not alter behaviour but will enable a WebKit test to be written. BUG=4197 TEST=WebKit test pending TBR=abarth Review URL: http://codereview.chromium.org/625009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39334 0039d316-1c4b-4281-b951-d872f2087c98
* Modal loops of joy.darin@chromium.org2010-02-182-8/+25
| | | | | | | | | | | | | | | | | | | | | | | | We need to pump messages in the renderer and in any related plugin processes when sending sync IPCs to get cookies and set localstorage items because these IPCs can block on a user prompt. This code moves complexity into RenderThread::Send(). That function is now responsible for calling WebView::{willEnter,didExit}ModalLoop() and for broadcasting the messages to signal/reset modal dialog events in the related plugin processes. This change also adds code to optionally suspend the shared webkit timer. This was needed to fix bug 36063. It also helps make spinning a nested loop to wait for document.cookie results a bit less risky since we'll be re-entering WebKit in fewer cases. R=jam BUG=34917,36063 TEST=none Review URL: http://codereview.chromium.org/607011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39327 0039d316-1c4b-4281-b951-d872f2087c98
* Send suggestions from the AutoFillManager to the AutoFillSuggestionsPopup in ↵jhawkins@chromium.org2010-02-182-0/+19
| | | | | | | | | | WebKit. BUG=18201 TEST=none Review URL: http://codereview.chromium.org/627005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39310 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 39287 - Chromium pieces to use the WebKit support for isolation ↵cevans@chromium.org2010-02-182-3/+0
| | | | | | | | | | | | | | | | | | file:// documents in their own unique domains. By default, we use this isolation for security. We provide a command line switch override for developers: allowfileaccessfromfiles BUG=4197 TEST=WebKit test pending Review URL: http://codereview.chromium.org/625001 TBR=abarth@chromium.org Review URL: http://codereview.chromium.org/625007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39304 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 39300 - Turn off new secure file:// flag.cevans@chromium.org2010-02-181-1/+1
| | | | | | | | | | | | | BUG=none TEST=none TBR=abarth Review URL: http://codereview.chromium.org/633009 TBR=abarth@chromium.org Review URL: http://codereview.chromium.org/625006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39302 0039d316-1c4b-4281-b951-d872f2087c98
* Turn off new secure file:// flag.cevans@chromium.org2010-02-171-1/+1
| | | | | | | | | | BUG=none TEST=none TBR=abarth Review URL: http://codereview.chromium.org/633009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39300 0039d316-1c4b-4281-b951-d872f2087c98
* Chromium pieces to use the WebKit support for isolation file:// documents incevans@chromium.org2010-02-172-0/+3
| | | | | | | | | | | | | their own unique domains. By default, we use this isolation for security. We provide a command line switch override for developers: --allow-file-access-from-files BUG=4197 TEST=WebKit test pending Review URL: http://codereview.chromium.org/625001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39287 0039d316-1c4b-4281-b951-d872f2087c98
* Use better web app icons.xiyuan@chromium.org2010-02-171-2/+8
| | | | | | | | | | | | | | | - Accept "link" element of both "icon" and "shortcut icon" type. see also: http://en.wikipedia.org/wiki/Favicon http://dev.w3.org/html5/spec/Overview.html#rel-icon - Get complete url from icon link's href; BUG=none TEST=Create web app shortcut to "Google Reader" and expect to see crispy clear icon rather than the blur favicon. Review URL: http://codereview.chromium.org/611008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39228 0039d316-1c4b-4281-b951-d872f2087c98
* Implement layoutTestController.numberOfPages.hamaji@chromium.org2010-02-172-0/+14
| | | | | | | | | BUG=35215 TEST=layout tests Review URL: http://codereview.chromium.org/594054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39199 0039d316-1c4b-4281-b951-d872f2087c98