0
Commit Graph

8545 Commits

Author SHA1 Message Date
5a79ff54b6 Enable peerconnection to use the NSS RNG.
TEST=manually with apprtc.appspot.com
BUG=http://code.google.com/p/webrtc/issues/detail?id=591

Review URL: https://chromiumcodereview.appspot.com/11093061

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162055 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 02:53:52 +00:00
bcd76261fd Move ContentViewCore native ownership to WebContents
This means the nest of native objects (once built up) have the same life-times,
and the mismatch is handled at the JNI boundary.

GC might cause WebContents to get deleted before ContentViewCore (if AwContents is finalized before the java ContentViewCore)


BUG=

Review URL: https://chromiumcodereview.appspot.com/11067002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162052 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 02:49:40 +00:00
d29171a549 Implement host side of sync EnumerateVideoCaptureDevices
This implements the host side of the sync ppapi function EnumerateVideoCaptureDevices. 


BUG=none
TEST=Wrote a sample that runs the sync and non-sync versions. Ran it and compared the outputs.

Review URL: https://chromiumcodereview.appspot.com/11016007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162048 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 02:14:11 +00:00
7c98b11705 Upstream Android implementation of WebContentsViewDelegate.
BUG=136075


Review URL: https://chromiumcodereview.appspot.com/10993089

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162031 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 01:40:02 +00:00
5316c141a4 Turn on LevelDB logging
This will help us diagnose corruption in the wild.

BUG=140543

Review URL: https://codereview.chromium.org/11098057

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162016 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 00:59:03 +00:00
1804c33f0d Change WebM parser to treat IVs from encrypted WebM as raw data.
The encrypted WebM spec RFC changed to treat IVs as raw data.

BUG=155641
TEST=All media_unittests pass.
TBR=sky

Review URL: https://chromiumcodereview.appspot.com/11139008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162012 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 00:17:14 +00:00
61b98c6d9e <browser>: Always read <browser>.src attribute from <object>.src.
If we navigate to 'http://www.google.com', then navigate to '' (empty src), reading <browser>.src would now give us (expected) 'http://www.google.com' since we ignore setting empty src attribute in browser_plugin.cc.

BUG=149001
TEST=In web inspector, setting src on <browser> element and reading it.
Added platform app test for verifying the change.
Ran content_browsertests for BrowserPluginTest* and BrowserPluginHostTest*

Review URL: https://chromiumcodereview.appspot.com/11111020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162011 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 00:15:10 +00:00
ccaae54c58 browser-plugin: Refactor the code for binding methods on the plugin.
The hope for this refactor is that adding new bindings will be
easier since the code will be isolated in one place. Stylewise,
this is consistent with other parts of chrome too (chrome
extension functions are somewhat similarly defined, for example).

BUG=none

Review URL: https://codereview.chromium.org/11116003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162010 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 00:11:00 +00:00
d449a69b6d Roll libjingle to r204
Rolling 203:204


Review URL: https://chromiumcodereview.appspot.com/11141008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161999 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 23:31:18 +00:00
f8e9ff1c97 Browser Plugin: More robust recovery from guest crash
Guests don't recover from crashes very well. Basically, the only
actions that would properly recover the browser plugin from crash
is the reload method and setting the src attribute. This change 
moves the resetting of the guest_crashed_ flag to UpdateRect in order 
to make crash recovery more robust. If we're receiving new pixels from
guests, then we can assume that the guest has recovered from a crash.

BUG=155324
Test=BrowserPluginHostTest.BackAfterTerminateGuest


Review URL: https://chromiumcodereview.appspot.com/11094080

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161986 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 22:51:08 +00:00
7158db1b9a Add "panel_fitting" GPU feature type and use it for mirror mode.
Panel fitting is used by mirror display mode on Chrome OS.
This GPU feature type will tell if it is supported by GPU hardware.
Initially enable it only for Ivy Bridge GPU via blacklisting everything else.
Also add a disable_panel_fitting command flag,
to be able to quickly turn the feature off.

When hardware supports panel fitting,
and there are no common modes between the internal and the external displays,
configure the internal display to the external's resolution,
and let the panel fitter take care of displaying it correctly.

BUG=chromium-os:34442
TEST=Panel Fitting should appear as Hardware Accelerated in about:gpu
     on IVB Chrome OS, Unavailable everywhere else.
TEST=Tested mirror mode on device.

Review URL: https://chromiumcodereview.appspot.com/10909242

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161980 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 22:19:31 +00:00
604f46939d Adding progresss bar when loading fullscreen video
BUG=147240


Review URL: https://chromiumcodereview.appspot.com/11087082

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161969 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 21:31:38 +00:00
7f8619f5ef Add DownloadControllerAndroid public interface for android.
BUG=


Review URL: https://chromiumcodereview.appspot.com/11112022

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161964 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 21:22:57 +00:00
db30283ec8 Add a platform-specific syscall number iterator.
Avoid needlessly expensive scanning of system call ranges.
This CL improves how we deal with discontiguous ranges of system call numbers.

(Original CL by markus@chromium.org)

TEST=sandbox_linux_unittests on x86_64 and ARM
BUG=148856


Review URL: https://chromiumcodereview.appspot.com/11096012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161943 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 20:33:16 +00:00
ff297228aa Move PerfTest TraceEvent to async
Move the perf test events to use START/FINISH TraceEvent paths, which will work properly
if they are not triggered in the right nested order.

BUG=http://crbug.com/150584


Review URL: https://chromiumcodereview.appspot.com/11090082

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161942 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 20:33:03 +00:00
a093624b0f Upstream BrowserChildProcessHostImpl
This is also needed to make it possible for content_shell and test_shell
to use mobile as user agent. Some methods and files had to be moved out of chrome
to be able to use them in content_shell

BUG=152807,154122


Review URL: https://chromiumcodereview.appspot.com/11066087

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161933 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 20:06:16 +00:00
2fb5611620 IndexedDB: Plumbing to allow cause of transaction abort to be passed to script
Include a database error (code, message) in the abort callback. The WebKit side
is http://webkit.org/b/99097 which must land after this patch.

R=dgrogan@chromium.org
BUG=113118


Review URL: https://chromiumcodereview.appspot.com/11114022

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161927 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 19:50:21 +00:00
24a65cc071 Android Browser Compositor: Add ScheduleComposite() callback.
This tells the client that it should schedule a composite operation
(i.e. during next vsync signal).

Review URL: https://codereview.chromium.org/11108004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161887 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 17:53:46 +00:00
2ef8d71c27 This is the media related changes for tab capture API's:
- Add new MediaObserver method to enable new tab capture chrome extension API's to be notified of stream request changes for Tab type streams.
- Adds constants for chrome-specific MediaStreamConstraints: mediaSource and mediaSourceId to be used to request video/audio streams with tab media.
- Plumbing/Tweaks to GenerateStreamForDevice for the API to work.

Dependent change: http://codereview.chromium.org/11038021

BUG=153388

Review URL: https://chromiumcodereview.appspot.com/10928043

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161881 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 17:35:52 +00:00
59a11431bd Reland r161839 - [content shell] don't use webkit_support functions to manipulate URLs
In single-process mode, WebKit isn't yet initialized before we start a renderer, so we can't pass around WebURLs

BUG=111316
TEST=content_shell --dump-render-tree --single-process doesn't crash

Review URL: https://codereview.chromium.org/11137015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161879 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 17:27:46 +00:00
ba415077a8 Browser Plugin: Disable Accelerated Compositing
It seems that some pages attempt to enable accelerated compositing in guests
even if the force-compositing-mode flag is disabled. As the browser tag does
not yet currently support accelerated compositing, these pages fail to update
the browser plugin's backing store.

Setting the accelerated_compositing_enabled flag to false seems to solve
this problem.

BUG=152568


Review URL: https://chromiumcodereview.appspot.com/11118028

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161864 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 15:58:06 +00:00
a10578310f fileapi: Add modification time check for FileSystemFileStreamReader
The check is added since BlobData has expected_modification_time field.
Add tests (mostly copied from LocalFileStreamReaderTest).

BUG=141835
TEST=content_unittests --gtest_filter="FileSystemFileStreamReaderTest.*"
TBR=jam@chromium.org

Review URL: https://chromiumcodereview.appspot.com/11098067

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161853 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 13:28:06 +00:00
a7944aaf31 Change the directory containing hyphenation dictionaries.
Even though content shell and DumpRenderTree can use sample dictionaries in 'third_party/hyphen', Chrome cannot use them and it needs to use dictionaries downloaded to 'chrome::DIR_APP_DICTIONARIES'. This change adds the ContentBrowserClient::GetHyphenDictionaryDirectory function so Chrome can change the directory to 'chrome::DIR_APP_DICTIONARIES' and read hyphenation dictionaries from the directory.

BUG=47083
TEST=none

Review URL: https://chromiumcodereview.appspot.com/11036054

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161845 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 10:12:14 +00:00
4d48603926 Revert 161839 - [content shell] don't use webkit_support functions to manipulate URLs
In single-process mode, WebKit isn't yet initialized before we start a renderer,
so we can't pass around WebURLs

BUG=111316
TEST=content_shell --dump-render-tree --single-process doesn't crash

Review URL: https://codereview.chromium.org/11151007

TBR=jochen@chromium.org
Review URL: https://codereview.chromium.org/11143013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161844 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 10:01:48 +00:00
cd28418f5c Revert 161840 - Compile fix for windows after r161839
BUG=111316
TBR=marja

Review URL: https://codereview.chromium.org/11140022

TBR=jochen@chromium.org
Review URL: https://codereview.chromium.org/11150016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161843 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 10:00:13 +00:00
7a37114bbf Compile fix for windows after r161839
BUG=111316
TBR=marja

Review URL: https://codereview.chromium.org/11140022

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161840 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 09:34:01 +00:00
fbddbe935e [content shell] don't use webkit_support functions to manipulate URLs
In single-process mode, WebKit isn't yet initialized before we start a renderer,
so we can't pass around WebURLs

BUG=111316
TEST=content_shell --dump-render-tree --single-process doesn't crash

Review URL: https://codereview.chromium.org/11151007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161839 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 09:04:14 +00:00
52a35d452b [content shell] Always use the osmesa driver for layout tests, and disable the gpu blacklist
BUG=111316
TEST=webgl tests pass

Review URL: https://codereview.chromium.org/11143009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161836 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 08:44:03 +00:00
b9e407df56 [content shell] Enable editing commands from javascript for tests and universal access from file urls
BUG=111316
TEST=more editing tests pass

Review URL: https://codereview.chromium.org/11147003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161834 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 08:22:35 +00:00
bb5d2d90e1 [content shell] Update dependencies for content shell layout tests from DumpRenderTree to TestRunner_resources
Also add an explicit dependency from content_shell to osmesa

BUG=111316
TEST=content_shell --dump-render-tree still works after a clobber build

Review URL: https://codereview.chromium.org/11144012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161832 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-15 07:45:42 +00:00
0d47aab012 Flapper has some additional environment expectations.
Flash has some third-party code which depends on additional
environment settings over what we pass to ICU.

BUG=155396,134911


Review URL: https://chromiumcodereview.appspot.com/11116008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161813 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-14 20:34:05 +00:00
0aa7693085 views: Split test_support_views in two targets.
One with content dep and one without.

BUG=141187
R=ben@chromium.org
TBR=jam@chromium.org

Review URL: https://codereview.chromium.org/11117009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161810 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-14 19:11:10 +00:00
088a668d62 Added media.gyp dependency into content/content_test.gypi.
content/public/test/content_test_suite_base.cc includes media/base/media.h
but its gyp file is missing media.gyp dependency. This is a spin-off CL from
11075006.

BUG=


Review URL: https://chromiumcodereview.appspot.com/11066124

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161800 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-14 05:52:31 +00:00
b55ded1b9d OVDA: Perform an EGL sync before reusing a texture.
When a texture is returned via ReusePictureBuffer(), we know
that it has been inserted into command stream, but it may not
have been read out yet.
    
This inserts an EGL sync object into the GPU command stream.
All commands that have already been in the stream at the time
of insertion are finished when the object is signaled,
thus guaranteeing that the commands to read out the texture
have been finished. The texture will be reused for decoding
after the object has been signaled.

BUG=155602

Review URL: https://chromiumcodereview.appspot.com/11076009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161759 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-13 16:15:08 +00:00
81ac72c6f3 Fix for out-of-sync scale factor issue
- Set active root window early when creating browsers on startup.
- Send screen info when device scale factor chagned.
- gfx::Screen::GetDisplayNearestWindow should return Primary when the window's root doesn't exist. I missed this condition in  https://chromiumcodereview.appspot.com/10961021

BUG=155201, 152728
TEST=manual: see bug for repro steps

Review URL: https://chromiumcodereview.appspot.com/11066130

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161758 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-13 11:12:45 +00:00
85774b7972 Run the PPAPI CDMs out-of-process in the Encrypted Media browser tests.
Review URL: https://chromiumcodereview.appspot.com/11111007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161741 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-13 06:37:58 +00:00
441987594c Fix failing browser tests when running with force-compositing-mode. It uses new trace events checked in by: http://trac.webkit.org/changeset/128785 to properly track WebGL and accelerated canvas instead of relying on
the swap-buffers calls (which get issued anyway, when in FCM). 

This patch has most of the contents of: https://codereview.chromium.org/10914247 except that it doesn't change any of the field trial probabilities.
It fixes the following tests: Canvas2DDisabled, Canvas2DBlocked, WebGLBLocked, WebGLDisabled, AcceleratedCompositingDisabled,
AcceleratedCompositingBlocked . 

It also disables ExtensionApiTest.CaptureVisibleTabJPeg as it triggers flakiness on it. chrome.tabs.captureVisibleTab is inherently racy as there is no way to guarantee that the tab has been painted at least once when that call is made. Note how the other variants of CaptureVisibleTab tests have already been disabled for similar reasons. (this was done with aa@'s advice)

BUG=155336


Review URL: https://chromiumcodereview.appspot.com/11091072

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161733 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-13 06:05:56 +00:00
95aed38c86 Move DownloadListener handling out to webview layer
Simplifies the content/ layer by not having to know about the webkit.DownloadListener interface.

BUG=


Review URL: https://chromiumcodereview.appspot.com/11139003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161727 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-13 05:39:30 +00:00
4538355c73 fix uninitialized variable warning for vs2012 compilation
NOTRY=true
R=piman@chromium.org
BUG=155147, 143646


Review URL: https://chromiumcodereview.appspot.com/11125003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161708 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-13 03:52:18 +00:00
860ee64b0c Allow custom context menus to be requested.
This allows external users to request that a render view show a context menu. This mostly exposes is a reaonsable interface the existing functionality, and removes the pepper-plugin-delegate-specific hacks.

Review URL: https://codereview.chromium.org/11083002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161703 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-13 03:46:25 +00:00
57c7c36b58 Update encrypted WebM test file to treat IVs as raw data.
BUG=155639
TEST=All encrypted content_browsertests pass.
TBR=ddorwin

Review URL: https://codereview.chromium.org/11143004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161687 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-13 00:27:03 +00:00
cb62dc1416 fix uninitialized variable warning for vs2012 compilation
NOTRY=true
R=jamesr@chromium.org
BUG=155147, 143646


Review URL: https://chromiumcodereview.appspot.com/11125004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161686 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-13 00:26:44 +00:00
9a0bff5fa8 Fix spacing issue in content.gyp.
Fix spacing issue in content/content.gyp.


Review URL: https://chromiumcodereview.appspot.com/11086091

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161683 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-13 00:08:42 +00:00
d34ddefe77 linux: Increase max zygote message size from 2 KB to 8 KB.
It appears that we've been hitting this limit again,
presumably in the "fork" command.  This will hopefully give
us more headroom (a previous change makes us crash when we
hit the limit).

BUG=154409

Review URL: https://codereview.chromium.org/11092109

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161676 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 23:44:00 +00:00
3ff67926e2 Don't use web intents for rss feeds.
R=jhawkins@chromium.org
BUG=


Review URL: https://chromiumcodereview.appspot.com/11048039

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161675 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 23:40:05 +00:00
b09505afec Revert 161634 - [content shell] allow universal access from file URLs in layout tests
BUG=111316
TEST=compositing/iframes/iframe-in-composited-layer.html does not time out


Review URL: https://chromiumcodereview.appspot.com/11116013

TBR=jochen@chromium.org
Review URL: https://codereview.chromium.org/11139006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161659 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 21:45:16 +00:00
375a846385 linux: Crash browser on too-big messages to zygote.
This adds CHECKs to the browser if it attempts to send a
message to the zygote that exceeds the maximum message size
(which causes an EMSGSIZE error in the zygote) or that
contains too many file descriptors.

I'm hoping that this will help make the source of the
problem more apparent when we hit the message size limit,
which we appear to have done multiple times (it was
originally 1 KB and is now 2 KB).

BUG=154409


Review URL: https://chromiumcodereview.appspot.com/11108019

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161645 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 19:59:39 +00:00
ffabb1ea75 Makes gfx::Screen an instance, rather than a collection of static methods.
This is in support of supporting separate Screen implementations on Aura for desktop and metro on Windows.

Some callsites are not yet correct, and noted with a reference to the http://crbug.com/133312. As-is those sites will behave the same as before this patch, but may not be correct once desktop/metro can run simultaneously.


BUG=133312


Review URL: https://chromiumcodereview.appspot.com/11030017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161644 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 19:51:17 +00:00
80c2e778b3 [content shell] allow universal access from file URLs in layout tests
BUG=111316
TEST=compositing/iframes/iframe-in-composited-layer.html does not time out


Review URL: https://chromiumcodereview.appspot.com/11116013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161634 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 19:10:15 +00:00
883e428cfb Make the WebContentsUserData locator key private.
BUG=107201
TEST=no visible change


Review URL: https://chromiumcodereview.appspot.com/11085055

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161630 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 18:56:51 +00:00