summaryrefslogtreecommitdiffstats
path: root/chrome/common
Commit message (Collapse)AuthorAgeFilesLines
* Update samples page. Replace buildbot sample with news one, since itaa@chromium.org2009-11-194-47/+78
| | | | | | | | | | | is more interesting. Decided not to do full details on the other samples since they are very similar to the ones we already have. TBR=kathyw@google.com git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32505 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a path traversal issue in extension unpacking. Because of the sandbox, ↵aa@chromium.org2009-11-192-5/+20
| | | | | | | | this was not exploitable, but still a good thing to fix. Review URL: http://codereview.chromium.org/399063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32502 0039d316-1c4b-4281-b951-d872f2087c98
* linux: use /proc/self/exe when exec'ing ourselvesevan@chromium.org2009-11-192-7/+13
| | | | | | | | | | | | | | | | | | | We don't want to ever go out to disk when looking for data after startup, since they can be changed by an update. We *should* just be using the zygote, but the zygote is sandboxed-only for now, and fixing that has a lengthy dependency graph. In the interim, /proc/self/exe is the correct executable and exec'ing it should work as long as the subprocess doesn't need any other files from the Chrome directory. BUG=22703 TEST=Start Chrome. Move away the entire Chrome directory; plugins should still work. Review URL: http://codereview.chromium.org/403018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32486 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "linux: use /proc/self/exe when exec'ing ourselves"evan@chromium.org2009-11-192-13/+7
| | | | | | | | This reverts commit r32457. This works for me in Debug and Release, and Lei in Debug, but not for him or the bots in Release. Hate computers. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32472 0039d316-1c4b-4281-b951-d872f2087c98
* linux: use /proc/self/exe when exec'ing ourselvesevan@chromium.org2009-11-192-7/+13
| | | | | | | | | | | | | | | | | | | We don't want to ever go out to disk when looking for data after startup, since they can be changed by an update. We *should* just be using the zygote, but the zygote is sandboxed-only for now, and fixing that has a lengthy dependency graph. In the interim, /proc/self/exe is the correct executable and exec'ing it should work as long as the subprocess doesn't need any other files from the Chrome directory. BUG=22703 TEST=Start Chrome. Move away the entire Chrome directory; plugins should still work. Review URL: http://codereview.chromium.org/403018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32457 0039d316-1c4b-4281-b951-d872f2087c98
* Enabling (sandboxed) extension unpacker tests.cira@chromium.org2009-11-191-14/+12
| | | | | | | | XP bots were failing on directory Delete. Removing ASSERT_TRUE for deletes solves the problem. Review URL: http://codereview.chromium.org/408009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32451 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "linux: use /proc/self/exe when exec'ing ourselves"evan@chromium.org2009-11-181-10/+6
| | | | | | This reverts commit r32410. Stupid tests. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32422 0039d316-1c4b-4281-b951-d872f2087c98
* If an NP_* function is called on an out of process plugin, save enough info ↵japhet@chromium.org2009-11-181-3/+3
| | | | | | | | to send an NPN_SetException back to the correct renderer if necessary. BUG=26764 TEST=none Review URL: http://codereview.chromium.org/375005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32419 0039d316-1c4b-4281-b951-d872f2087c98
* Ignore requests to run content scripts on file:// urls.finnur@chromium.org2009-11-183-5/+1
| | | | | | | | | | | | | | We currently throw an error when loading the extension, which is overly aggressive. BUG=28158 TEST=Specify matches=file://* in the manifest for a content script and make sure the extension still loads. Review URL: http://codereview.chromium.org/402069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32415 0039d316-1c4b-4281-b951-d872f2087c98
* Tweaks and fixes for NTP extension promo.mirandac@chromium.org2009-11-182-3/+6
| | | | | | | | | | | | Don't show promo for extensions on Mac, as they're not available yet. Decrement promo counter even when NTP is not home page, and do not remove puzzle piece when promo line is closed. When message bar is closed, make it zip off bottom of screen instead of just disappearing. BUG= 27814, 25258, 27815 TEST= see various bugs. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=32176 Review URL: http://codereview.chromium.org/385135 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32413 0039d316-1c4b-4281-b951-d872f2087c98
* linux: use /proc/self/exe when exec'ing ourselvesevan@chromium.org2009-11-181-6/+10
| | | | | | | | | | | | | | | | | | | We don't want to ever go out to disk when looking for data after startup, since they can be changed by an update. We *should* just be using the zygote, but the zygote is sandboxed-only for now, and fixing that has a lengthy dependency graph. In the interim, /proc/self/exe is the correct executable and exec'ing it should work as long as the subprocess doesn't need any other files from the Chrome directory. BUG=22703 TEST=Start Chrome. Move away the entire Chrome directory; plugins should still work. Review URL: http://codereview.chromium.org/403018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32410 0039d316-1c4b-4281-b951-d872f2087c98
* Addition of "optional" tag to chrome.exerpimental.popup routines that may ↵twiz@google.com2009-11-181-4/+6
| | | | | | | | return an undefined value.chrome.experimental.extension.getPopupView() may return undefined if no pop-up is currently displayed.chrome.experimental.popup.getParentWindow() may return undefined if called from a non-popup view.BUG=28045TEST=extension_popup_apitest.cc Review URL: http://codereview.chromium.org/400023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32387 0039d316-1c4b-4281-b951-d872f2087c98
* Hook up the memory purger to all the relevant locations.pkasting@chromium.org2009-11-181-1/+1
| | | | | | | | | | This removes the two-state purge/reset code (no longer necessary), and the hooks to the power monitor (not ready to turn those on without more work and testing). BUG=23400 TEST=Run Chrome with --purge-memory-button, use it for awhile, open the Task Manager, and click "Purge Memory". You should still be able to use the program normally, and hopefully we dumped some memory out too (varies by usage). Review URL: http://codereview.chromium.org/399028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32376 0039d316-1c4b-4281-b951-d872f2087c98
* DISABLING all new unpacker tests. XP try bots are failing.cira@chromium.org2009-11-181-10/+10
| | | | | | | | TBR=tony@chromium.org Review URL: http://codereview.chromium.org/399076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32357 0039d316-1c4b-4281-b951-d872f2087c98
* Parse messages.json in ExtensionUnpacker (like we do for manifest) and pass ↵cira@chromium.org2009-11-189-7/+244
| | | | | | | | | | | | | them to sandboxed_extension_unpacker. Added unittest files for unpacker and sandboxed unpacker. TEST=Try loading any of the unpacker samples added in this CL. They should either pass, or show error and fail. BUG=27362 Review URL: http://codereview.chromium.org/390019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32345 0039d316-1c4b-4281-b951-d872f2087c98
* Make extension popups shrink when their contents shrink.aa@chromium.org2009-11-181-0/+1
| | | | | | | | | BUG=26471 TEST=Load news example extension, see resizing goodness. Review URL: http://codereview.chromium.org/400028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32305 0039d316-1c4b-4281-b951-d872f2087c98
* Don't allow content scripts to execute on file:// urls.finnur@chromium.org2009-11-187-4/+28
| | | | | | | | | | | | This requires a command line flag for the page cycler tests, since those load file:// urls. BUG=27877 TEST=Bunch of tests affected. Review URL: http://codereview.chromium.org/402029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32271 0039d316-1c4b-4281-b951-d872f2087c98
* Launch processes asynchronously so as not to block the UI thread. For now, ↵jam@chromium.org2009-11-181-1/+6
| | | | | | | | | renderer only, I'll take care of plugin/worker/utility processes in a followup change. (relanding 32203) BUG=6844 Review URL: http://codereview.chromium.org/397031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32264 0039d316-1c4b-4281-b951-d872f2087c98
* Use an explicit boolean has_new_first_party_for_cookies insteadwtc@chromium.org2009-11-185-3/+11
| | | | | | | | | | | | of an empty, invalid URL to indicate whether the first party for cookies URL needs changing when following a redirect. R=eroman BUG=25133 TEST=none Review URL: http://codereview.chromium.org/405011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32260 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a crashing bug around ApplicationCacheDispatcherHost::Initialize in the ↵michaeln@google.com2009-11-181-4/+8
| | | | | | | | | | | mac port. TEST=existing tests BUG=26754 Review URL: http://codereview.chromium.org/402025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32243 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 32203,32204,32205 - Launch processes asynchronously so as not to ↵jam@chromium.org2009-11-181-6/+1
| | | | | | | | | | | block the UI thread. For now, renderer only, I'll take care of plugin/worker/utility processes in a followup change. BUG=6844 Review URL: http://codereview.chromium.org/397002 Review URL: http://codereview.chromium.org/402033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32238 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 32176 - Tweaks and fixes for NTP extension promo.mirandac@chromium.org2009-11-182-6/+3
| | | | | | | | | | | | | Don't show promo for extensions on Mac, as they're not available yet. Decrement promo counter even when NTP is not home page, and do not remove puzzle piece when promo line is closed. When message bar is closed, make it zip off bottom of screen instead of just disappearing. BUG= 27814, 25258, 27815 TEST= see various bugs. Review URL: http://codereview.chromium.org/385135 TBR=mirandac@chromium.org Review URL: http://codereview.chromium.org/399051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32237 0039d316-1c4b-4281-b951-d872f2087c98
* UI Changes for benchmark:mbelshe@google.com2009-11-171-5/+11
| | | | | | | | | | | | | a) Remove the "Config" button; instead, the configuration is always just applied to a run. b) Make the clear button work properly Put in UI when there are no results to display. BUG=none TEST=none Review URL: http://codereview.chromium.org/397025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32207 0039d316-1c4b-4281-b951-d872f2087c98
* Launch processes asynchronously so as not to block the UI thread. For now, ↵jam@chromium.org2009-11-171-1/+6
| | | | | | | | | renderer only, I'll take care of plugin/worker/utility processes in a followup change. BUG=6844 Review URL: http://codereview.chromium.org/397002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32203 0039d316-1c4b-4281-b951-d872f2087c98
* Remove min/max values from averages in benchmark.mbelshe@google.com2009-11-171-1/+13
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/399039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32198 0039d316-1c4b-4281-b951-d872f2087c98
* Remove new tabstrip code. Going to try doing this a different way.ben@chromium.org2009-11-172-4/+0
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/400005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32197 0039d316-1c4b-4281-b951-d872f2087c98
* Use plain strings instead of wstrings for UMA actionsevan@chromium.org2009-11-171-1/+1
| | | | | | | | | | | | git grep 'RecordAction(L' | xargs sed -i -e s/RecordAction(L/RecordAction(/ This cuts more than 10k off my binary. Which is nothing compared to the size of the binary, but that's a whole lot of zero bytes! This is less code this way anyway. Review URL: http://codereview.chromium.org/399026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32194 0039d316-1c4b-4281-b951-d872f2087c98
* Tweaks and fixes for NTP extension promo.mirandac@chromium.org2009-11-172-3/+6
| | | | | | | | | | Don't show promo for extensions on Mac, as they're not available yet. Decrement promo counter even when NTP is not home page, and do not remove puzzle piece when promo line is closed. When message bar is closed, make it zip off bottom of screen instead of just disappearing. BUG= 27814, 25258, 27815 TEST= see various bugs. Review URL: http://codereview.chromium.org/385135 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32176 0039d316-1c4b-4281-b951-d872f2087c98
* Implement web app shortcuts natively per issue 25528xiyuan@chromium.org2009-11-174-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Implement a CreateApplicationShortcutView similar to the current Gears-based one; - Add a few profile prefs to persist user's last checked shortcut locations - Implement a web_app::CreateShortcut that stores icon under "<profile>/Web Applications" in a similar layout as gears (i.e. <host>/<scheme_port>/<web_app_title>.ico) and calls file_util code to creates shortcut on Windows; - Add Win7 taskbar pin/unpin support function to file_util; - Update TabContents to replace gears with new code; Note: - Gears dialog is modaless but this one is a modal dialog. - Gear's icon store is not migrated because gears icons could still be used by shortcuts created by gears and thus we could not delete them even after migration. And we are not using the local ico files in the dialog even if they exists. - New CreateApplicationShortcutView is included when TOOLKIT_VIEW is defined. However on platforms other than Windows, the actual CreateShortCut code is not implemented. Right now it calls ShellIntegration's CreateDesktopShort if OS_LINUX is defined and NOTREACHED() for other platforms. BUG=25528 TEST=Verify the new UI provides the same functionality as gears under XP/Vista and support pinning on Win 7. Review URL: http://codereview.chromium.org/372012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32165 0039d316-1c4b-4281-b951-d872f2087c98
* Refactoring of the chrome.experimental.popup API implementation to allow ↵twiz@google.com2009-11-162-3/+400
| | | | | | | | | | | | | | | | display of pop-ups for extensions viewed through a tab-contents view.I added a new class, ExtensionPopupHost. This class implements the necessary environment for managing child popup windows from either an ExtensionHost, or an ExtensionDOMUI. Note that this class is added as a member to ExtensionHost and ExtensionDOMUI. I decided to take this approach to prevent multiple inheritance of the NotificationObserver class: Both ExtensionPopupHost and ExtensionHost must inherit from this class, and I was uncertain of how the system would behave wrt virtual inheritance. Please comment on if I should have used the inheritance approach. I also removed the customHandler tag (in extension_api.json) that I had added in the initial submission. The arguments in the schema are now those that users of the API see. The nodocs tags were also removed. The api experimental.popup.getAnchorWindow() has been renamed to popup.getParentWindow, as per a suggestion from Erik K. BUG=none TEST=extension_popup_apitest.cc Review URL: http://codereview.chromium.org/385061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32120 0039d316-1c4b-4281-b951-d872f2087c98
* reland 31875. Revert was:estade@chromium.org2009-11-163-17/+7
| | | | | | | | | | | | | | ------ Revert 31875 to see whether it fixes reliability bot. BUG=25677 TEST=None ------ TBR=huanr Review URL: http://codereview.chromium.org/397017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32112 0039d316-1c4b-4281-b951-d872f2087c98
* Update the benchmark to use the document.readyState to measure ↵mbelshe@google.com2009-11-161-8/+9
| | | | | | | | | | | | | | page-completedness rather than the onload event. Extensions were moved from the pre-onload state to running at document idle some time ago. BUG=none TEST=none Review URL: http://codereview.chromium.org/397013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32076 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 31875 to see whether it fixes reliability bot.huanr@chromium.org2009-11-163-7/+17
| | | | | | | | | BUG=25677 TEST=None Review URL: http://codereview.chromium.org/397014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32074 0039d316-1c4b-4281-b951-d872f2087c98
* Final copyedits for beta.kathyw@google.com2009-11-164-107/+22
| | | | | | | | | | TEST=none BUG=none TBR=aa Review URL: http://codereview.chromium.org/395016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32048 0039d316-1c4b-4281-b951-d872f2087c98
* Update homepage's images.kathyw@google.com2009-11-162-0/+0
| | | | | | | | | | TEST=none BUG=none TBR=aa Review URL: http://codereview.chromium.org/391071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32047 0039d316-1c4b-4281-b951-d872f2087c98
* New screenshots for many of the tutorial images.kathyw@google.com2009-11-1613-38/+45
| | | | | | | | | | TEST=none BUG=none TBR=aa Review URL: http://codereview.chromium.org/384148 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32046 0039d316-1c4b-4281-b951-d872f2087c98
* Changes to follow the codesite L&F.kathyw@google.com2009-11-1647-1538/+4110
| | | | | | | | | | | | | | | | | | Also a bit of copyediting and cleanup. Future work: * improve these styles * make these styles work well in IE (the old styles didn't work well in IE, either) * separate the codesite styles from ours (for easier update) BUG=27434 TEST=none TBR=aa Review URL: http://codereview.chromium.org/398005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32043 0039d316-1c4b-4281-b951-d872f2087c98
* Delete the old samples.kathyw@google.com2009-11-165-106/+0
| | | | | | | | | | | | | | These aren't necessary now that the debugging tutorial has been updated and the relevant examples are in the new examples directory. BUG=none TEST=none TBR=aa Review URL: http://codereview.chromium.org/387059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32039 0039d316-1c4b-4281-b951-d872f2087c98
* Add message and image to NTP to promote extensions and bookmark sync.mirandac@chromium.org2009-11-152-3/+3
| | | | | | | | | BUG= 27393, 26744 TEST= promotional messages should show up on NTP. Review URL: http://codereview.chromium.org/394005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32027 0039d316-1c4b-4281-b951-d872f2087c98
* Update the Debugging example to use the browser action version ofkathyw@google.com2009-11-1518-237/+446
| | | | | | | | | | | | hello world. TEST=none BUG=none TBR=aa Review URL: http://codereview.chromium.org/385127 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32021 0039d316-1c4b-4281-b951-d872f2087c98
* Change name of first extension to Hello World.kathyw@google.com2009-11-152-1/+1
| | | | | | | | | | TEST=none BUG=none TBR=aa Review URL: http://codereview.chromium.org/385124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32011 0039d316-1c4b-4281-b951-d872f2087c98
* Add new .zip file for getstarted example.kathyw@google.com2009-11-151-0/+0
| | | | | | | | | | | | | (I'll delete the old one soon. Eventually this file should be automatically built.) BUG=none TEST=none TBR=aa Review URL: http://codereview.chromium.org/385123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32010 0039d316-1c4b-4281-b951-d872f2087c98
* A simple example that displays the first 5 elements of a feed (Google news ↵erikkay@chromium.org2009-11-144-0/+314
| | | | | | | | | | | | | top headlines) in a browser action popup. Originally written by Rajiv Bammi at Google. BUG=none TEST=none Review URL: http://codereview.chromium.org/385097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32009 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 31999 - Enable HTML5 DBs by default (except in incognito mode).dumi@chromium.org2009-11-142-4/+4
| | | | | | | | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/397001 TBR=michael@chromium.org Review URL: http://codereview.chromium.org/397004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32001 0039d316-1c4b-4281-b951-d872f2087c98
* Enable HTML5 DBs by default (except in incognito mode).dumi@chromium.org2009-11-142-4/+4
| | | | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/397001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31999 0039d316-1c4b-4281-b951-d872f2087c98
* Remove (actually, reverse meaning of) command line flag for desktop ↵johnnyg@chromium.org2009-11-142-4/+4
| | | | | | | | | | | | | notifications, so that is is available by default in Windows. Security review at http://b/issue?id=2161143 BUG=25975 TEST=none Review URL: http://codereview.chromium.org/391064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31990 0039d316-1c4b-4281-b951-d872f2087c98
* Turn on shared workers by defaultatwilson@chromium.org2009-11-142-4/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31982 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the messaging timing extension to only message the toplevel frame.mpcomplete@chromium.org2009-11-141-7/+10
| | | | | | | | BUG=no Review URL: http://codereview.chromium.org/384133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31978 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup pass on Getting Started.kathyw@google.com2009-11-1411-47/+133
| | | | | | | | | | | | | | | Copyedited it, and updated it to use new icons, new screenshots, and the new examples directory. I'll remove the samples directory once the debugging tutorial is updated. BUG=none TEST=none TBR=aa Review URL: http://codereview.chromium.org/384136 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31969 0039d316-1c4b-4281-b951-d872f2087c98
* Add stub functions for chrome.* APIs in content scripts. asargent@chromium.org2009-11-131-0/+6
| | | | | | | | | | | | | | | | | | | Most of the extensions API is not supported in content scripts for security purposes. Instead the typical pattern is to use messaging between content scripts and a background page which executes them on behalf of the script. This is not immediately obvious to many extension developers, so this change adds an error message to help them better understand what's going on. BUG=26128 TEST=Try writing a content script that uses some of the extensions API stuff in chrome.tabs, chrome.windows, etc. You should see errors in the console telling you that it isn't supported in content scripts. Review URL: http://codereview.chromium.org/366024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31958 0039d316-1c4b-4281-b951-d872f2087c98