summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
Commit message (Collapse)AuthorAgeFilesLines
* Linux: fix printing somewhat.estade@chromium.org2010-04-101-26/+7
| | | | | | | | | BUG=29148 TEST=prints documents greater than one page (to real printers) Review URL: http://codereview.chromium.org/1520014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44161 0039d316-1c4b-4281-b951-d872f2087c98
* AutoFill: Fill the default profile when the AutoFill accelerator combo is ↵jhawkins@chromium.org2010-04-094-0/+19
| | | | | | | | | | | pressed (ctrl-shift-a). BUG=39491 TEST=none Review URL: http://codereview.chromium.org/1521020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44149 0039d316-1c4b-4281-b951-d872f2087c98
* - Extracted platform specific code from GLES2 command decoder to platform ↵apatrick@chromium.org2010-04-093-7/+5
| | | | | | | | | | | | | specific GLContext classes. - GLContext encapsulates management of GL contexts on each platform. - ReadPixels uses actual current window size to validate source rectangle. TEST=trybots, running Pepper 3D and WebGL demos on all platforms BUG=none Review URL: http://codereview.chromium.org/1605014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44129 0039d316-1c4b-4281-b951-d872f2087c98
* fixing bug in 2D context painted area pixel count computation abetul@google.com2010-04-091-3/+5
| | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/1611011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44103 0039d316-1c4b-4281-b951-d872f2087c98
* Fix file names so that for browser tests the suffix is _browsertest.phajdan.jr@chromium.org2010-04-091-0/+0
| | | | | | | | TEST=browser_tests BUG=none Review URL: http://codereview.chromium.org/1549028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44081 0039d316-1c4b-4281-b951-d872f2087c98
* Indicate in the tab UI if appcache creation was blocked by privacy settings.jochen@chromium.org2010-04-096-12/+78
| | | | | | | | | TEST=manual BUG=38362 Review URL: http://codereview.chromium.org/1600002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44079 0039d316-1c4b-4281-b951-d872f2087c98
* AutoFill optimization for form label scraping.dhollowa@chromium.org2010-04-092-13/+27
| | | | | | | | | | | | This replaces calls to |innnerText()| with calls to |nodeValue()| for performance gains. BUG=40306 TEST=FormManagerTest Review URL: http://codereview.chromium.org/1620007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44059 0039d316-1c4b-4281-b951-d872f2087c98
* AutoFill: Delay sending the form field values to the AutoFillManager until ↵jhawkins@chromium.org2010-04-094-8/+19
| | | | | | | | | | | they're needed. BUG=40306 TEST=none Review URL: http://codereview.chromium.org/1626009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44055 0039d316-1c4b-4281-b951-d872f2087c98
* AutoFill: Initiate AutoFill for all fields, not just the name field.jhawkins@chromium.org2010-04-092-7/+7
| | | | | | | | | | | Fix a case issue when matching names. BUG=40299 TEST=none Review URL: http://codereview.chromium.org/1575023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44043 0039d316-1c4b-4281-b951-d872f2087c98
* AutoFill optimization for form label finding.dhollowa@chromium.org2010-04-091-3/+16
| | | | | | | | | | | | | This replaces calls to |innnerText()| with calls to |nodeValue()| for performance gains. BUG=40306 TEST=FormManagerTest.Label Review URL: http://codereview.chromium.org/1622013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44034 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Pepper2D on the Mac so that it runs in the sandbox. Note that trusteddspringer@google.com2010-04-085-18/+24
| | | | | | | | | | | | | plugins still have to run outside of the sandbox (this is not a regression). This CL allows untrusted Pepper 2D plugins to run in the sandbox on the Mac. BUG=40701 TEST=pepper_test_plugin (has to run w/ --no-sandbox on Mac), run any untrusted .nexe that uses Pepper 2D or 3D (examples are inthe NaCl SDK). Review URL: http://codereview.chromium.org/1558032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44016 0039d316-1c4b-4281-b951-d872f2087c98
* Support PNG and quality control in chrome.tabs.captureVisibleTab().skerner@chromium.org2010-04-082-24/+131
| | | | | | | | | BUG=21072 TEST=ExtensionAPIClientTest.CaptureVisibleTab Review URL: http://codereview.chromium.org/1527015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43985 0039d316-1c4b-4281-b951-d872f2087c98
* Flush audio data after seekhclam@chromium.org2010-04-082-60/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is about 400 to 600 ms of audio that needs to be flushed after seek, this have a pretty UX effect. This is partially fixed in this patch by reducing the amount of data down to about at most 500 ms stored in the hardware buffer. This patch clears data in the software buffer in the browser process when seek happens. We could reduce the amount of hardware buffer to further reduce the amount of lag but that can be fixed by subsequent patch. BUG=24150 TEST=audio still works, audio still play after seek the playback of old data after seek is substantially reduced. Few changes in this patch: 1. Flush software buffer after seek in browser process 2. Get rid of prerolling, this actually has not effect at all, so getting rid of useless code Needs to be done after this patch: 1. Further reduce the remaining data after seek and pause 2. Still hit the DCHECK in ClockImpl::Play(), this doesn't seem to be a new problem introduced in this patch Review URL: http://codereview.chromium.org/1508021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43983 0039d316-1c4b-4281-b951-d872f2087c98
* AutoFill Re-enable labeling input elements.dhollowa@chromium.org2010-04-082-2/+20
| | | | | | | | | | | | | | | | Over-reverted. Adding back in. BUG=40306 TEST=FormManagerTest.* TBR=jhawkins@chromium.org Related to: http://codereview.chromium.org/1519026 Committed revision 43922. Review URL: http://codereview.chromium.org/1578022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43948 0039d316-1c4b-4281-b951-d872f2087c98
* Implement patterns for content setting exceptions.jochen@chromium.org2010-04-082-11/+11
| | | | | | | | | BUG=37394 TEST=unit_tests + manual Review URL: http://codereview.chromium.org/1567010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43936 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting: 43802 AutoFill: Re-enable label scraping.dhollowa@chromium.org2010-04-082-43/+12
| | | | | | | | | | | | | Reverting due to perf regression. BUG=40306 TEST=FormManagerTest.* TBR=jhawkins@chromium.org Review URL: http://codereview.chromium.org/1519026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43922 0039d316-1c4b-4281-b951-d872f2087c98
* AutoFill: Respect the maxlength attribute when filling input elements.jhawkins@chromium.org2010-04-082-1/+175
| | | | | | | | | BUG=40274 TEST=FormManager.FillFormMaxLength Review URL: http://codereview.chromium.org/1630005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43915 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Darin's review comment for the plugin blocker fix.cevans@chromium.org2010-04-081-5/+4
| | | | | | | | | | BUG=NONE TEST=NONE TBR=darin Review URL: http://codereview.chromium.org/1578019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43913 0039d316-1c4b-4281-b951-d872f2087c98
* AutoFill: A few fixes.jhawkins@chromium.org2010-04-082-8/+111
| | | | | | | | | | | | * Match both the name and the label when sending FormData values for the renderer to fill. * Use a vector of bools to indicate which WebFormControlElements are extracted instead of matching on element name, which is not guaranteed to be unique. BUG=38325 TEST=FormManagerTest.InferredLabelsWithSameName Review URL: http://codereview.chromium.org/1558029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43906 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Pepper 2D device init on Mac, so that it work with NaCl modules as well asdspringer@google.com2010-04-071-0/+17
| | | | | | | | | | | | | | | | with trusted Pepper plugins. The shared memory was not being used to create the skia bitmap due to a missing mmap() call. Adding this call (via TransportDIB::Map()) generates the right shared mem region. Note: this is an interim fix. Really, the browser should make the TransportDIB as it does onthe Mac for the GPU plugin. BUG=40701 TEST=Run any Pepper 2D application as a .nexe Review URL: http://codereview.chromium.org/1542016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43873 0039d316-1c4b-4281-b951-d872f2087c98
* Use chrome::kAboutCrashURL in a few most places.thestig@chromium.org2010-04-071-6/+9
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/1612008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43871 0039d316-1c4b-4281-b951-d872f2087c98
* Adding the new WebPopupType to the RenderWidget creation.jcivelli@google.com2010-04-077-17/+23
| | | | | | | | | BUG=None TEST=Tests that all popups (select popup, autofill, browser actions, bookmark bubble...) work as expected and get the focus correctly. Review URL: http://codereview.chromium.org/1523013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43845 0039d316-1c4b-4281-b951-d872f2087c98
* AutoFill: Re-enable label scraping.jhawkins@chromium.org2010-04-072-6/+15
| | | | | | | | | BUG=40306 TEST=FormManagerTest.* Review URL: http://codereview.chromium.org/1575020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43802 0039d316-1c4b-4281-b951-d872f2087c98
* Fix plugin (and other) block settings for windows opened simply withcevans@chromium.org2010-04-071-1/+7
| | | | | | | | | | | | window.open(). Such cases should inherit settings from the parent. BUG=39740 TEST=TODO TBR=darin Review URL: http://codereview.chromium.org/1524014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43792 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 43684 - Localize CSS files in content scripts (but don't localize JS ↵cira@google.com2010-04-076-261/+21
| | | | | | | | | | | | | | | | files). Add UserScriptSlave unittest. BUG=39899 TEST=List css file in content_scripts section of the manifest. Refer to an image using url(chromeextension://__MSG_@@extension_id_/image.png); within that css. @@extension_id message should be replaced with actual id of the extension. Review URL: http://codereview.chromium.org/1585013 TBR=cira@chromium.org Review URL: http://codereview.chromium.org/1525014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43784 0039d316-1c4b-4281-b951-d872f2087c98
* Changing the translate back-end to use the Google Translate element.jcivelli@google.com2010-04-0611-892/+520
| | | | | | | | | | | | | | | | When the user indicates that a page should be translated, the browser first fetches the Google Translate Element JS code. It then sends it to the renderer, which injects the script in the page, waits for the Translate element to be initialized and then calls the translate method on it. The TranslationService class previously used to translate text chunks is now unused and has been removed. Some of its static methods that are still used have been moved to the TranslateManager class. This CL also implements the "revert" translation behavior. BUG=35474,37778,35553,39375 TEST=Test the translation feature extensively. Review URL: http://codereview.chromium.org/1599016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43768 0039d316-1c4b-4281-b951-d872f2087c98
* Reland: No longer accept 'null' as signifying unset optional object property ↵rafaelw@chromium.org2010-04-061-3/+2
| | | | | | | | | | | | | | | | in extension calls This changes the json schema validation to treat a object property set to null as significant, rather than meaning the property is not specified. original review: http://codereview.chromium.org/1558021/show BUG=39465 TBR=oshima TEST=all tests should pass Review URL: http://codereview.chromium.org/1618005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43767 0039d316-1c4b-4281-b951-d872f2087c98
* AutoFill: Parse HTMLLabel elements for form control element labels.jhawkins@chromium.org2010-04-064-52/+146
| | | | | | | | | BUG=40306 TEST=FormManagerTest.Labels Review URL: http://codereview.chromium.org/1622004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43761 0039d316-1c4b-4281-b951-d872f2087c98
* Fix problems with unloading/reloading/updating extensions that contain NPAPImpcomplete@chromium.org2010-04-063-3/+15
| | | | | | | | | | | plugins, by ensuring that an extension's plugins are shut down and unloaded when the extension unloads. BUG=34670 BUG=32806 Review URL: http://codereview.chromium.org/1596009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43756 0039d316-1c4b-4281-b951-d872f2087c98
* Add a space to a log message to separate two words.wtc@chromium.org2010-04-061-1/+1
| | | | | | | | | R=aa BUG=none TEST=Trivial change. Not worth verifying. Review URL: http://codereview.chromium.org/1612007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43754 0039d316-1c4b-4281-b951-d872f2087c98
* Allow synchronous messages to be sent from threads other than the main ↵jabdelmalek@google.com2010-04-061-1/+0
| | | | | | | | | thread. This simplifies code that needs to do this (i.e. webkit db and file threads). BUG=23423 Review URL: http://codereview.chromium.org/1601005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43752 0039d316-1c4b-4281-b951-d872f2087c98
* A three-phase commit related to changing the params of ↵rafaelw@chromium.org2010-04-062-3/+6
| | | | | | | | webkitNotifications.checkPermission() & requestPermission() went awry and notification_provider.cc was no longer implementing a called method. As a result requestPermission() became non-functional. Review URL: http://codereview.chromium.org/1542010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43735 0039d316-1c4b-4281-b951-d872f2087c98
* detect preferences errorserikkay@chromium.org2010-04-061-1/+1
| | | | | | | | | BUG=38352 TEST=none Review URL: http://codereview.chromium.org/1120006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43715 0039d316-1c4b-4281-b951-d872f2087c98
* Fix docking behaviour for devtools windows that don't have an associated ↵mnissler@chromium.org2010-04-062-6/+6
| | | | | | | | | | | browser window BUG=40090 TEST=none Review URL: http://codereview.chromium.org/1567014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43709 0039d316-1c4b-4281-b951-d872f2087c98
* Localize CSS files in content scripts (but don't localize JS files).cira@chromium.org2010-04-066-21/+261
| | | | | | | | | | | Add UserScriptSlave unittest. BUG=39899 TEST=List css file in content_scripts section of the manifest. Refer to an image using url(chrome-extension://__MSG_@@extension_id_/image.png); within that css. @@extension_id message should be replaced with actual id of the extension. Review URL: http://codereview.chromium.org/1585013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43684 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "No longer accept 'null' as signifying unset optional object property ↵rafaelw@chromium.org2010-04-051-1/+2
| | | | | | | | | | in extension calls." This reverts commit 02bd0a11dd8cee6e19c201e30b3984b638b2ddd1. Review URL: http://codereview.chromium.org/1512019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43666 0039d316-1c4b-4281-b951-d872f2087c98
* AutoFill: Implement WebFormElementToFormData and use this to send form data tojhawkins@chromium.org2010-04-054-11/+126
| | | | | | | | | | | | the AutoFillManager. Don't check field labels for equality until we parse labels again. BUG=40297 TEST=FormManagerTest.WebFormElementToFormData Review URL: http://codereview.chromium.org/1609007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43657 0039d316-1c4b-4281-b951-d872f2087c98
* No longer accept 'null' as signifying unset optional object property in ↵rafaelw@chromium.org2010-04-051-2/+1
| | | | | | | | | | | | | extension calls. This changes the json schema validation to treat a object property set to null as significant, rather than meaning the property is not specified. BUG=39465 TEST=all tests should pass Review URL: http://codereview.chromium.org/1558021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43655 0039d316-1c4b-4281-b951-d872f2087c98
* Mac: Make image dragging 162.4% more awesome.thakis@chromium.org2010-04-051-2/+3
| | | | | | | | | | | | | | | | | | | Also needs a webkit patch to do anything ( https://bugs.webkit.org/show_bug.cgi?id=37069 ), but can be landed independently. BUG=11457,18992 TEST=(all require the webkit patch, so this won't work yet) http://html5demos.com/drag and http://ljouanneau.com/lab/html5/demodragdrop.html Dragging should show image http://www.google.com/ Dragging google image should show image http://www.travelvivi.com/wp-content/uploads/2009/09/Eiffel_Tower.jpg Dragging image should work, drag image should be smaller than image itself Random website Mark some text, drag it. Should show drag cursor and no image Review URL: http://codereview.chromium.org/1539018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43631 0039d316-1c4b-4281-b951-d872f2087c98
* Remove an erroneous debugging printf.jhawkins@chromium.org2010-04-051-1/+0
| | | | | | | | | | TBR=dhollowa BUG=none TEST=none Review URL: http://codereview.chromium.org/1520016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43626 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper audio basic functionality unit test, take 3.neb@chromium.org2010-04-054-9/+41
| | | | | | | | Also changed TestSink to be derived from IPC::Channel and made MockRenderThread service AddFilter/RemoveFilter, so that it can be used by MessageFilters. Review URL: http://codereview.chromium.org/1591009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43623 0039d316-1c4b-4281-b951-d872f2087c98
* Eliminate WebCore include paths when compiling Chromium code.darin@chromium.org2010-04-031-2/+1
| | | | | | | | | | | | | In the process of trying to do this, I discovered some unnecessary config.h includes as well as some remaining WebCore function calls. R=dglazkov BUG=none TEST=none Review URL: http://codereview.chromium.org/1521010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43574 0039d316-1c4b-4281-b951-d872f2087c98
* Reland r43564 with tests disabled.jhawkins@chromium.org2010-04-032-5/+11
| | | | | | | | | | | | Attempt to fix the perf regression: remove the code that calls LabelForElement. TBR=dhollowa BUG=40306 TEST=none Review URL: http://codereview.chromium.org/1597005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43569 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 43564 - Attempt to fix the perf regression: remove the code that ↵jar@chromium.org2010-04-031-3/+1
| | | | | | | | | | | | | | | | | calls LabelForElement. Repair tree bustage across mac and linux. TBR=dhollowa BUG=none TEST=none Review URL: http://codereview.chromium.org/1520015 TBR=jhawkins@chromium.org Review URL: http://codereview.chromium.org/1604010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43565 0039d316-1c4b-4281-b951-d872f2087c98
* Attempt to fix the perf regression: remove the code that calls LabelForElement.jhawkins@chromium.org2010-04-031-1/+3
| | | | | | | | | | TBR=dhollowa BUG=none TEST=none Review URL: http://codereview.chromium.org/1520015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43564 0039d316-1c4b-4281-b951-d872f2087c98
* AutoFill: Use the FormManager cache to send forms to the AutoFillManager.jhawkins@chromium.org2010-04-035-65/+156
| | | | | | | | | | | Remove the FormFieldValues class and replace its usage with FormData. BUG=38325,33032 TEST=none Review URL: http://codereview.chromium.org/1606005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43555 0039d316-1c4b-4281-b951-d872f2087c98
* Audio cut off ~500ms too earlyhclam@chromium.org2010-04-021-1/+1
| | | | | | | | | | | | | | | | BUG=23055 TEST=layout tests and audio won't cut off too early with this file: http://commons.wikimedia.org/wiki/File:Montreal2.ogg This patch fix the problem by adding an extra condition to determine the end of playback by using the information of buffered audio data in the browser process. If both the renderer process and browser process don't have any more audio data then end of playback is resulted. Review URL: http://codereview.chromium.org/1581008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43546 0039d316-1c4b-4281-b951-d872f2087c98
* Add calling frame's source_url to extension and dom ui requests.rafaelw@chromium.org2010-04-025-5/+25
| | | | | | | | Additionally, in the extension and tabs api, compute & report UMA histogram data for relative URL use in API calls so we can decide if it's possible to change the behavior of relative url resolution to use the calling frame's url rather than the extension's base url. Review URL: http://codereview.chromium.org/1605005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43523 0039d316-1c4b-4281-b951-d872f2087c98
* 1. Create a new sandbox type which allows access to Unix sockets in the Macmsneck@google.com2010-04-021-1/+15
| | | | | | | | | | | | | | | | | | | | | renderer sandbox to support running Native Client. 2. Put the Native Client sel_ldr (which contains the user's untrusted code) into a new Mac sandbox type. 3. Open /dev/random in SandboxWarmup(). 4. Remove the "--nosandbox" flag when running Mac tests. See http://codereview.chromium.org/1234003/show and http://codereview.chromium.org/1525005/show which were both reverted because of problems on Mac 10.6. This change is identical except for the ";NACL" lines in renderer.sb files and the corresponding lines in nacl-loader.sb. Unix socket support for the sandbox changed considerably from 10.5 to 10.6. BUG=http://code.google.com/p/nativeclient/issues/detail?id=327 TEST=nacl_ui_tests still pass while running in the sandbox. Review URL: http://codereview.chromium.org/1559012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43473 0039d316-1c4b-4281-b951-d872f2087c98
* Changes to the Browser to support Database access from Workers.ericu@google.com2010-04-025-134/+18
| | | | | | | | | | | | This changelist should have no visible effect until the V8 bindings for the Database get added to the Worker context in WebKit. BUG=none TEST=webkit layout tests Review URL: http://codereview.chromium.org/1387001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43427 0039d316-1c4b-4281-b951-d872f2087c98