Questions tagged [webkit]
WebKit is an open-source Web content engine for browsers and other applications, such as Apple Safari, Mail, App Store and several mobile browsers including the pre-installed browsers for Android, iOS, RIM Blackberry, Symbian, and WebOS.
41
votes
8answers
42k views
CSS transition not working for percentage height?
I have the following CSS definitions:
.detailsCollapsed
{
display:none;
height:0%;
width:100%;
-webkit-transition:height 40s ease-in-out;
}
.detailsExpanded
{
display:block;
...
468
votes
14answers
422k views
How to remove the border highlight on an input text element
When an html element is 'focused' (currently selected/tabbed in to), many browsers (at least Safari and Chrome) will put a blue border around it.
For the layout I am working on, this is distracting ...
0
votes
0answers
12 views
Links won't change with banner image slideshow, using webkit animation and nth child
Apologies in advance, I know my code is obviously wrong and don't know what I'm doing. I have searched for two hours to no avail.
I'm trying to get my banner slideshow to cycle links as the images ...
0
votes
0answers
17 views
Webkit background bug?
I have background image in wave form, generated from photoshop.
When I open Chrome or Yandex browser while i'm being asked if i want to get this browser default, i have colors like this:
After i ...
43
votes
3answers
22k views
In Chrome, how many redirects are “too many”?
Often, when a script has a redirect loop we get an error in Google Chrome that says
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.
How many redirects are too many?
1
vote
1answer
334 views
Python or Java module to render HTML page on server side and obtain DOM object
I am looking for a library in Python OR Java that can use webkit or similar rendering engine on the server side (without GUI) and return the DOM object for further processing like selecting the ...
40
votes
10answers
29k views
Getting all cookies from WKWebView
while getting cookies from UIWebView seems straightforward by using NSHTTPCookieStorage.sharedHTTPCookieStorage(), it seems WKWebView stores the cookies somewhere else.
I did some research, and I was ...
67
votes
11answers
72k views
Add custom headers to WebView resource requests - android
I need to add custom headers to EVERY request coming from the WebView. I know loadURL has the parameter for extraHeaders, but those are only applied to the initial request. All subsequent requests ...
3
votes
2answers
11k views
How Can I Style Html Audio Player?
I want to change the following things for an html audio tag
1.Change the play button color
2.change the background color
3.Change the time indicator bar color
How can I do this..?
5
votes
1answer
637 views
visible scrollbars IOS with “webkit-overflow-scrolling: touch”
I want scrollbars to be always visible in IOS. The quick solution is the "::-webkit-scrollbar" fix. However when using "webkit-overflow-scrolling: touch" for the "slide feeling", the scrollbars are ...
-2
votes
0answers
25 views
Drawing in Cairo OpenGL [on hold]
Herewith we are trying to acclerate the GPU using cairo backend OpenGL, and also we have seen the output and acclerated GPU using OpenGL & observed the smoothness. But we have faced a issue while ...
3
votes
1answer
212 views
How to remove warning message in Chrome when uploading a directory
When uploading a directory using webkitdirectory in Chrome, there is an ugly warning message that appears. The message reads: "Upload [number of files] files to this site? This will upload all files ...
1
vote
1answer
57 views
How do I get the selected text from a WKWebView from objective-C
I have a WKWebView.
When the user right-clicks on it, I can customize a contextual menu in my objective-c method. I'd like to add a menu item only if the user has selected some text in the WKWebView. ...
0
votes
0answers
7 views
How to stop WKWebView from creating too many processes?
I have a MacOS app that creates many NSViews of differing types, some of which contain WKWebViews. The Number of WKWebViews can become fairly large (dozens or more).
The problem is that each of these ...
5
votes
1answer
446 views
WKHTTPCookieStore.setCookie completion handler not called
I need to share cookies between WKWebView instances - for this i'm using a single WKWebViewConfiguration instance which is then used to init every WKWebView.
In order to do this I assume I have to ...
0
votes
0answers
28 views
How can I build WebKit to run on a VM? Assertion Failed: isAccelerated
I am building a debug version of WebKit, tag Safari-607.1.1, from source on a High Sierra 10.13.5 desktop. I need to be able to deploy the build to a local High Sierra 10.13.3 VirtualBox VM. I'm ...
13
votes
7answers
19k views
Table Row Box-Shadow on Hover (Webkit)
Is this possible?
My code works on Firefox. I can also get webkit to change other properties (e.g. background color, etc.) on hover, but the box shadow doesn't take effect:
tr:hover {
-webkit-...
8
votes
2answers
523 views
UIWebView WebCore TimerBase crash only on 11.3 (15E216) : SIGTRAP WebCore _ZN7WebCore9TimerBaseD2Ev
I've recently got a crash report from Crash Report Tools. This crash is being refered to UIWebView WebCore crash, my app uses UIWebView only ,And i can't switch to WKWebview recently. Below is the ...
0
votes
1answer
519 views
How to install Python 2.7 PyQt4 Webkit on Ubuntu 16.04
How do you install Webkit for use with PyQt4 (Python 2.7 not Python 3) on Ubuntu 16.04?
0
votes
1answer
15 views
WPEWebKit does not starts on Ubuntu 16.04
In general I done all steps from WPEWebkit readme to launch WPE on Ubuntu 16.04.
Prerequisites and dependencies (Tools/Scripts/update-webkitwpe-libs) installed without errors.
Release build compiled (...
160
votes
14answers
217k views
Background color not showing in print preview
I am trying to print a page. In that page I have given a table a background color.
When I view the print preview in chrome its not taking on the background color property...
So I tried this property:
...
0
votes
1answer
25 views
why do we need to user -webkit in css? [duplicate]
I have tried a CSS code which one of it are include the
-webkit code
and another didn't but the output are the same. I'm using Google Chrome, but when I delete the transform: rotate(45deg); ...
1
vote
3answers
2k views
Native javascript decompress function in Chrome/webkit
If you are sending data that is base64-encoded and compressed (using, say, python's zlib.compress()), you can use the native Chrome function window.atob() to convert from base64 to binary data. Is ...
46
votes
5answers
56k views
What version of mobile safari comes with each version of iOS?
I'm trying to figure out what Javascript APIs I can use to achieve support for Mobile Safari back to iOS2. I haven't found a list anywhere that shows what version of Mobile Safari ships with each new ...
0
votes
0answers
21 views
Still display form errors with -webkit-appearance: none?
I have an input like this, inside a <form>:
<input type="checkbox" required>
Normally when I try to submit the form, it comes up with an error like this underneath the checkbox:
However,...
9
votes
4answers
8k views
Is there any way to force the Javascript Garbage Collector in webkit based browsers?
In internet explorer we can force the Javascript garbage collection to execute with this method: CollectGarbage();
That method is undefined on Firefox. Do you know if there is some kind of ...
1
vote
0answers
18 views
How to register a custom URL scheme handler with WebKit for Windows?
I have a Windows application showing web content using WebKit.
Now I'd like some specific URLs to be handled locally by the application instead of loaded from the server.
Let's say the javascript code ...
3
votes
0answers
2k views
How can I check if the browser support webkitdirectory?
I am using Google Chrome's folder upload feature in my project, described here:
How do I use Google Chrome 11's Upload Folder feature in my own code?
I have a button that trigger an input field ...
0
votes
0answers
48 views
Drawing in current focus region for cairo-gl backend
Herewith we have faced a drawing in current focus region only and we are using cairo-gl(1.14.2). we have created a eglCreateWindowSurface and utilized as two cairo egl surface for front surface and ...
32
votes
2answers
4k views
Div scrolling freezes sometimes if I use -webkit-overflow-scrolling
if I use -webkit-overflow-scrolling for a scrolling div, it scrolls perfectly with native momentum. But, div itself sometimes freezes and does not respond my finger moves. After 2-3 seconds later, it ...
64
votes
5answers
22k views
How to get focus to a Chrome tab which created desktop notification?
I would like to implement same functionality as Gmail has nowadays. When new email arrives or new chat comes, notification popup appears and if you click it, the tab with Gmail gets focussed.
I have ...
0
votes
0answers
10 views
Webkit not loading page, Tried the info.plist and still not showing up in test
Hi I have made a simple coding of the webkit, however all the links I have tried were just not showing up. Are there any other settings I have missed? Thanks!
import UIKit
import WebKit
class ...
-2
votes
1answer
54 views
Css overflow not working with Firefox
The .css file
#log{
-webkit-box-flex: 1;
padding-top: 20px;
overflow: scroll ;
height: 150px;
color: #23568a;
font-size: large;
font-weight: bold;
display: flex;
...
29
votes
5answers
18k views
Webkit border-radius and overflow bug when using any animation/transition
I am having getting a weird bug when I use a combination of overflow, border-radius, and transition. I have a div with an img inside of it. The div has a border radius and overflow set to hidden. When ...
83
votes
11answers
44k views
Export CSS changes from inspector (webkit, firebug, etc)
When I'm working with CSS, I'll often test in a browser - say, Chrome - right click an element, click Inspect Element, and edit the CSS right there. The use of arrow keys to change things like margin ...
2
votes
2answers
869 views
how do I overlay an image on webview using python Gtk and webkit
I need help on how to overlay an image on a webview. I want to be able to place a button or an image on a webpage (a webview object)
So I have the following
import gtk
import webkit
...
win=gtk....
235
votes
19answers
299k views
How can I debug javascript on Android?
I'm working on a project that involves Raphaeljs. Turns out, it doesn't work on Android. It does on the iPhone.
How the heck to I go about debugging something on the Android browser? It's WebKit, so ...
2
votes
1answer
2k views
How to build WebKit on iPhone?
I have built WebKit on Mac, but I want to build it on iPhone.
Should I convert Cocoa framework to CocoaTouch framework?
Like NSView to UIView?
or any other functions?
0
votes
0answers
28 views
WKWebview Blocking cookies not working swift 4?
I tried server solutions available on stackoverflow and other sites
https://stackoverflow.com/a/47562043/3145189
https://stackoverflow.com/a/19062554/3145189
https://forums.developer.apple.com/...
-3
votes
1answer
23 views
single process webkit souce code
How single process webkit engine how to download .html .js .css files and so on?I had visit the website [https://webkit.org/getting-the-code/#checking-out-with-subversion][1] and [https://github.com/...
2
votes
2answers
36 views
WKWebView doesn't react to 503 error
I am loading an url request in my WKWebView.
Charles shows me Response Code: 503 Error which is fine, because it should be unavailable, but
webView(_:didFail:withError:)
webView(_:decidePolicyFor:...
0
votes
1answer
144 views
Wait for WKWebView evaluateJavaScript to finish
I have a problem that's been irritating me for a couple of days now. I'm trying to work with a WKWebView in my Swift project. Below is my code:
var items: [String] = []
for i in 0...8 {
...
0
votes
0answers
20 views
Horizontal Parallax Rendering Bug in Safari
I've recently build a site that uses a horizontal parallax slider. However, while the code is perfectly working on all browsers, safari on both desktop and mobile sadly fails to render it correctly. I'...
0
votes
0answers
25 views
Stop Handlers from activating in overflowed areas of CSS Transforms in Chrome
I have an element transformed inside a wrapper div. transformed simply has some block colour so we can see it render. The wrapper has a border radius set, and overflow hidden. As such, the corners of ...
0
votes
0answers
10 views
Ionic 3: IOS mode specific styling not allowing fullscreen video
I am using video.js to create a video player component for my app, the only issue is on when the app is set to fullscreen, a black screen appears with audio but no video is being displayed.
This is ...
0
votes
0answers
20 views
WKUserScript isn't working
This is how I setup configuration of WKWebView,
func configWeb() {
let recentconfig = WKWebViewConfiguration()
let recentscriptURL = Bundle.main.path(forResource: "getPosts", ofType: "...
0
votes
0answers
32 views
Can I launch a default external browser from a link in a webkit page, embedded in an application?
I have a MacOS app that uses a Webkit view to display very customized content from a Wordpress site, which hosted on my own domain. Some of my pages contain a few links to pages hosted on other ...
37
votes
17answers
21k views
Disable magnification gesture in WKWebView
I'm looking for a way to disable the "pinch to zoom" magnification gesture on the iOS implementation of WKWebView. There is a magnification BOOL property available for OS X but it doesn't seem to be ...
0
votes
1answer
182 views
How to install WebkitGTK in MacOS?
brew install webkitgtk
Not finding package, when installing from macports it doesn't finding by gtk-rs when compiling my project on rust with gtk-rs and webkit2gtk-rs
0
votes
1answer
20 views
Jquery, how change webkit attribute?
I am trying to figure out how to change webkit attribute in jquery to remove an input spinner? In order to do that in CSS you have this code:
.quantity::-webkit-inner-spin-button,
.quantity::-webkit-...