Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

[Android] Support the feature of proxy in Crosswalk #363

Open
wants to merge 768 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
768 commits
Select commit Hold shift + click to select a range
706549d
[M52] Make AVDA fall back to software decoding if needed.
liberato-at-chromium Jun 29, 2016
d0b96fe
Gracefully handle dirtying of audio nodes while processing current set.
Jun 29, 2016
a33655c
Register precache device state broadcast receiver when precahe starts
Jun 29, 2016
bbcd0a5
Adds WTF::debug::ScopedCrashKey as an alias of base::debug::ScopedCra…
yuki3 Jun 29, 2016
112f5a0
fix a semi-rare crash in multibuffers
Jun 29, 2016
72d4f4a
Revert "Gracefully handle dirtying of audio nodes while processing cu…
Jun 29, 2016
fe78b03
Adds a crash key to V8EventListener to help diagnose crbug.com/621730 .
yuki3 Jun 29, 2016
e8f1e99
Incrementing VERSION to 52.0.2743.59
Jun 29, 2016
182a245
[Extensions UI] Handle multiple warning bubbles racing to show
rdcronin Jun 29, 2016
00aa4b8
Updating XTBs based on .GRDs from branch 2743
Jun 29, 2016
4a222db
[TTS] Protect against an empty Caption for Quick Answers.
Jun 29, 2016
38453ae
Avoid incorrect NC_AUTO_SUBFRAME renderer kills for non-web URLs.
creis Jun 29, 2016
ea9c8c0
Update containing block's positioned descendants list when an object …
wangxianzhu Jun 29, 2016
f86ab86
Revert of Avoid incorrect NC_AUTO_SUBFRAME renderer kills for non-web…
creis Jun 29, 2016
9a05b1c
Avoid incorrect NC_AUTO_SUBFRAME renderer kills for non-web URLs.
creis Jun 29, 2016
ce960ed
Make sure to iterate over all viewport-constrained objects for scroll…
chrishtr Jun 29, 2016
08994b4
Merge to M52: The automation API should only reset accessibility stat…
minorninth Jun 29, 2016
69d9587
Fix compilation error caused by crrev.com/ea9c8c0ffff
wangxianzhu Jun 29, 2016
5d5932d
[merge-m52] Add com.apple.fonts to the sandbox profiles for Sierra
tapted Jun 29, 2016
46a9ea0
Incrementing VERSION to 52.0.2743.60
Jun 30, 2016
caeb412
[Material][Mac] Set Incognito Omnibox Dropdown Icons to White
Jun 30, 2016
47aa3d9
[Mac][Material Design] Use white tab spinner for dark themes.
Jun 30, 2016
62136bd
Merge M52: "Fix dropped demuxer buffers for fallback decoder"
dalecurtis Jun 30, 2016
ee1dfc7
Merge M52: "Remove pending demuxer read state, prefer flag, it's not …
dalecurtis Jun 30, 2016
f0d084d
[Merge to M52]Corrupted powerwash proposal UI
Jun 30, 2016
d3e1c57
Revert "[M52] Make AVDA fall back to software decoding if needed."
Jun 30, 2016
597437a
Incrementing VERSION to 52.0.2743.61
Jun 30, 2016
b9ec23c
Revert "Merge M52: "Remove pending demuxer read state, prefer flag, i…
Jun 30, 2016
9593a07
Incrementing VERSION to 52.0.2743.62
Jun 30, 2016
a0c3856
Merge M52: "Remove pending demuxer read state, prefer flag, it's not …
dalecurtis Jun 30, 2016
d7822dc
Chrome UI string changes. providing <ex> for <ph> tags.
Jun 30, 2016
34efc85
Merge to M52: VTVDA: Handle more missing IDR situations.
Jun 30, 2016
7362073
Updating XTBs based on .GRDs from branch 2743
Jun 30, 2016
99ac863
Data usage entrance/exit UI should be shown only when field trial exists
tarunban Jun 30, 2016
102c583
Do not cancel precache periodic GCM task if current network is non-WiFi
tarunban Jun 30, 2016
9222d40
Fix a potential segfault in GpuVideoDecoder
Jun 30, 2016
ad72f67
Precache manifest should not be added to fetcher pool which is full
tarunban Jun 30, 2016
ed395a9
Remove stable checks from precache code
tarunban Jun 30, 2016
997bb4d
Revert "Precache manifest should not be added to fetcher pool which i…
tarunban Jun 30, 2016
909e1d1
Include intent extras to identify moved tabs in multi-window for back…
Jun 30, 2016
77019cb
Incrementing VERSION to 52.0.2743.63
Jul 1, 2016
ee4ea0d
Merge "Improve performance to remove an OPTION from a SELECT element.…
tkent-google Jul 1, 2016
4477cc6
Merge "Improve performance of SELECT element by optimizing Vector." t…
tkent-google Jul 1, 2016
195e694
Merge "Improve performance of HTMLSelectElement::setActiveSelectionAn…
tkent-google Jul 1, 2016
6fa87e0
Merge "Improve performance of HTMLSelectElement::resetToDefaultSelect…
tkent-google Jul 1, 2016
e2751e2
Merge M52: Update Flash plugin metadata versions to latest version.
wfh-chromium Jul 1, 2016
c48b93e
Track if a panel is shown in onClosed and peekPanel
iotitan Jul 1, 2016
4aba6cc
Restricting output device authorization timeout to Windows only.
Jul 1, 2016
268e5e7
[m52] Change QuicHttpStream::OnError to look at both stream and conne…
rch-chromium-org Jul 1, 2016
2959ac8
Record one more reason that download is canceled
Jul 1, 2016
d9bdbbd
[Material][Mac] Fixed HTTP and HTTPS icons in dark mode
Jul 1, 2016
79fdee2
Stop watching USB device file descriptor after a disconnect error.
reillyeon Jul 1, 2016
f43fd60
Disabled xinput2 until edge cases can be fixed.
bokand Jul 1, 2016
bc0578a
Fix navigator.plugins and navigator.mimeTypes for OOPIFs.
Jul 1, 2016
ac015ef
Fix CustomTabs.ClientAppId counting.
Jul 1, 2016
1caf490
Incrementing VERSION to 52.0.2743.64
Jul 2, 2016
df14c0d
[Reland] [Media Router] Allow users to update cloud services pref whe…
japacible Jul 2, 2016
388aa6d
Incrementing VERSION to 52.0.2743.65
Jul 3, 2016
e6bb973
Incrementing VERSION to 52.0.2743.66
Jul 4, 2016
5041a16
Ensure acks are sent for all blocking events.
dtapuska Jul 4, 2016
5f87571
Send synthetic GestureTapDown to focus BrowserPlugin
Jul 4, 2016
eaaefc2
Revert middle click related changes
dtapuska Jul 4, 2016
d51e0ce
Incrementing VERSION to 52.0.2743.67
Jul 5, 2016
889fa1c
VDA unittest: use sync SwapBuffers on non-freon devices.
Jul 5, 2016
d649290
Incrementing VERSION to 52.0.2743.68
Jul 6, 2016
f75431b
[M52][NTP Snippets] Stop fetching snippets when disabled.
Jul 6, 2016
7d5331c
[MediaNotification] Use common idiom to detect if OS version is "N"
Jul 6, 2016
0b13fca
Force standard progress bar colors if native page
iotitan Jul 6, 2016
31e9a56
[remoting linux host] Fix debian APT sources list entry.
Jul 6, 2016
a803c8e
Ignore certain messages in plugin broker process if they are not sent…
yzshen Jul 6, 2016
9712879
[Sync] Stop purging sync data on restart for users who haven't finish…
Jul 6, 2016
ae1fbf0
Fix M52 only android build failure.
dtapuska Jul 6, 2016
8eb4b3a
Incrementing VERSION to 52.0.2743.69
Jul 7, 2016
3dd245a
Add metrics for app banner preventDefault() and prompt().
Jul 7, 2016
b88c4ce
Logs for AIDE screen troubleshooting.
Jul 7, 2016
8aa832b
[Merge M52] Placing SRT Prompt on Feedback form behind Finch feature.
Jul 7, 2016
9ab8c9b
Incrementing VERSION to 52.0.2743.70
Jul 8, 2016
4aa965d
Reland of Clear the login webview when SAML flow is canceled (origina…
Jul 8, 2016
750ae53
Refresh Public Suffic List to the latest version
sleevi Jul 8, 2016
e0058d0
Add delay to didAssociateFormControlsTimer so it doesn't fire too fre…
Jul 8, 2016
447be33
[css-flexbox] Don't over-invalidate flex items
cbiesinger Jul 8, 2016
a92eae0
Use correct theme color when navigating from incognito native page
iotitan Jul 8, 2016
9db1167
[Merge M52] add experimental param to control the triggering threshol…
jungshik Jul 8, 2016
fade16f
Incrementing VERSION to 52.0.2743.71
Jul 9, 2016
d09d522
Incrementing VERSION to 52.0.2743.72
Jul 10, 2016
83a4686
Incrementing VERSION to 52.0.2743.73
Jul 11, 2016
cb0c66d
media: VEA unittest: make sure allocated memory is 64byte aligned
Jul 11, 2016
7e412ca
Fix initialization of udev in MidiManagerAlsa.
toyoshim Jul 11, 2016
15a2ac4
Prevent to measure the whole word when break-all
kojiishi Jul 11, 2016
0ff47b3
Perform BSP polygon splitting and orientation selection in a single s…
Jul 11, 2016
c3f7289
[M52] Roll-up of AVDA fixes.
liberato-at-chromium Jul 11, 2016
6e72427
Re-enable the unified media pipeline for JellyBean
Jul 11, 2016
38db68a
Always post deletion of WebMediaPlayerMSCompositor.
Jul 11, 2016
dfb55bc
Incrementing VERSION to 52.0.2743.74
Jul 12, 2016
04f78ed
Merge M52: Add AntiVirus information to the system profile.
wfh-chromium Jul 12, 2016
894ba96
M52: Merge "Reland: service worker: Don't control a subframe of an i…
mfalken Jul 12, 2016
48a749e
Remove itself from the widget observers in destructor
yoshikig Jul 12, 2016
1f1194b
Check events in OverlayPanelEventFilter
iotitan Jul 12, 2016
6f4c375
Incrementing VERSION to 52.0.2743.75
Jul 13, 2016
e0fadb8
Remove focus from base page when OverlayPanel open
iotitan Jul 13, 2016
bb23f0a
[Material][Mac] Update Security Icon Colors in Omnibox
Jul 13, 2016
59af6f8
Incrementing VERSION to 52.0.2743.76
Jul 14, 2016
0e3ade1
Delay resetting image animation, if possible.
sigbjornf Jul 14, 2016
0c2c88b
Setting AudioOutputDevice authorization timeout to 1000ms
Jul 14, 2016
06e4819
Reland of Prevents crash in media::AudioInputController::OnData in Ma…
henrikand Jul 14, 2016
31639da
Avoids accessing Core Audio APIs during shutdown
henrikand Jul 14, 2016
620e709
Fixes crash in AudioManagerMac at shutdown.
henrikand Jul 14, 2016
2bde772
[Extensions] Rework inline installation observation
rdcronin Jul 14, 2016
aaa903a
webgl: Handle null context provider when trying to restore context
danakj Jul 14, 2016
05d478c
Don't rely on the destruction of ChromeAppDelegate's callback to free…
GregTho Jul 14, 2016
ee471f5
Update HistoryController::current_entry_ on all main frame back/forwa…
creis Jul 14, 2016
3ff9731
Open reparented tab in the correct model
Jul 14, 2016
b59c2a8
Clear stale NavigationParams from HistoryController.
creis Jul 14, 2016
0068aff
Revert "Re-enable the unified media pipeline for JellyBean"
Jul 14, 2016
01efde0
[Merge M52] Turn off AVDA for Vivante GC1000.
liberato-at-chromium Jul 14, 2016
da8f89d
Harden a security CHECK in Font::individualCharacterRanges
progers Jul 14, 2016
aa707cb
Updating XTBs based on .GRDs from branch 2743
Jul 14, 2016
3ff92f2
Incrementing VERSION to 52.0.2743.77
Jul 15, 2016
681eea9
Merge "Placeholder content direction should not affect INPUT/TEXTAREA…
tkent-google Jul 15, 2016
38a9f42
[Constrained Web Dialogs] [Views] Enable autoresizing immediately if …
japacible Jul 15, 2016
2cf6d66
Limit XSLT number format strings to their length.
dominiccooney Jul 15, 2016
c1b0695
Make default constructor of Font class to initialize all member varia…
yosinch Jul 15, 2016
185ad3a
[TTS] Fix an index out of range crash in translation.
Jul 15, 2016
16d4aaf
Make previousLinePosition() not to use dangling RootInlineBox
yosinch Jul 15, 2016
210015d
Removes crash keys for crbug.com/621730
yuki3 Jul 15, 2016
0ae2f62
Remove the prototype from all V8 functions that aren't constructors
jeisinger Jul 15, 2016
16f22b2
Remove constructor from remaining functions that aren't constructors
jeisinger Jul 15, 2016
2ed5418
Change ShapeResultShaping::computeSpacing to use TextRun::operator[]
kojiishi Jul 15, 2016
2facaed
Permissions API: take into account that name() can be overridden.
mounirlamouri Jul 15, 2016
217f328
[Merge] Request the Identity API's Uber Token without a Channel ID
Jul 15, 2016
acdc826
Fix compile failure in ShapeResultSpacing.cpp
kojiishi Jul 15, 2016
6ebff0f
CSP: Allow ':80' to match ':443' in source expressions.
mikewest Jul 15, 2016
5a5e442
Fix loading placeholders for Lo-Fi
Jul 15, 2016
e39b47a
Disallow theme colors with luminance > 0.94
iotitan Jul 15, 2016
2e51716
Incrementing VERSION to 52.0.2743.78
Jul 16, 2016
da3db90
Add a sanity DCHECK when constructing a UIResourceRequest.
Jul 16, 2016
8523f7f
[TTS] Handle showing of a Context Menu more gracefully.
Jul 16, 2016
c4ddb31
Avoid using stale UserScript pointers
Rob--W Jul 16, 2016
6658c82
Incrementing VERSION to 52.0.2743.79
Jul 17, 2016
cbe0b97
Don't allow deferred frames to create new windows.
kinu Jul 17, 2016
e02c763
Incrementing VERSION to 52.0.2743.80
Jul 18, 2016
bdc5db1
Use Document::validBaseElementURL to init preloadscanner
nyaxt Jul 18, 2016
fdaa78d
Fix build failure for the broken merge on M52/M53 tree
kinu Jul 18, 2016
62cc765
Add null check before accessing Tab.getView()
Jul 18, 2016
575679b
Delay client registration of MessagePort to MessagePortChannel
tzik Jul 18, 2016
f8eeeb9
Large heap collection type hits assertion in Heap::allocationSizeFrom…
Jul 18, 2016
58a0c2c
Workaround RecentTabs blank issue on certain Samsung devices.
Jul 18, 2016
0701df6
Fix MultiPictureDraw issues with GpuImageDecodeController
Jul 18, 2016
e46254b
Incrementing VERSION to 52.0.2743.81
Jul 18, 2016
fe44ff5
Disable GPU raster for OSX 10.9
Jul 18, 2016
90af22c
Delete obsolete XPointer range-to function.
mbarbella-chromium Jul 18, 2016
4972177
Incrementing VERSION to 52.0.2743.82
Jul 19, 2016
480d4e8
[Merge m52] gpu: Disable webgl/accelerated canvas on vivante
Jul 19, 2016
8342c49
Updating XTBs based on .GRDs from branch 2743
Jul 19, 2016
408c71b
Incrementing VERSION to 52.0.2743.83
Jul 20, 2016
3318250
Check for a null callback in RendererSurfaceViewManager
Jul 20, 2016
cd3edaf
Add variations target to translate component in gyp.
Jul 20, 2016
505a27d
Incrementing VERSION to 52.0.2743.84
Jul 20, 2016
3566eac
[appcache] Fix a nullptr crash
michael-nordman Jul 20, 2016
a5b162a
Queued wheel events should not use ScopedInputScaleDisabler.
Jul 21, 2016
ba6643d
Incrementing VERSION to 52.0.2743.85
Jul 21, 2016
7ef056c
[M52] service worker: Don't BadMessageReceived when a response for a …
mfalken Jul 21, 2016
b51c1e6
Revert "[M52] service worker: Don't BadMessageReceived when a respons…
mfalken Jul 21, 2016
d5c1d62
Fix WebSocket to set first party for cookies
tyoshino Jul 21, 2016
f76816b
[M52] service worker: Don't BadMessageReceived when a response for a …
mfalken Jul 21, 2016
809abb1
[top-chrome-md] Allows UpdateMaterialDesignColors to be called before…
Jul 21, 2016
f9e965c
Incrementing VERSION to 52.0.2743.86
Jul 22, 2016
1374ba4
Fix referrerPolicy IDL attribute spelling
estark37 Jul 22, 2016
a681341
Open the notification URL (not the web app start_url) when deep-linki…
Jul 22, 2016
278f3c8
Incrementing VERSION to 52.0.2743.87
Jul 22, 2016
1651c09
Pass origin clean flag of ImageBitmap when structure clone
xidachen Jul 22, 2016
145d1d5
Fix incognito tabs persisting when cct service is active
agrieve Jul 22, 2016
a60b2c6
Merge to M52: Bypass cached element rects in AXLayoutObject.
minorninth Jul 22, 2016
fc73af1
[Sync] Don't start up sync when FirstSetupCompleted is false and no s…
Jul 22, 2016
683eb6d
Incrementing VERSION to 52.0.2743.88
Jul 23, 2016
2f07983
Merge to 2743 "[DevTools] Whitelist remoteFrontendUrl and remoteBase …
dgozman Jul 23, 2016
ee3c807
Incrementing VERSION to 52.0.2743.89
Jul 24, 2016
e704868
Merge "Ensure |m_image| is (re-)created in ImageResource::didAddClien…
hiroshige-g Jul 24, 2016
f8b2eb0
Incrementing VERSION to 52.0.2743.90
Jul 25, 2016
4b37803
[Merge M52] gpu: Disable multisample on more adreno renderers
Jul 25, 2016
09bcd55
Mac: Correct CALayer reuse logic
ccameron-chromium Jul 25, 2016
0a96508
Incrementing VERSION to 52.0.2743.91
Jul 26, 2016
a8bdd94
Setting version to 52.0.2743.107
Jul 26, 2016
4b93359
Incrementing VERSION to 52.0.2743.108
Jul 27, 2016
649bccd
Incrementing VERSION to 52.0.2743.109
Jul 28, 2016
73a5c36
Implement multi-phase build support in MB.
dpranke Jul 28, 2016
a4f97ba
Notify the Blink client synchronously if the initial doc is accessed.
creis Jul 28, 2016
a0a2872
Copy array buffer data used by WebCrypto in the order expected by dra…
Jul 28, 2016
f117e62
Add UMA to record why chrome shows generic warning
Jul 28, 2016
8c73188
Incrementing VERSION to 52.0.2743.110
Jul 29, 2016
80f75d2
[Merge to M52] Fix getComputedStyle for non-box-layout elements
Jul 29, 2016
15a787e
[Merge M52] 3 CLs required to fix STHSet component startup regression.
Jul 29, 2016
52c1eb8
Mac: Disable AVSampleBufferDisplayLayer
ccameron-chromium Jul 29, 2016
ab95d14
Incrementing VERSION to 52.0.2743.111
Jul 30, 2016
eeb6404
Incrementing VERSION to 52.0.2743.112
Jul 31, 2016
074273d
Mac h264: Do not retain CVPixelBufferRefs
ccameron-chromium Jul 31, 2016
1066f88
Revert "Mac h264: Do not retain CVPixelBufferRefs"
ccameron-chromium Jul 31, 2016
db43afc
Incrementing VERSION to 52.0.2743.113
Aug 1, 2016
e41f38c
Merge "SELECT popup: Tentative fix for an issue on Android WebView." …
tkent-google Aug 1, 2016
bc388cf
Use ChildThreadImpl::thread_safe_sender in font proxy if available
Aug 1, 2016
cb9248a
Pass in the right sender to font proxy init
Aug 1, 2016
97a0f09
Incrementing VERSION to 52.0.2743.114
Aug 1, 2016
e0fc6bd
Make "All Bookmarks" to be controlled by feature
Aug 1, 2016
715e3d8
[Merge m52] android: Swallow PopupWindow exception from android
Aug 1, 2016
5416de0
Incrementing VERSION to 52.0.2743.115
Aug 2, 2016
7421201
m52 fork: Fix destroy when attached
Aug 2, 2016
37145ff
CL #2204863002 for M52: Ensure push permission is denied when dismissed
beverloo Aug 2, 2016
6b251be
Revert cursor changes to RenderWidgetHostViewAura.
sgraham Aug 2, 2016
39d229c
Simple Cache: validate lengths before allocations.
Aug 2, 2016
9115eca
Incrementing VERSION to 52.0.2743.116
Aug 2, 2016
90fe67b
.gitignore: Ignore xwalk/.
May 3, 2013
5260365
Also need to set aura::Window title
Jul 18, 2013
4f969c0
Add GetFieldID functing to jni_help in the content for XWalk.
junmin-zhu Nov 17, 2013
1169e1e
[SysApps] Expose ffmpeg function signatures needed by Device Capabili…
Nov 26, 2013
82c3bfa
Fix default min-layout width and scrollbar appearence.
kenchris Dec 5, 2013
bc15570
[SysApps] Make CodecIDToAudioCodec and CodecIDToVideoCodec available …
Dec 20, 2013
b547859
[Android] Use the Chromium TLS for thread local storage allocation
Jan 15, 2014
7a915f7
[Android] Change the API for ApplicationStatus in base dir.
Apr 1, 2014
6803213
[Android] Add a new API to simulate activity started on ApplicationSt…
kurli Apr 8, 2014
63d9a71
[Android] Ignore status from non tracked activities
kurli Apr 16, 2014
3b2f90e
[Android] Add Resource loading filter for MediaPlayer
Jul 10, 2015
c72323e
[Extensions] Build glib message pump on Ozone by default
Jun 9, 2014
c8cac22
[Android] Fix the crash of GetUserMedia
xingnan Jun 19, 2014
642cdb5
[Android] Add a new listener to listen the first rendered frame
kurli Jul 7, 2014
d134925
[Android] Use TextureView as an alternative compositing surface target
Aug 12, 2014
e9c7997
[Android] Bail out early in onNativeLibraryLoaded with TextureView.
Aug 15, 2014
c772e9f
.gitignore: Ignore src/third_party/khronos/CL.
Oct 7, 2014
00bcc4a
[Android] Allow constructor of Notifications on Android.
Jul 10, 2015
7fd9a22
[Android] Implement ContentViewRenderView.setZOrderOnTop
axinging Mar 20, 2015
29782db
Add flag to disable hrtf in webaudio
Apr 2, 2015
73cb270
Fix build on Windows when using components build.
darktears Aug 11, 2015
36c2f2f
[Android] Allow intercepter to extract paks
Feb 28, 2014
6cb27b5
[Blink] Exclude impulse wav files is hrtf is disabled
Apr 2, 2015
a132ed5
[Windows] Enable presentation API
Nov 25, 2015
d83f2bf
[Android] Expose the constructor of ContentView
Jan 4, 2016
84686b5
[Windows] Support RealSense Cameras
huningxin Dec 17, 2015
e394c66
Page Visibility API: visibilitychange on Windows screen lock/unlock
astojilj Feb 29, 2016
d6d99dc
Screen orientation lock implementation for Windows
astojilj Mar 2, 2016
c34c2a7
[Android] Add SetBackgroundColor to avoid white screen on startup
axinging Mar 3, 2016
63e1f41
[Temp] Do not enable generate_multidex_config by default on Android.
Mar 25, 2016
fb1627b
[Android] Enable transparent TextureView
axinging Mar 17, 2016
8a737df
[Android] Port OverScrolled Event to ContentViewClient for Crosswalk.
shaoboyan Mar 11, 2016
7411696
.gitignore: Stop ignoring third_party/khronos/CL.
Mar 30, 2016
263dd19
Import Khronos' OpenCL headers into chromium-crosswalk.
Mar 30, 2016
2b2cbc8
[Windows] Implementation of 'AudioDestinationNode.devicePosition' att…
Mar 23, 2016
43d41bf
Fix calling of AudioOutputStream::AudioSourceCallback API
Apr 13, 2016
f6ad3a5
Remove .gclient and .gclient_entries.
Jun 6, 2016
ad2a7f0
[Temp] Make |enable_webvr==0| work.
Apr 18, 2016
7e0c695
M52: Fix blink_platform.gyp for Android build.
Jul 13, 2016
47baa3c
[Android] Support the feature of proxy in Crosswalk
fujunwei Jun 27, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ vs-chromium-project.txt
/third_party/libjpeg_turbo
/third_party/liblouis/src
/third_party/libphonenumber/dist
/third_party/libpxc
/third_party/libpxc
/third_party/libsrtp
/third_party/libupnp
/third_party/libvpx/source/libvpx
Expand Down Expand Up @@ -476,3 +478,4 @@ vs-chromium-project.txt
/win8/metro_driver/metro_driver_version_resources.xml
/x86-generic_out/
/xcodebuild
/xwalk
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ Martijn Croonen <[email protected]>
Martin Bednorz <[email protected]>
Martina Kollarova <[email protected]>
Masahiro Yado <[email protected]>
Masaru Nishida <[email protected]>
Matheus Bratfisch <[email protected]>
Mathias Bynens <[email protected]>
Mathieu Meisser <[email protected]>
Expand Down
4 changes: 2 additions & 2 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ vars = {
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling sfntly
# and whatever else without interference from each other.
'sfntly_revision': '130f832eddf98467e6578b548cb74ce17d04a26d',
'sfntly_revision': '468cad540fa1b0027cad60456f53feabecdce2bc',
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling Skia
# and whatever else without interference from each other.
Expand Down Expand Up @@ -114,7 +114,7 @@ allowed_hosts = [

deps = {
'src/breakpad/src':
Var('chromium_git') + '/breakpad/breakpad/src.git' + '@' + '33a43757f6dadf49cb2240d22f1d0d827bfeae8f',
Var('chromium_git') + '/breakpad/breakpad/src.git' + '@' + '5aac5eabb0fd7cbd3bf7805fb922fe2f90e80155',

'src/buildtools':
Var('chromium_git') + '/chromium/buildtools.git' + '@' + Var('buildtools_revision'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,11 @@ private void initialize(WebViewDelegate webViewDelegate) {

// WebView needs to make sure to always use the wrapped application context.
ContextUtils.initApplicationContext(
ResourcesContextWrapperFactory.get(mWebViewDelegate.getApplication()));
ResourcesContextWrapperFactory.get(
mWebViewDelegate.getApplication().getApplicationContext()));

if (isBuildDebuggable()) {
// Suppress the StrictMode violation as this codepath is only hit on debugglable builds.
// Suppress the StrictMode violation as this codepath is only hit on debuggable builds.
StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads();
CommandLine.initFromFile(COMMAND_LINE_FILE);
StrictMode.setThreadPolicy(oldPolicy);
Expand All @@ -131,22 +132,22 @@ private void initialize(WebViewDelegate webViewDelegate) {

ThreadUtils.setWillOverrideUiThread();
// Load chromium library.
AwBrowserProcess.loadLibrary(ContextUtils.getApplicationContext());
AwBrowserProcess.loadLibrary();

final PackageInfo packageInfo = WebViewFactory.getLoadedPackageInfo();

// Load glue-layer support library.
System.loadLibrary("webviewchromium_plat_support");

// Use shared preference to check for package downgrade.
mWebViewPrefs = mWebViewDelegate.getApplication().getSharedPreferences(
mWebViewPrefs = ContextUtils.getApplicationContext().getSharedPreferences(
CHROMIUM_PREFS_NAME, Context.MODE_PRIVATE);
int lastVersion = mWebViewPrefs.getInt(VERSION_CODE_PREF, 0);
int currentVersion = packageInfo.versionCode;
if (!versionCodeGE(currentVersion, lastVersion)) {
// The WebView package has been downgraded since we last ran in this application.
// Delete the WebView data directory's contents.
String dataDir = PathUtils.getDataDirectory(mWebViewDelegate.getApplication());
String dataDir = PathUtils.getDataDirectory(ContextUtils.getApplicationContext());
Log.i(TAG, "WebView package downgraded from " + lastVersion + " to " + currentVersion
+ "; deleting contents of " + dataDir);
deleteContents(new File(dataDir));
Expand Down Expand Up @@ -286,7 +287,7 @@ private void startChromiumLocked() {
initNetworkChangeNotifier(context);
final int extraBindFlags = 0;
AwBrowserProcess.configureChildProcessLauncher(webViewPackageName, extraBindFlags);
AwBrowserProcess.start(context);
AwBrowserProcess.start();

if (isBuildDebuggable()) {
setWebContentsDebuggingEnabled(true);
Expand All @@ -313,7 +314,7 @@ public void onTraceEnabledChange(boolean enabled) {

// Start listening for data reduction proxy setting changes.
mProxyManager = new AwDataReductionProxyManager();
mProxyManager.start(mWebViewDelegate.getApplication());
mProxyManager.start(ContextUtils.getApplicationContext());
}

boolean hasStarted() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.chromium.base.library_loader.LibraryProcessType;
import org.chromium.base.library_loader.ProcessInitException;
import org.chromium.content.browser.BrowserStartupController;
import org.chromium.content.browser.ChildProcessLauncher;
import org.chromium.content.browser.ChildProcessCreationParams;
import org.chromium.policy.CombinedPolicyProvider;

import java.io.File;
Expand All @@ -40,12 +40,12 @@ public abstract class AwBrowserProcess {
* to run webview in this process. Does not create threads; safe to call from zygote.
* Note: it is up to the caller to ensure this is only called once.
*/
public static void loadLibrary(Context context) {
PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, context);
ContextUtils.initApplicationContext(context.getApplicationContext());
public static void loadLibrary() {
Context appContext = ContextUtils.getApplicationContext();
PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, appContext);
try {
LibraryLoader libraryLoader = LibraryLoader.get(LibraryProcessType.PROCESS_WEBVIEW);
libraryLoader.loadNow(context);
libraryLoader.loadNow(appContext);
// Switch the command line implementation from Java to native.
// It's okay for the WebView to do this before initialization because we have
// setup the JNI bindings by this point.
Expand All @@ -60,32 +60,32 @@ public static void loadLibrary(Context context) {
* WebView.
*/
public static void configureChildProcessLauncher(String packageName, int extraBindFlags) {
ChildProcessLauncher.setChildProcessCreationParams(
new ChildProcessLauncher.ChildProcessCreationParams(packageName, extraBindFlags,
ChildProcessCreationParams.set(
new ChildProcessCreationParams(packageName, extraBindFlags,
LibraryProcessType.PROCESS_WEBVIEW_CHILD));
}

/**
* Starts the chromium browser process running within this process. Creates threads
* and performs other per-app resource allocations; must not be called from zygote.
* Note: it is up to the caller to ensure this is only called once.
* @param context The Android application context
*/
public static void start(final Context context) {
tryObtainingDataDirLockOrDie(context);
public static void start() {
tryObtainingDataDirLockOrDie();
// We must post to the UI thread to cover the case that the user
// has invoked Chromium startup by using the (thread-safe)
// CookieManager rather than creating a WebView.
ThreadUtils.runOnUiThreadBlocking(new Runnable() {
@Override
public void run() {
Context appContext = ContextUtils.getApplicationContext();
// The policies are used by browser startup, so we need to register the policy
// providers before starting the browser process. This only registers java objects
// and doesn't need the native library.
CombinedPolicyProvider.get().registerProvider(new AwPolicyProvider(context));
CombinedPolicyProvider.get().registerProvider(new AwPolicyProvider(appContext));

try {
BrowserStartupController.get(context, LibraryProcessType.PROCESS_WEBVIEW)
BrowserStartupController.get(appContext, LibraryProcessType.PROCESS_WEBVIEW)
.startBrowserProcessesSync(!CommandLine.getInstance().hasSwitch(
AwSwitches.WEBVIEW_SANDBOXED_RENDERER));
} catch (ProcessInitException e) {
Expand All @@ -95,11 +95,11 @@ public void run() {
});
}

private static void tryObtainingDataDirLockOrDie(Context context) {
private static void tryObtainingDataDirLockOrDie() {
StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads();
StrictMode.allowThreadDiskWrites();
try {
String dataPath = PathUtils.getDataDirectory(context);
String dataPath = PathUtils.getDataDirectory(ContextUtils.getApplicationContext());
File lockFile = new File(dataPath, EXCLUSIVE_LOCK_FILE);
boolean success = false;
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,7 @@ public void destroy() {
// hardware resources.
if (mIsAttachedToWindow) {
Log.w(TAG, "WebView.destroy() called while WebView is still attached to window.");
mCurrentFunctor.onDetachedFromWindow();
nativeOnDetachedFromWindow(mNativeAwContents);
}
mIsDestroyed = true;
Expand Down Expand Up @@ -1488,6 +1489,7 @@ private static boolean isBase64Encoded(String encoding) {
*/
public void loadData(String data, String mimeType, String encoding) {
if (TRACE) Log.d(TAG, "loadData");
if (isDestroyed(WARN)) return;
loadUrl(LoadUrlParams.createLoadDataParams(
fixupData(data), fixupMimeType(mimeType), isBase64Encoded(encoding)));
}
Expand Down Expand Up @@ -1577,6 +1579,10 @@ public void loadUrl(LoadUrlParams params) {
}
}

// Temporary to generate a Java stack for crbug.com/618807.
if (mNativeAwContents == 0) {
throw new RuntimeException("Calling load on destroyed webview " + mIsDestroyed);
}
nativeSetExtraHeadersForUrl(
mNativeAwContents, params.getUrl(), params.getExtraHttpRequestHeadersString());
params.setExtraHeaders(new HashMap<String, String>());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public class AwSettings {
private boolean mSpatialNavigationEnabled; // Default depends on device features.
private boolean mEnableSupportedHardwareAcceleratedFeatures = false;
private int mMixedContentMode = WebSettings.MIXED_CONTENT_NEVER_ALLOW;
private boolean mVideoOverlayForEmbeddedVideoEnabled = false;

private boolean mForceVideoOverlayForTests = false;
private boolean mOffscreenPreRaster = false;
private int mDisabledMenuItems = MENU_ITEM_NONE;
Expand Down Expand Up @@ -1701,35 +1701,22 @@ public void setDisabledActionModeMenuItems(int menuItems) {
* @param flag whether to enable the video overlay for the embedded video.
*/
public void setVideoOverlayForEmbeddedVideoEnabled(final boolean enabled) {
synchronized (mAwSettingsLock) {
if (mVideoOverlayForEmbeddedVideoEnabled != enabled) {
mVideoOverlayForEmbeddedVideoEnabled = enabled;
mEventHandler.runOnUiThreadBlockingAndLocked(new Runnable() {
@Override
public void run() {
if (mNativeAwSettings != 0) {
nativeUpdateRendererPreferencesLocked(mNativeAwSettings);
}
}
});
}
}
// No-op, see http://crbug.com/616583
}

/**
* Gets whether to use the video overlay for the embedded video.
* @return true if the WebView enables the video overlay for the embedded video.
*/
public boolean getVideoOverlayForEmbeddedVideoEnabled() {
synchronized (mAwSettingsLock) {
return getVideoOverlayForEmbeddedVideoEnabledLocked();
}
// Always false, see http://crbug.com/616583
return false;
}

@CalledByNative
private boolean getVideoOverlayForEmbeddedVideoEnabledLocked() {
assert Thread.holdsLock(mAwSettingsLock);
return mVideoOverlayForEmbeddedVideoEnabled;
// Always false, see http://crbug.com/616583
return false;
}

@VisibleForTesting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,15 @@ public Boolean call() throws Exception {
}

private boolean tryStartingBrowserProcess() {
final Context context = getActivity();
final Boolean success[] = new Boolean[1];
// The activity must be launched in order for proper webview statics to be setup.
getActivity();
// runOnMainSync does not catch RuntimeExceptions, they just terminate the test.
getInstrumentation().runOnMainSync(new Runnable() {
@Override
public void run() {
try {
AwBrowserProcess.start(context);
AwBrowserProcess.start();
success[0] = true;
} catch (RuntimeException e) {
success[0] = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,12 @@ protected void setUp() throws Exception {
}

protected void startBrowserProcess() throws Exception {
final Context context = getActivity();
// The activity must be launched in order for proper webview statics to be setup.
getActivity();
getInstrumentation().runOnMainSync(new Runnable() {
@Override
public void run() {
AwBrowserProcess.start(context);
AwBrowserProcess.start();
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.chromium.android_webview.AwWebResourceResponse;
import org.chromium.android_webview.test.util.CommonResources;
import org.chromium.android_webview.test.util.CookieUtils;
import org.chromium.base.ContextUtils;
import org.chromium.base.test.util.Feature;
import org.chromium.net.test.util.TestWebServer;

Expand All @@ -29,10 +30,11 @@ public class CookieManagerStartupTest extends AwTestBase {
@Override
protected void setUp() throws Exception {
super.setUp();
// CookeManager assumes that native is loaded, but webview browser should not be loaded for
// CookieManager assumes that native is loaded, but webview browser should not be loaded for
// these tests as webview is not necessarily loaded when CookieManager is called.
AwBrowserProcess.loadLibrary(
getInstrumentation().getTargetContext().getApplicationContext());
Context appContext = getInstrumentation().getTargetContext().getApplicationContext();
ContextUtils.initApplicationContext(appContext);
AwBrowserProcess.loadLibrary();
}

@Override
Expand All @@ -45,11 +47,12 @@ private void startChromium() throws Exception {
}

private void startChromiumWithClient(TestAwContentsClient contentsClient) throws Exception {
final Context context = getActivity();
// The activity must be launched in order for proper webview statics to be setup.
getActivity();
getInstrumentation().runOnMainSync(new Runnable() {
@Override
public void run() {
AwBrowserProcess.start(context);
AwBrowserProcess.start();
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,10 @@ private void deleteDirectory(File dir) throws Exception {
@SmallTest
@Feature({"AndroidWebView"})
public void testLegacyHttpCacheDirIsRemovedOnStartup() throws Exception {
Context targetContext = getInstrumentation().getTargetContext();
Context appContext = getInstrumentation().getTargetContext().getApplicationContext();
PathUtils.setPrivateDataDirectorySuffix(
AwBrowserProcess.PRIVATE_DATA_DIRECTORY_SUFFIX, targetContext);
File webViewLegacyCacheDir = new File(
PathUtils.getDataDirectory(targetContext), "Cache");
AwBrowserProcess.PRIVATE_DATA_DIRECTORY_SUFFIX, appContext);
File webViewLegacyCacheDir = new File(PathUtils.getDataDirectory(appContext), "Cache");
if (!webViewLegacyCacheDir.isDirectory()) {
assertTrue(webViewLegacyCacheDir.mkdir());
assertTrue(webViewLegacyCacheDir.isDirectory());
Expand All @@ -83,8 +82,8 @@ public void testLegacyHttpCacheDirIsRemovedOnStartup() throws Exception {
assertTrue(dummyCacheFile.exists());

// Set up JNI bindings.
ContextUtils.initApplicationContext(targetContext.getApplicationContext());
AwBrowserProcess.loadLibrary(targetContext);
ContextUtils.initApplicationContext(appContext);
AwBrowserProcess.loadLibrary();
// No delay before removing the legacy cache files.
AwContentsStatics.setLegacyCacheRemovalDelayForTest(0);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import org.chromium.android_webview.test.NullContentsClient;
import org.chromium.base.BaseSwitches;
import org.chromium.base.CommandLine;
import org.chromium.base.ContextUtils;
import org.chromium.base.Log;
import org.chromium.base.TraceEvent;
import org.chromium.content.app.ContentApplication;
Expand Down Expand Up @@ -79,7 +80,8 @@ public void onCreate(Bundle savedInstanceState) {
ContentApplication.initCommandLine(this);
waitForDebuggerIfNeeded();

AwBrowserProcess.loadLibrary(this);
ContextUtils.initApplicationContext(getApplicationContext());
AwBrowserProcess.loadLibrary();

if (CommandLine.getInstance().hasSwitch(AwShellSwitches.ENABLE_ATRACE)) {
Log.e(TAG, "Enabling Android trace.");
Expand Down Expand Up @@ -129,7 +131,7 @@ public void onDestroy() {
}

private AwTestContainerView createAwTestContainerView() {
AwBrowserProcess.start(this);
AwBrowserProcess.start();
AwTestContainerView testContainerView = new AwTestContainerView(this, true);
AwContentsClient awContentsClient = new NullContentsClient() {
private View mCustomView;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void onCreate(Bundle savedInstanceState) {

AwShellResourceProvider.registerResources(this);
ContextUtils.initApplicationContext(getApplicationContext());
AwBrowserProcess.loadLibrary(this);
AwBrowserProcess.loadLibrary();

mLinearLayout = new LinearLayout(this);
mLinearLayout.setOrientation(LinearLayout.VERTICAL);
Expand Down
Loading