summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
Commit message (Collapse)AuthorAgeFilesLines
* WebSocket support in chromium.ukai@chromium.org2009-10-295-4/+266
| | | | | | | | | | | Run with --enable-web-sockets enables WebSocket features. BUG=12497 TEST=none Review URL: http://codereview.chromium.org/292044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30440 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Remove base/ dependencies from glue/devtoolspfeldman@chromium.org2009-10-282-23/+28
| | | | | | | | BUG=24622,24597 Review URL: http://codereview.chromium.org/330029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30330 0039d316-1c4b-4281-b951-d872f2087c98
* Limit chrome.(browser|page)Action.setIcon({imageData:...}) toaa@chromium.org2009-10-281-2/+14
| | | | | | | | | | a max of 19px square. BUG=25626 Review URL: http://codereview.chromium.org/342012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30327 0039d316-1c4b-4281-b951-d872f2087c98
* Rename getTabContentses to getExtensionTabs.aa@chromium.org2009-10-281-1/+6
| | | | | | | | | | | | | The old name is also aliased for backwards compat. This lands: http://codereview.chromium.org/224012 BUG=21433 Review URL: http://codereview.chromium.org/339041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30326 0039d316-1c4b-4281-b951-d872f2087c98
* Log the PLT to the log file. This is a convenience formbelshe@google.com2009-10-272-0/+26
| | | | | | | | | | | debugging. BUG=none TEST=none Review URL: http://codereview.chromium.org/330030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30252 0039d316-1c4b-4281-b951-d872f2087c98
* Ensure that Helvetica, if installed, is used instead of Arial. This should ↵avi@chromium.org2009-10-272-2/+2
| | | | | | | | | | | | be an effective defense against the Mac fontheads zombie uprising. BUG=http://crbug.com/21458 TEST=navigate to any HTML-as-UI page (about:credits, etc) on a Mac; ensure Helvetica-ness Review URL: http://codereview.chromium.org/333032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30190 0039d316-1c4b-4281-b951-d872f2087c98
* Don't scale up small browser action icons.finnur@chromium.org2009-10-261-8/+5
| | | | | | | | | | | | | | | | | | | | | When creating the canvas, take cues from the image we just loaded and don't hard code it to 19x19. This way we can have smaller than 19x19 icons that show up centered within the browser icon button. This doesn't attempt to deal with scaling down images that are too large to fit the 19x19 canvas, but we haven't decided how to handle those anyway. BUG=25487 TEST=Load the api_test/browser_action_tab_specific_state extension and click on the browser action. The red square within the button should not grow in size as you click. Review URL: http://codereview.chromium.org/337026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30072 0039d316-1c4b-4281-b951-d872f2087c98
* Second attempt to swap processes on rel=noreferrer, target=blank links.creis@chromium.org2009-10-262-1/+41
| | | | | | | | | | | | | The test timed out on one of the bots last time. This change tries to fix that, and it breaks down the test into multiple tests to isolate the problem in case it isn't fixed. No changes to code outside the test and the test HTML file. Previous review at http://codereview.chromium.org/284015. BUG=24447 TEST=RenderViewHostManagerTest.*SwapProcess* Review URL: http://codereview.chromium.org/328017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30050 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor BrowserActions, and add support foraa@chromium.org2009-10-242-5/+8
| | | | | | | | | | | | | | | | | tab-specific state. Future changelists will move Page Actions over to ExtensionAction2, then replace ExtensionAction and ExtensionActionState with ExtensionAction2. Also, fix a bug in setIcon({path:...}) where it would work only the first time. BUG=24669,24472 Review URL: http://codereview.chromium.org/306044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29997 0039d316-1c4b-4281-b951-d872f2087c98
* Fix premultiplication mismatch inaa@chromium.org2009-10-241-2/+3
| | | | | | | | | | | | | | | chrome.browserAction.setIcon(). SkBitmap expects premultiplied values, canvas returns them not premultiplied. BUG=24643 TEST=install gmail browser action sample. Should not have weird colorful artifacts around edges. Review URL: http://codereview.chromium.org/333011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29996 0039d316-1c4b-4281-b951-d872f2087c98
* Implementing WebDatabaseObserver in the renderer process.dumi@chromium.org2009-10-244-0/+62
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/293038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29993 0039d316-1c4b-4281-b951-d872f2087c98
* Instructing V8 to disable the binding for the window.openDatabase()dumi@chromium.org2009-10-241-0/+3
| | | | | | | | | | | | function. BUG=none TEST=none Review URL: http://codereview.chromium.org/295053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29980 0039d316-1c4b-4281-b951-d872f2087c98
* Move SearchableFormData over to the WebKit API.pkasting@chromium.org2009-10-232-16/+17
| | | | | | | | BUG=24621 TEST=none Review URL: http://codereview.chromium.org/306057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29941 0039d316-1c4b-4281-b951-d872f2087c98
* Move the json-related files into a separate json directory. This hopefully alsobrettw@chromium.org2009-10-233-8/+8
| | | | | | | | | | | makes the naming of string_escape more clear (it's actually JSON-specific). Move the files into the base namespace. TEST=none BUG=none Review URL: http://codereview.chromium.org/316016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29934 0039d316-1c4b-4281-b951-d872f2087c98
* Submitting on behalf of jschuh@cevans@chromium.org2009-10-231-3/+3
| | | | | | | | | | | | | | | | | See http://codereview.chromium.org/307020 Changed active URL handling in RenderView::OnMessageReceived and RenderView::OnNavigate. Now we call SetActiveURL directly so that we don't unset the URL when falling out of scope. We can try this in the render process on dev channel for a few weeks. If we're happy with the results, we do the same thing on the plugin process. TBR=cpu BUG=22033 TEST=Trigger a crash in the render process and see if the dump includes the URL Review URL: http://codereview.chromium.org/328008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29933 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce WebScriptController for script related methods.mhm@chromium.org2009-10-231-26/+38
| | | | | | | | | | | 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
* Implement extension.sendRequest, a simpler way to do messaging.mpcomplete@chromium.org2009-10-232-4/+66
| | | | | | | | BUG=23865 Review URL: http://codereview.chromium.org/320009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29911 0039d316-1c4b-4281-b951-d872f2087c98
* Adds support for the <keygen> tag for client certificate enrollmentwtc@chromium.org2009-10-232-0/+20
| | | | | | | | | | | | | | | | under Linux. Currently, no notifications are given to the user that the certificate was successfully enrolled. Patch by Gaurav Shah <gauravsh@chromium.org> of Google. Original review URL: http://codereview.chromium.org/261035 BUG=148 TEST=Can test on the following sites: http://foaf.me/simple_KEYGEN_CreateClientCertificate.php http://www.myopenid.com Review URL: http://codereview.chromium.org/271112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29900 0039d316-1c4b-4281-b951-d872f2087c98
* Push the native canvas into the plugin implementation. On Windows, this meansbrettw@chromium.org2009-10-234-42/+80
| | | | | | | | | | | | | | | using SkCanvas instead of an HDC. This way, the pepper implementation can use the more advanced blending of SkCanvas and avoid the Windows API. I did some refactoring in the standard plugin implementation to support this and make it as clean as I could. Hopefully the code is slightly clearer than before. TEST=none BUG=none Review URL: http://codereview.chromium.org/306027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29897 0039d316-1c4b-4281-b951-d872f2087c98
* Allow <video> to read from a data URI. Data URI is now handledhclam@chromium.org2009-10-232-8/+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
* Fix renderer hang if plugin process crashes while initializing a plugin.jam@chromium.org2009-10-223-13/+20
| | | | | | | BUG=25104 Review URL: http://codereview.chromium.org/315012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29806 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 29783.johnnyg@chromium.org2009-10-222-41/+1
| | | | | | Review URL: http://codereview.chromium.org/306055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29795 0039d316-1c4b-4281-b951-d872f2087c98
* Swaps renderer processes on links with rel=noreferrer and target=_blank.creis@google.com2009-10-222-1/+41
| | | | | | | | | | We now detect these types of navigations in RenderView and allow the browser process to handle them. This allows us to swap process if the navigation is cross-site. Requires exposing suppressOpenerInNewFrame in WebFrame to accurately detect these links. BUG=24447 TEST=RenderViewHostManagerTest.SwapProcessOnRelNoreferrerWithTargetBlank Review URL: http://codereview.chromium.org/284015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29783 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for IMC handle passing in Chrome sandboxgregoryd@google.com2009-10-221-6/+6
| | | | | | Review URL: http://codereview.chromium.org/292056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29782 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce WebSecurityPolicy for security related methods.mhm@chromium.org2009-10-222-5/+9
| | | | | | | | | | | | | | | | | 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
* Revert 29747 - Switch over to the new way of enabling/disabling ↵nsylvain@chromium.org2009-10-221-5/+0
| | | | | | | | | | | | | | | session/local storage. BUG=none TEST=|'localStorage' in window| should only be true iff enablelocalstorage is specified Review URL: http://codereview.chromium.org/293032 TBR=jorlow@chromium.org Review URL: http://codereview.chromium.org/315009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29754 0039d316-1c4b-4281-b951-d872f2087c98
* Switch over to the new way of enabling/disabling session/local storage.jorlow@chromium.org2009-10-221-0/+5
| | | | | | | | | | BUG=none TEST=|'localStorage' in window| should only be true iff --enable-local-storage is specified Review URL: http://codereview.chromium.org/293032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29747 0039d316-1c4b-4281-b951-d872f2087c98
* Don't call chrome.initExtension if we already called it.mpcomplete@chromium.org2009-10-211-2/+4
| | | | | | | | BUG=25314 Review URL: http://codereview.chromium.org/315005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29738 0039d316-1c4b-4281-b951-d872f2087c98
* Trim unused members from SearchableFormData. Remove copies of WebCore ↵pkasting@chromium.org2009-10-211-1/+0
| | | | | | | | | | functions that are now public. Fix a few style errors. Make some functions shorter. Remove "using" directives since most of the file ignored them anyways. Remove unneeded #includes. BUG=none TEST=none Review URL: http://codereview.chromium.org/292041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29681 0039d316-1c4b-4281-b951-d872f2087c98
* Rename RenderViewHostDelegate::Autofill to ↵jhawkins@chromium.org2009-10-211-3/+3
| | | | | | | | | | RenderViewHostDelegate::FormFieldHistory to better reflect the purpose of the interface. BUG=none TEST=none Review URL: http://codereview.chromium.org/294030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29669 0039d316-1c4b-4281-b951-d872f2087c98
* TBR: darinmhm@chromium.org2009-10-212-9/+5
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29642 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce WebSecurityPolicy for security related methods.mhm@chromium.org2009-10-212-5/+9
| | | | | | | | | | | | | | | 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. Review URL: http://codereview.chromium.org/293021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29639 0039d316-1c4b-4281-b951-d872f2087c98
* Enable WebSocket in test_shellukai@chromium.org2009-10-211-0/+11
| | | | | | | | | BUG=12497,24756 TEST=LayoutTests/fast/websockets success Review URL: http://codereview.chromium.org/243108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29626 0039d316-1c4b-4281-b951-d872f2087c98
* Make all pepper plugins default to windowless and transparent.sehr@google.com2009-10-201-0/+5
| | | | | | Review URL: http://codereview.chromium.org/306018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29582 0039d316-1c4b-4281-b951-d872f2087c98
* Rename AutoFillForm to FormFieldValues to better reflect the purpose of the ↵jhawkins@chromium.org2009-10-201-9/+9
| | | | | | | | | | data structure. BUG=none TEST=none Review URL: http://codereview.chromium.org/306014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29580 0039d316-1c4b-4281-b951-d872f2087c98
* Add WebFrameClient::cancelledError to avoid a dependency ondarin@chromium.org2009-10-202-18/+30
| | | | | | | | | | | | | | | | | the net/ module. This CL also tweaks some existing WebFrameClient methods: 1) to ensure that they have a WebFrame pointer for context 2) to rename cannotShowURLError to cannotHandleRequestError to better match the canHandleRequest method. R=yaar BUG=24606 TEST=none Review URL: http://codereview.chromium.org/306011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29561 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: change PIDs to base::ProcessId (or pid_t, as appropriate).viettrungluu@chromium.org2009-10-201-1/+1
| | | | | | | | | | | We probably want to discourage the use of ints for PIDs. This is a start; there are many other places where we should fix this. BUG=25272 TEST=none Review URL: http://codereview.chromium.org/300010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29511 0039d316-1c4b-4281-b951-d872f2087c98
* add enableWebSockets in WebKit APIukai@chromium.org2009-10-201-0/+3
| | | | | | | | | | | | and remove experimentalWebSocketsEnabled from WebPreferences/Settings. Patch for http://bugs.webkit.org/show_bug.cgi?id=29896 will remove Settings::experimentalWebSocketsEnabled(), so we need to remove it from WebPreferences too. This is because such configuration in Settings confuses other WebKit developers and such control is only required for chromium. Instead add WebKit::enableWebSockets() in this change to control WebSockets feature. Review URL: http://codereview.chromium.org/292012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29497 0039d316-1c4b-4281-b951-d872f2087c98
* Implement chrome.browserAction.setIcon({path:...});aa@chromium.org2009-10-201-1/+25
| | | | | | | | BUG=22575 Review URL: http://codereview.chromium.org/269103 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29495 0039d316-1c4b-4281-b951-d872f2087c98
* Switch to SendAndRunNestedMessageLoop in Mac printingstuartmorgan@chromium.org2009-10-191-6/+1
| | | | | | | | | | | With the recent fix for nested message loops on the Mac, this works correctly. BUG=24808 TEST=Printing on the Mac should continue to work. Review URL: http://codereview.chromium.org/295012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29466 0039d316-1c4b-4281-b951-d872f2087c98
* Removed webkit_glue::FillFormToUploadFile from dom_operations.yaar@chromium.org2009-10-192-56/+0
| | | | | | | | No live code path uses it. Review URL: http://codereview.chromium.org/273068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29438 0039d316-1c4b-4281-b951-d872f2087c98
* Convert the spellchecker and associated messages and functions to use string16brettw@chromium.org2009-10-192-13/+13
| | | | | | | | | | | | for words instead of wstring. I also changed some places where it converted the word to a string to do that conversion at the last possible second before giving it to Hunspell (since this conversion isn't needed for Mac). TEST=Covered by unit tests BUG=none Review URL: http://codereview.chromium.org/274077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29435 0039d316-1c4b-4281-b951-d872f2087c98
* When Chrome hands off a URL to be opened by the external host by the ↵ananta@chromium.org2009-10-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | ViewHostMsg_OpenURL IPC, it needs to pass the referrer as well. The Chrome fixes in this CL are mostly related to passing the HTTP referer off to the browser and from there to the ExternalTabContainer to ChromeFrame and back. The ChromeFrame changes are basically around the same lines with one exception. When we handle the AutomationMsg_OpenURL IPC in the activex and the active document we pass the referer if applicable to the WebBrowser2::Navigate2 interface, which is then read by the BHO in BeforeNavigate2. We then save away an AddRef'ed BHO pointer in TLS which is then referenced by the Active document for reading the referer and passing it off to Chrome in the NavigateInExternalTab message. Added a unit test in ChromeFrame which tests this case. This fixes http://code.google.com/p/chromium/issues/detail?id=22994 Bug=22994 Review URL: http://codereview.chromium.org/274071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29420 0039d316-1c4b-4281-b951-d872f2087c98
* Fix global constant and style.maruel@chromium.org2009-10-193-27/+30
| | | | | | | | | | | | No real code change. Was found while playing around with http://crbug.com/22926 TEST=none BUG=none Review URL: http://codereview.chromium.org/285010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29410 0039d316-1c4b-4281-b951-d872f2087c98
* Delete glue/webview{_delegate}.hdarin@chromium.org2009-10-1911-31/+41
| | | | | | | | | | R=dglazkov BUG=10033 TEST=none Review URL: http://codereview.chromium.org/293001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29390 0039d316-1c4b-4281-b951-d872f2087c98
* Make LayoutTests/http/tests/misc/redirect-to-external-url.html PASS.tkent@chromium.org2009-10-192-0/+24
| | | | | | | | | | | | | | | | | | * Implement WebFrameLoaderClient::dispatchUnableToImplementPolicy() * Implement WebFrameLoaderClient::canHandleRequest() so that an unkown scheme makes ResourceError. - Introduce WebFrameClient::canHandleRequest() to avoid chrome:: dependency from webkit/glue. - Introduce WebFrameClient::cannotShowURLError() to keep transparency of WebURLError. * Introduce WebFrameClient::unableToImplementPolicyWithError() An implmentation in test_shell prints the message same as WebKit. BUG=24074 TEST=This change enables 1 test. Review URL: http://codereview.chromium.org/271087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29386 0039d316-1c4b-4281-b951-d872f2087c98
* Moved Pepper delegate definition to chrome\renderer to allow it to usesehr@google.com2009-10-174-2/+560
| | | | | | | | | | | code from chrome\common. Also added canvas support and hooked up NPAPI interface functions. No tests have been added yet, so this is probably not fully ready. Review URL: http://codereview.chromium.org/291001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29380 0039d316-1c4b-4281-b951-d872f2087c98
* Move WebDevToolsAgent{Delegate} into the WebKit API.darin@chromium.org2009-10-179-40/+51
| | | | | | | | | | | | | | | | | Moves corresponding WebView and WebViewDelegate methods too. This uses the term "Frontend" for what was previously known as "Client" in the devtools interfaces. This is to avoid awkward "ClientClient" naming. Frontend was Pavel Feldman's suggested renaming. In a follow up patch, I will be renaming WebDevToolsClient{Delegate} to WebDevToolsFrontend{Client}. R=dglazkov BUG=24597 TEST=none Review URL: http://codereview.chromium.org/287009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29369 0039d316-1c4b-4281-b951-d872f2087c98
* Http Cache: Enable byte-range support by default.rvargas@google.com2009-10-161-1/+1
| | | | | | | | | | | | | | | The command line parameter to modify the behavior changes from --enable-byte-range-support to --disable-byte-range-support BUG=24989 TEST= current tests Review URL: http://codereview.chromium.org/267132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29337 0039d316-1c4b-4281-b951-d872f2087c98
* Implement new page action API.mpcomplete@chromium.org2009-10-162-20/+30
| | | | | | | | | | | Still no actual drawing code for badges, though. BUG=24635 TEST=Load the sample test_page_action extension and click the page action to cycle through various states. Review URL: http://codereview.chromium.org/269079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29335 0039d316-1c4b-4281-b951-d872f2087c98