| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
This implements the WebViewClient shouldInterceptRequest and onLoadResource callbacks.
BUG=138481
Android-only change - ran through android try.
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/11110013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162141 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=
Review URL: https://chromiumcodereview.appspot.com/11096036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161409 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
BUG=107201
TEST=no visible change
Review URL: https://chromiumcodereview.appspot.com/10993091
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161214 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
R=joth@chromium.org
BUG=155042
Review URL: https://chromiumcodereview.appspot.com/11086051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161158 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We are not depending on much functionality from ContentClient yet, so most
methods are either no-op, left unimplemented with a TODO, or copied straight
from the ChromeContentsClient implementation.
BUG=
Review URL: https://chromiumcodereview.appspot.com/11017024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161120 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
R=benm@chromium.org,joth@chromium.org
BUG=153516
Review URL: https://chromiumcodereview.appspot.com/11090003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161103 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
Also add a stub for webview.
BUG=137571
Review URL: https://chromiumcodereview.appspot.com/11087017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160998 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Preconnect breaks our test runners :(
see https://code.google.com/p/chromium-os/issues/detail?id=13043
for more information why.
Android bots look good.
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/11040054
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160368 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Recent WebKit rolls have introduced an assertion for the default language that is causing
some failures in WebView. The reason is that the default locale is not properly iset in
single process mode. However, since this will probably require more elaborate solution
we'll be setting a value manually for now to unblock tests and prevent further issues.
BUG=153758
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/11054012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159899 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
For velocity, not refactoring BrowsingDataRemover code into content/.
This method is similar to BrowsingDataRemover::REMOVE_CACHE mask. Still need to implement clearing http disk cache.
BUG=
Review URL: https://chromiumcodereview.appspot.com/11051003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159827 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
android_webview will require a specific rendering architecture that
hasn't landed yet. This change lets us run our tests (even though
we're not showing anything on screen).
BUG=152904
TEST=run_instrumentation_tests.py --test-apk AndroidWebViewTest
Review URL: https://codereview.chromium.org/10979075
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159505 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Also move Android-specific URL constants into android_webview
R=benm@chromium.org,joth@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10985044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159078 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
TBR=scherkus
BUG=143931
Review URL: https://chromiumcodereview.appspot.com/10983004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158493 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This API requires implementing a browser -> renderer synchronous findAll message.
While this method is deprecated and an alternative asynchronous version is suggested
we still need to implement it for legacy WebView compatibility.
BUG=136762
TEST=3 new java tests.
Review URL: https://codereview.chromium.org/10941015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157975 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
So far, all Aw tests that we have don't change their state
after removing this dependency. We will need things
like AutoFillManager, FaviconTabHelper, PasswordManager and
SSLHelper, but it looks like it will be better to componentize
them in the first place.
R=joth@chromium.org,android-webview-reviews@google.com
Review URL: https://codereview.chromium.org/10916309
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157328 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Explicitly lock down the lib/ directory approvers, while opening the rest
of the tree up to the core team.
BUG=
Review URL: https://chromiumcodereview.appspot.com/10914276
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156723 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Additional details of the requirements can be found from the Android SDK.
http://developer.android.com/reference/android/webkit/CookieManager.html
BUG=
TEST=make forwarder android_webview_apk android_webview_test_apk
Review URL: https://chromiumcodereview.appspot.com/10913074
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155331 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
Requires new plumbing to get custom android_webview
layer IPC messages a flowing.
BUG=
Review URL: https://chromiumcodereview.appspot.com/10890024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154564 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) Rename WebViewMainDelegate to AwMainDelegate for consistency with
other classes.
2) Move gyp file to the top level and don't bother having separate gypi
files for the subcomponents for now; the file list is very short anyway
and is not going to be a significant source of contention between the
small number of webview developers at this time, and it's easier to see
what's going on if it's all in one place.
BUG=
Review URL: https://chromiumcodereview.appspot.com/10893025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154020 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
This is fixes the build break introduced in r153527.
BUG=
Review URL: https://chromiumcodereview.appspot.com/10889006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153699 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change adds the necessary build rules for an android_webview
test APK and test runner APK and a trivial test case.
This change also adds a static Java library target to the WebContentsDelegateAndroid component.
BUG=
Review URL: https://chromiumcodereview.appspot.com/10855171
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153046 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
While in desktop chrome the main WebContentsDelegate is implemented in the
chrome layer by the Browser class, the Android port implements it in the
content layer in its ContentViewClient class. However, because of the content
layering limitations this renders the chrome layer out of reach.
This patch splits the WebContentsDelegate implementation in ContentViewClient
into a separate class named WebContentsDelegateAndroid in the first chrome browser component "web_contents_delegate_android".
Also, this patch introduces stubs for Chrome-specific and WebView-specific extensions of WebContentsDelegateAndroid in order to set the foundations for later patches.
BUG=137967
TEST=existing tests
Review URL: https://chromiumcodereview.appspot.com/10831060
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152598 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This removes webview_core and moves the deps directly into
the libwebview target.
The reason for this change is that make doesn't work correctly
with a shared_library that doesn't contain any source files.
BUG=
Review URL: https://chromiumcodereview.appspot.com/10827382
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151949 0039d316-1c4b-4281-b951-d872f2087c98
|
|
This creates a "libwebview" build target for the JNI code to power the
Android WebView. This is unfinished and can't run without additional
code that has not yet been upstreamed, but it compiles and links
successfully.
In its present state the WebViewMainDelegate reuses Chrome
implementations of other content client interfaces. This is a temporary
state of affairs until necessary refactorings can be performed.
Review URL: https://chromiumcodereview.appspot.com/10825155
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150780 0039d316-1c4b-4281-b951-d872f2087c98
|