summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/extensions
Commit message (Collapse)AuthorAgeFilesLines
* Trying to reland r59889, this time as a multi-stage patch.mpcomplete@chromium.org2010-09-231-14/+10
| | | | | | | | | | | | | | | | | Fix regression introduced by http://src.chromium.org/viewvc/chrome?view=rev&revision=57788 Add a delegate interface so that chromium have more fine-grained control over whether a V8 extension is injected into a script context. This is the chromium-side change of webkit bug https://bugs.webkit.org/show_bug.cgi?id=45721 BUG=37290 TEST=covered by unit tests Review URL: http://codereview.chromium.org/3464005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60350 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 59889 - Fix regression introduced bythakis@chromium.org2010-09-191-4/+11
| | | | | | | | | | | | | | | | | | | http://src.chromium.org/viewvc/chrome?view=rev&revision=57788 Add a delegate interface so that chromium have more fine-grained control over whether a V8 extension is injected into a script context. This is the chromium-side change of webkit bug https://bugs.webkit.org/show_bug.cgi?id=45721 BUG=37290 TEST=covered by unit tests Review URL: http://codereview.chromium.org/3398001 TBR=mpcomplete@chromium.org Review URL: http://codereview.chromium.org/3464003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59906 0039d316-1c4b-4281-b951-d872f2087c98
* Fix regression introduced bympcomplete@chromium.org2010-09-181-11/+4
| | | | | | | | | | | | | | | | http://src.chromium.org/viewvc/chrome?view=rev&revision=57788 Add a delegate interface so that chromium have more fine-grained control over whether a V8 extension is injected into a script context. This is the chromium-side change of webkit bug https://bugs.webkit.org/show_bug.cgi?id=45721 BUG=37290 TEST=covered by unit tests Review URL: http://codereview.chromium.org/3398001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59889 0039d316-1c4b-4281-b951-d872f2087c98
* base: Move SplitStringDontTrim functions from string_util.h to string_split.htfarina@chromium.org2010-09-151-2/+3
| | | | | | | | | BUG=None TEST=trybots Review URL: http://codereview.chromium.org/3366011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59493 0039d316-1c4b-4281-b951-d872f2087c98
* Land implementation part of cl 3352009 (that cl was just dataaa@chromium.org2010-09-141-0/+5
| | | | | | | | | | | | | files that had to be uploaded first for try runs to work). This makes window.open() open a tab or popup window correctly from extensions, even when no user gesture is present. BUG=54768 TEST=Added browser tests. Review URL: http://codereview.chromium.org/3325024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59418 0039d316-1c4b-4281-b951-d872f2087c98
* Excempt certain extension functions from module permission check.finnur@chromium.org2010-09-101-10/+1
| | | | | | | | BUG=43743 TEST=Two news tests: ExtensionTest.ApiPermissions (unit test), and ExtensionApiTest.AlwaysAllowed (browser test) Review URL: http://codereview.chromium.org/3316009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59074 0039d316-1c4b-4281-b951-d872f2087c98
* Allow experimental extension pop-ups from infobars.joi@chromium.org2010-09-031-1/+6
| | | | | | | | | BUG=none TEST=browser_tests.exe --gtest_filter=*PopupFromInfobar* Review URL: http://codereview.chromium.org/3127037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58442 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for a "split" incognito behavior for extensions.mpcomplete@chromium.org2010-08-313-15/+31
| | | | | | | | | | | | | | | | - On by default for apps, off by default for extensions. - Split mode means "run incognito extensions in a separate process if the user says OK, and the two processes can only see their own profile." - Spanning mode is what we have now, and means "run a single extension process, but allow it to access both profiles if the user says OK." BUG=49232 BUG=49114 TEST=extensions still work in incognito when you check "Allow in Incognito". Review URL: http://codereview.chromium.org/3210007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58033 0039d316-1c4b-4281-b951-d872f2087c98
* Reland r57788 - Expose Extension Bindings to Component Applicationsrafaelw@chromium.org2010-08-315-47/+80
| | | | | | | | | | | | | | | | This patch allows component (built-in) extension apps to have extension api bindings. Note that this patch adds browser-side api permission checking for extension requests. This is step two along the path to exposing an extension management api to the gallery (webstore). Original Review: http://codereview.chromium.org/3163044 BUG=27431 TBR=mpcomplete Review URL: http://codereview.chromium.org/3263007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57941 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 57788 - Expose Extension Bindings to Component Applicationsrafaelw@chromium.org2010-08-285-78/+47
| | | | | | | | | | | | | | | | | This patch allows component (built-in) extension apps to have extension api bindings. Note that this patch adds browser-side api permission checking for extension requests. This is step two along the path to exposing an extension management api to the gallery (webstore). BUG=27431 Review URL: http://codereview.chromium.org/3163044 TBR=rafaelw@chromium.org Review URL: http://codereview.chromium.org/3249004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57789 0039d316-1c4b-4281-b951-d872f2087c98
* Expose Extension Bindings to Component Applicationsrafaelw@chromium.org2010-08-285-47/+78
| | | | | | | | | | | | | | This patch allows component (built-in) extension apps to have extension api bindings. Note that this patch adds browser-side api permission checking for extension requests. This is step two along the path to exposing an extension management api to the gallery (webstore). BUG=27431 Review URL: http://codereview.chromium.org/3163044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57788 0039d316-1c4b-4281-b951-d872f2087c98
* fix browsertest failureerikkay@chromium.org2010-08-271-1/+1
| | | | | | | | | | TBR=skerner BUG=none TEST=ExtensionBrowserTest.PropertyAppIsInstalled Review URL: http://codereview.chromium.org/3273001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57693 0039d316-1c4b-4281-b951-d872f2087c98
* When the browser doesn't have connectivity to a hosted app, display a ↵erikkay@chromium.org2010-08-274-3/+218
| | | | | | | | | | | prettier error page by default. TEST=none BUG=41281 Review URL: http://codereview.chromium.org/3174024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57680 0039d316-1c4b-4281-b951-d872f2087c98
* Implement window.chrome.app.isInstalled .skerner@chromium.org2010-08-272-0/+89
| | | | | | | | | BUG=49225 TEST=ExtensionBrowserTest.PropertyAppIsInstalled Review URL: http://codereview.chromium.org/3169045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57674 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Move individual XXXMsg_Params structs to a new file.erg@google.com2010-08-241-0/+1
| | | | | | | | | | | | | | | | The new file, render_messages_params.h, is included in 57 files, while render_messages.h is included in 176 files. Moving the Params structs to their own file allow pruning the included headers. (Part 2 of this cleanup will be sorting the individual structs into themes to further minimize header inclusion.) BUG=51411 TEST=compiles Review URL: http://codereview.chromium.org/3119035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57229 0039d316-1c4b-4281-b951-d872f2087c98
* Initial version of chrome.experimental.sidebar extension API. brettw@chromium.org2010-08-191-15/+34
| | | | | | | | | | | | | | BUG=51084 TEST=Run interactive_ui_tests and browser_tests. New: - sidebar Extension API (design doc: https://docs.google.com/a/google.com/Doc?docid=0AV4Qg3xyZ8RQZGZtbWIydDJfNWc0eHJtbmRm&hl=en); - Sidebar panel in Chrome browser view; Original review=http://codereview.chromium.org/2836040/show Patch by alekseys@google.com git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56716 0039d316-1c4b-4281-b951-d872f2087c98
* Fix CRLF in extension_process_bindings.ccmpcomplete@chromium.org2010-08-171-700/+700
| | | | | | | | | | TBR=erikkay TEST=no BUG=no Review URL: http://codereview.chromium.org/3152022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56280 0039d316-1c4b-4281-b951-d872f2087c98
* remove toolstripserikkay@chromium.org2010-08-122-737/+700
| | | | | | | | | | | BUG=51703 BUG=30178 BUG=25106 TEST=none Review URL: http://codereview.chromium.org/3129003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55921 0039d316-1c4b-4281-b951-d872f2087c98
* Convert wstring/wchar_t* in chrome/renderer to std::string/char* or string16.viettrungluu@chromium.org2010-07-312-4/+4
| | | | | | | | | | | | These were (mostly) made possible by the change in DictionaryValue's keys to std::string. BUG=23581 TEST=unit tests Review URL: http://codereview.chromium.org/3057027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54483 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded headers from app/thestig@chromium.org2010-07-291-1/+0
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/2819063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54102 0039d316-1c4b-4281-b951-d872f2087c98
* `#pragma once` for app, base, chrome, gfx, ipc, net, skia, viewsthakis@chromium.org2010-07-265-0/+5
| | | | | | | | | BUG=50273 TEST=everything still builds, build is 10% faster on windows, same speed on mac/linux TBR: erg git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53716 0039d316-1c4b-4281-b951-d872f2087c98
* render_view.h: Header cleanup.jhawkins@chromium.org2010-07-262-0/+4
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3061013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53655 0039d316-1c4b-4281-b951-d872f2087c98
* Move context menu module out of experimental.aa@chromium.org2010-07-171-1/+0
| | | | | | | | BUG=48725,39508 Review URL: http://codereview.chromium.org/2840038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52784 0039d316-1c4b-4281-b951-d872f2087c98
* Added accessor for permissions map. NaCl needs this in order to look uperikkay@chromium.org2010-07-152-18/+51
| | | | | | | | | | | a nacl permission. BUG=45881 TEST=None Review URL: http://codereview.chromium.org/2941011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52566 0039d316-1c4b-4281-b951-d872f2087c98
* Add a wildcard scheme and a special 'all_urls' pattern to URLPattern.mpcomplete@chromium.org2010-06-301-5/+15
| | | | | | | | BUG=47179 Review URL: http://codereview.chromium.org/2884008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51295 0039d316-1c4b-4281-b951-d872f2087c98
* Remove ExtensionAPIClient tests. These have been supercededaa@chromium.org2010-06-161-740/+0
| | | | | | | | | | for the most part by the extension api tests. BUG=34994,43775,46217,22248 Review URL: http://codereview.chromium.org/2847008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49911 0039d316-1c4b-4281-b951-d872f2087c98
* Mark ExtensionAPIClientTest.CreateWindow as flaky on Windowsjshin@chromium.org2010-06-101-1/+7
| | | | | | | | | BUG=46217 TEST=greener tree TBR=jcivelli Review URL: http://codereview.chromium.org/2751004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49345 0039d316-1c4b-4281-b951-d872f2087c98
* Fix memory leak introduced in r47972 ↵rafaelw@chromium.org2010-05-251-7/+10
| | | | | | | | | | | (http://codereview.chromium.org/2137012/show). TEST=none BUG=36301 Review URL: http://codereview.chromium.org/2214001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48212 0039d316-1c4b-4281-b951-d872f2087c98
* Update extension functions to always pass a list of arguments, even when one ↵arv@chromium.org2010-05-212-45/+44
| | | | | | | | | | | argument was passed. BUG=36301 TEST=Updated tests and ran all the existing tests. Review URL: http://codereview.chromium.org/2137012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47972 0039d316-1c4b-4281-b951-d872f2087c98
* Disable ExtensionAPIClientTest.GetAllWindows as it flakily crashes.jhawkins@chromium.org2010-05-121-1/+2
| | | | | | | | | | TBR=mpcomplete BUG=22248 TEST=none Review URL: http://codereview.chromium.org/1999007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47072 0039d316-1c4b-4281-b951-d872f2087c98
* Disallow display of multiple experimental.extension.popup(...) windows ericdingle@google.com2010-05-121-1/+1
| | | | | | | | | | | This is a duplicate of http://codereview.chromium.org/2027006 which was accidentally created in a read-only client. BUG=None TEST=ExtensionApiTest.Popup Review URL: http://codereview.chromium.org/2003016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47052 0039d316-1c4b-4281-b951-d872f2087c98
* Disable ExtensionAPIClientTest.GetCurrentWindow, it's crashy.bauerb@chromium.org2010-05-121-3/+3
| | | | | | | | | TEST=Vista (dbg) not crashing BUG=22248 Review URL: http://codereview.chromium.org/2018008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47015 0039d316-1c4b-4281-b951-d872f2087c98
* Bummer: Re-disabling ExtensionAPIClientTest.GetLastFocusedWindow again becausejhawkins@chromium.org2010-05-121-1/+2
| | | | | | | | | | | | the JS exception causes the test to crash. TBR=mpcomplete BUG=22248 TEST=none Review URL: http://codereview.chromium.org/1993012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46989 0039d316-1c4b-4281-b951-d872f2087c98
* TTF: Mark ExtensionAPIClientTest.GetLastFocusedWindow as flaky instead of ↵jhawkins@chromium.org2010-05-111-2/+2
| | | | | | | | | | | disabling it. BUG=22248 TEST=none Review URL: http://codereview.chromium.org/2016008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46945 0039d316-1c4b-4281-b951-d872f2087c98
* Disable BrowserTest.ThirtyFourTabs on Mac.bauerb@chromium.org2010-05-111-0/+1
| | | | | | | | | | | | Also, add a comment to the previously disabled ExtensionApiJsonValidityTest.WithV8 test. TBR=phajdan.jr BUG=43862 TEST=Chromium Mac going green. Review URL: http://codereview.chromium.org/2057005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46912 0039d316-1c4b-4281-b951-d872f2087c98
* Disable ExtensionApiJsonValidityTest.WithV8 under windows.bauerb@chromium.org2010-05-111-1/+7
| | | | | | | | | | | | | ExtensionApiJsonValidityTest.WithV8 sometimes crashes under Vista. TBR=sgjesse TEST=less crashyness, more happiness BUG=43855 Review URL: http://codereview.chromium.org/1985013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46908 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 46592 - Disallow display of multiple ↵zork@chromium.org2010-05-061-1/+1
| | | | | | | | | | | | | | | | | experimental.extension.popup(...) windows. Patch 1 contains twiz@'s code reviewed implementation from http://codereview.chromium.org/1512007. This CL is to address the failure of release tests. BUG=None TEST=ExtensionApiTest.Popup Review URL: http://codereview.chromium.org/1921003 TBR=ericdingle@google.com Review URL: http://codereview.chromium.org/2036002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46638 0039d316-1c4b-4281-b951-d872f2087c98
* Disallow display of multiple experimental.extension.popup(...) windows.ericdingle@google.com2010-05-061-1/+1
| | | | | | | | | | | | Patch 1 contains twiz@'s code reviewed implementation from http://codereview.chromium.org/1512007. This CL is to address the failure of release tests. BUG=None TEST=ExtensionApiTest.Popup Review URL: http://codereview.chromium.org/1921003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46592 0039d316-1c4b-4281-b951-d872f2087c98
* Rename some other occurrences of deperecated methods.antonm@chromium.org2010-05-061-1/+1
| | | | | | Review URL: http://codereview.chromium.org/1954002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46569 0039d316-1c4b-4281-b951-d872f2087c98
* Initial support for web-extent background pages.rafaelw@chromium.org2010-05-061-4/+6
| | | | | | | | | | | | | | | | | | | | This patch adds a new RVH container: BackgroundContents. The idea is that apps can open a live web-page as a "background" page using window.open('<url>', '<name>', 'background'); If 'background' is specified and the opener is within the app's extent, a BackgroundContents will be used. Otherwise, the 'background' feature is ignored and it is treated as a regular popup call. Note that as of this patch the following are explicitly not-yet addressed: 1) Session storage for BackgroundContents 2) SSL (or other failures) requiring UI 3) Javascript messages (alert, etc...) 4) Session restore TEST=All tests should pass BUG=41275 Review URL: http://codereview.chromium.org/1734014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46544 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Clean-up of the asynchronous behaviour of the experimental extension ↵phajdan.jr@chromium.org2010-05-011-1/+1
| | | | | | | | | | | | popup API. " This reverts http://codereview.chromium.org/1512007 TBR=twiz Review URL: http://codereview.chromium.org/1735026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46184 0039d316-1c4b-4281-b951-d872f2087c98
* Clean-up of the asynchronous behaviour of the experimental extension popup API. twiz@chromium.org2010-04-301-1/+1
| | | | | | | | | | | | | | | | | - It was previously possible to programmatically launch two popups from the same extension. (Simply call popup.show twice in a row, or in a callback chain.) I removed this incorrect funcationality by registering ExtensionPopupHost to listen for EXTENSION_HOST_CREATED notifications. If a popup is shown, and a new ExtensionHost is constructed of type EXTENSION_POPUP, then the presently displayed popup is dismissed. - The callback function for popup.show(...) was previously called in response to EXTENSION_POPUP_VIEW_READY, as processed in response to a ViewHostMsg_DocumentAvailableInMainFrame message. This message wassent after PARSING of the conent of the popup view. Because of this behaviour, the API was difficult to use because one could not meaningfully interact with the popup page during the callback: The callback would race with completion of the onload handler within the popup, so some sort of polling for onload-complete was required. I fixed the problem by adding new notifications and messages so that EXTENSION_POPUP_VIEW_READY is now sent only after all onload handlers have been invoked.Corresponding unit-tests have also been added. BUG=None TEST=ExtensionApiTest.Popup Review URL: http://codereview.chromium.org/1512007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46136 0039d316-1c4b-4281-b951-d872f2087c98
* Give chrome-extension frames in regular renderers access to messaging APIs,mpcomplete@chromium.org2010-04-192-0/+11
| | | | | | | | | | | but nothing else. This is the chrome-side of webkit bug https://bugs.webkit.org/show_bug.cgi?id=37681 BUG=37920 Review URL: http://codereview.chromium.org/1663003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44926 0039d316-1c4b-4281-b951-d872f2087c98
* Add chrome.tabs.getCurrent() api call to extensions.rafaelw@chromium.org2010-04-141-1/+16
| | | | | | | | | | | This is primarily so that code running in an infobar can discover what tab the info is inserted in. It also works for code running directly in a TabContents. The call will return undefined if called from a background page or popup view. BUG=40428 TEST=All tests should pass (additional tests included) Review URL: http://codereview.chromium.org/1521032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44542 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 44348 Add support for restricting broadcasting events to extensions ↵jochen@chromium.org2010-04-145-13/+49
| | | | | | | | | | | | based on host permissions BUG=38398 TEST=none TBR=jochen@chromium.org Review URL: http://codereview.chromium.org/1528038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44470 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 44351 - Reland 44348 Add support for restricting broadcasting events ↵jochen@chromium.org2010-04-135-43/+13
| | | | | | | | | | | | | | | to extensions based on host permissions BUG=38398 TEST=none TBR=jochen@chromium.org Review URL: http://codereview.chromium.org/1642005 TBR=jochen@chromium.org Review URL: http://codereview.chromium.org/1521027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44355 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 44348 Add support for restricting broadcasting events to extensions ↵jochen@chromium.org2010-04-135-13/+43
| | | | | | | | | | | | based on host permissions BUG=38398 TEST=none TBR=jochen@chromium.org Review URL: http://codereview.chromium.org/1642005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44351 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 44348 - Add support for restricting broadcasting events to extensions ↵jochen@chromium.org2010-04-135-43/+13
| | | | | | | | | | | | | | based on host permissions. BUG=38398 TEST=none Review URL: http://codereview.chromium.org/1095002 TBR=jochen@chromium.org Review URL: http://codereview.chromium.org/1575036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44349 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for restricting broadcasting events to extensions based on host ↵jochen@chromium.org2010-04-135-13/+43
| | | | | | | | | | | permissions. BUG=38398 TEST=none Review URL: http://codereview.chromium.org/1095002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44348 0039d316-1c4b-4281-b951-d872f2087c98
* Support PNG and quality control in chrome.tabs.captureVisibleTab().skerner@chromium.org2010-04-081-9/+87
| | | | | | | | | 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