0
Commit Graph

8513 Commits

Author SHA1 Message Date
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
dcba9b06f7 Add tedchoc to a couple OWNERS files for android.
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161605 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 17:14:37 +00:00
1d34b6cd3f IOKit sends out a device changed notification before the driver fully initializes the device. And Since chrome will enumerate the devices after getting the notification, this will crash on some specific USB devices if the device is being initialized while being enumerated.
This patch change IOKit notification to use AudioObjectAddPropertyListener on kAudioHardwarePropertyDevices. By doing so, we will get notification after the driver initializes the devices.


BUG=153411
TEST= manual test with Pepper flash device enumeration.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161594 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 16:46:21 +00:00
d37c33e7b1 When starting a provisional load include the parent frame ID in the IPC and pass it down the th WCObservers
This is the first half of the change, the second half will send the parent frame id with the webNavigation events

See RenderViewImpl::willSendRequest when it creates the RequestExtraData for a place where we already send the parent frame id (this is for the webRequest API that looks at network requests instead of navigation events)

BUG=128927
TEST=FrameNavigationState.*


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161570 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 13:35:13 +00:00
a8db44ec3a Add LocalFileSyncContext class which is a glue class between profile-owned service and FileSystemContext(s)
BUG=154234
TEST=LocalFileSyncContextTest.*
TBR=jam@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161556 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 11:28:54 +00:00
41efb29da4 [content shell] add a getPropertyDescriptor trap to the test runner
This will catch patterns like if ('foo' in window.testRunner)

BUG=111316
TEST=animations/longhand-timing-function.html doesn't time out

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161554 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 10:49:52 +00:00
517044b56f [content shell] Add fast/dom/shadow/shadowdom-for-progress-dynamic.html as crashing to content shell's test expectations
Unreviewed gardening.

BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161534 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 07:47:14 +00:00
739d08d3cc Turned on Shadow DOM and style scoped flags by default.
BUG=145868
TEST=manual

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161531 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 07:38:14 +00:00
b46b8e605e Remove all callers of WebFrame::frameForEnteredContext
Having both frameForEnteredContext and frameForCurrentContext in the API is too
confusing. Code seems to randomly pick one or the other to call. Almost
everyone wants to call frameForCurrentContext, so this patch removes all the
callers of frameForEnteredContext. Soon we'll remove frameForEnteredContext
from the API entirely.


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161521 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 07:02:49 +00:00
5f32bdf10a Make ContentViewCore usable from other packages.
ContentViewCore methods are unaccessible from other packages that
need to hook it to the View containers of their choice.

BUG=146570


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161505 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 05:46:25 +00:00
5ffb6efa29 Replace ChromeViewHolder with ContentViewHolder
BUG=146570


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161504 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 05:42:44 +00:00
64ce9d05be Take out ResourceBundle initialization from ContentTestSuite. This isn't needed right now, and it's causing issues on ChromeOS heapcheck bot.
Review URL: https://codereview.chromium.org/11092089

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161467 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 01:12:19 +00:00
f5eabc375b Use blocking worker pool for sync file operations in Pepper.
Switch from posting file operations on the file thread to posting them
on the blocking worker pool.  Previous instrumentation indicated that
this reduces hung-plugin infobars by around 20%.

BUG=153383


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161459 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 00:33:55 +00:00
5d5e26adfa touch: Cleanup touch-event mode switching on windows.
On windows, chrome used to switch between raw-touch and gesture modes depending on
whether the touch-start event was processed by the renderer or not. But now, the
switch happens iff touch-events is enabled (using command-line flag) on appropriate
version of windows. So cleanup the relevant code.

BUG=138153
TBR=avi@chromium.org (content/port/)

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161458 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 00:20:56 +00:00
972cdd84b7 browser-plugin: Allow accepting drag-n-drop events.
This allows dragging content from within the embedder (or other windows) into
the browser-tag plugin.

BUG=120264

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161457 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-12 00:19:03 +00:00
2a1706cb7c Update webrtc to 2918 and libjingle to 203.
TEST=apprtc.appspot.com and chrome/test/functional/webrtc_call.py

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=160781
Review URL: https://codereview.chromium.org/11066063

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161450 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-11 23:57:04 +00:00
cbd76ebec7 Move shared library copy and strip to java_apk.gypi
Also, for each such shared library included in an apk, create a link in
the appropriate directory in <(android_product_out) to enable annotating
native stack traces for those apks.

BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161440 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-11 23:23:49 +00:00
f11d79c7c2 [content shell] remove spurious printf format
BUG=111316
TEST=pixel tests that pass actually pass

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161416 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-11 21:53:44 +00:00
95af087dc0 Implicit coversion operators from integer geometry types to floating point.
This change allows you to call a function that expects a floating point
object with an integer object and have things just work. The addition
operator for Points is outside the Point classes so it can add/subtract integer
and float points together implicitly.

Tested to verify compilation with:
ui_unittests:RectTest.ToRectF
ui_unittests:SizeTest.ToSizeF
ui_unittests:PointTest.ToPointF

BUG=147395
R=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161415 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-11 21:52:22 +00:00
81289ac3e1 Browser Plugin: Implement CanGoBack/CanGoForward
BUG=154831


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161414 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-11 21:50:06 +00:00
ba42ac4fc3 Enable WebMediaPlayerMS only when ENABLE_WEBRTC is defined.
Some platforms have gyp define enable_webrt=0.

BUG=142988
Review URL: https://codereview.chromium.org/11066123

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161392 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-11 20:28:14 +00:00
572a6ca8cc Cleanup RenderViewImpl override methods from WebKit
createPluginReplacement and didCreateScriptContext is no longer
in WebKit::WebFrameClient or called anywhere else. Removing them.

numberOfWheelEventHandlersChanged and hasTouchEventHandlers are
overriding methods from WebKit::WebViewClient. Moving them up.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161384 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-11 19:38:01 +00:00
7758b734b7 Upstream latest DownloadController changes for android.
Review URL: https://codereview.chromium.org/11103040

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161378 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-11 18:51:46 +00:00
43b0600f98 Upstream deviceScaleFactor initialization in render_view_impl
This change makes sure deviceScalefactor is initialized consistently with the deviceInfo
value.

BUG=136745


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161365 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-11 17:13:26 +00:00
a34087bd0f Build browser_main_loop.cc on iOS.
Adds browser_main_loop.cc to the build on iOS and ifdefs out the parts that are
not supported on iOS.


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161362 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-11 17:05:30 +00:00
45df03fa72 Reland r161256: Fix the crash that was happening on the buildbot (but not trybots, for a strange reason) because ResourceBundle was initialized twice for tests that use the RenderViewTest harness.
The one difference is to check if ResourceBundle is initialized before initializing it. This is needed because on content_browsertests it's not initialized while in browser_tests it is. We can't make the two browser test binaries behave the same because of differences in how chrome's browser_tests and unit_tests can share the same test suite while in content that's not possible.

TBR=cpu
Review URL: https://codereview.chromium.org/11091058

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161361 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-11 16:50:05 +00:00
951a6483b7 This change is motivated by the need to implement the Android WebView.loadDataWithBaseURL API[1], which allows access to local file:// resources (depending on AwSettings.getAllowFileAccess) as long as the base URL provided is not "data:".
When AwSettings.getAllowFileAccess returns false, data URIs loaded with a non-data base URL should be able to access file:///android_asset and file:///android_res/, but not the wider filesystem.

We grant the WebView process access to file:// via ChildProcessSecurityPolicy (as WebView is single process we do this on process startup) and add a field to ViewMsg_NavigateParams that indicates if the URL being loaded should have access to local loads. This is bit is checked when the provisional load commits and if set, grants the SecurityOrigin access to local resources. The bit defaults to false and is only set in android_webview when AwContents loads a data URL with a non-data base URL, so there should be no behavior change outside of android_webview.

Once the SecurityOrigin allows local loads, code already present in android_webview controls whether the URL should be able to load either only android_asset and android_res or any file:// URL (see https://codereview.chromium.org/11090003/).

[1]
http://developer.android.com/reference/android/webkit/WebView.html#loadDataWithBaseURL(java.lang.String,
java.lang.String, java.lang.String, java.lang.String, java.lang.String)

BUG=152223

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161355 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-11 16:26:37 +00:00
3a74304c6b Show selection handles around selected text.
This patch upstreams code to display text selection handles in the Android
content shell. While in selection mode, we also display an action bar with
editing commands; I have stubbed this out because we don't yet have the
necessary resources (added a TODO for that).

BUG=138468
TEST=none


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161353 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-11 16:19:04 +00:00
8771512b6e [content shell] Add layout test specific font setup (for linux only right now)
BUG=111316
TEST=css1/basic/comments.html passes
TBR=jam

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161351 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-11 15:53:06 +00:00
452e50c1e8 [content shell] remove dead code (disabling ssl certificate checks for layout tests)
This is now configured in the ShellURLRequestContext

BUG=111316
TEST=none


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161337 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-11 13:31:04 +00:00
64699b7fb1 Ifdef out the parts of navigation_controller.h that are not supported on iOS.
Review URL: https://chromiumcodereview.appspot.com/11092005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161329 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-11 11:54:44 +00:00
1d2c3afe6d BrowserTestBase::CreateTestServer should accept FilePath
BUG=none
TEST=browser_tests, content_browsertests


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161318 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-11 08:56:10 +00:00
c75a4dc8dd Converted GetOriginsForHostTask to use base::PostTaskAndReply(). Deleted superclasses GetOriginsTaskBase, HelperTask. Also deleted QuotaTaskThread class as nothing references that anymore.
BUG=139270


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161307 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-11 06:49:47 +00:00