Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
android-components
Commits
3816e0c5
Commit
3816e0c5
authored
Jul 09, 2019
by
Simon Chae
Browse files
Issue #3666: Apply useWideViewPort to WebSetting
parent
1680452c
Changes
2
Hide whitespace changes
Inline
Side-by-side
components/browser/engine-system/src/main/java/mozilla/components/browser/engine/system/SystemEngineSession.kt
View file @
3816e0c5
...
...
@@ -281,6 +281,7 @@ class SystemEngineSession(
override
var
userAgentString
by
WebSetting
(
s
::
getUserAgentString
,
s
::
setUserAgentString
)
override
var
displayZoomControls
by
WebSetting
(
s
::
getDisplayZoomControls
,
s
::
setDisplayZoomControls
)
override
var
loadWithOverviewMode
by
WebSetting
(
s
::
getLoadWithOverviewMode
,
s
::
setLoadWithOverviewMode
)
override
var
useWideViewPort
by
WebSetting
(
s
::
getUseWideViewPort
,
s
::
setUseWideViewPort
)
override
var
supportMultipleWindows
by
WebSetting
(
s
::
supportMultipleWindows
,
s
::
setSupportMultipleWindows
)
override
var
allowFileAccessFromFileURLs
by
WebSetting
(
s
::
getAllowFileAccessFromFileURLs
,
s
::
setAllowFileAccessFromFileURLs
)
...
...
components/browser/engine-system/src/test/java/mozilla/components/browser/engine/system/SystemEngineSessionTest.kt
View file @
3816e0c5
...
...
@@ -637,7 +637,8 @@ class SystemEngineSessionTest {
@Test
fun
desktopMode
()
{
val
userAgentMobile
=
"Mozilla/5.0 (Linux; Android 9) AppleWebKit/537.36 Mobile Safari/537.36"
val
engineSession
=
spy
(
SystemEngineSession
(
testContext
))
val
defaultSettings
=
DefaultSettings
()
val
engineSession
=
spy
(
SystemEngineSession
(
testContext
,
defaultSettings
))
val
webView
=
mock
<
WebView
>()
val
webViewSettings
=
mock
<
WebSettings
>()
var
desktopMode
=
false
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment