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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Xcode 15 - No dependency on Webkit, yet build errors on new a WebKit API

Our application consists of several modules & the application. None of these modules nor the application has WebKit as a dependency. One module does have a dependency to a closed-source Swift-...
Joris Timmerman's user avatar
0 votes
1 answer
16 views

position: fixed; not working when backdrop-filter is used [duplicate]

As it can be seen in the snippet below, position: fixed; top: 0; left: 0; doesn't work when the parent has a backdrop-filter. Why? Notes: A solution seems to be: prefix backdrop-filter with -webkit- ...
Basj's user avatar
  • 41.6k
-1 votes
0 answers
17 views

How can I add a header to all requests in Safari through Local Overrides?

I am looking to add a header to ALL network requests, no matter what domain/url, and receive the regular response using Safari's local overrides feature. Here is the configuration I tried: URL: (.*) (...
user74018904's user avatar
0 votes
1 answer
11 views

WebP support in WKWebView from iOS 14

Does WKWebView support WebP images? If so, how can I enable this? I have only found old questions that stated that it is not possible, however since iOS 14 Safari should have support for WebP. My use ...
eja08's user avatar
  • 4,610
-1 votes
0 answers
23 views

How to make Javascript run in a non-focused on Safari tab?

I've been working on a Safari extension that will automatically enable Picture in Picture when a tab with active video is switched from (The tab is still open in the background). All the parts of my ...
DRosman_07's user avatar
1 vote
1 answer
28 views

Does JavaScript not work on data URI pages in WebKit?

On Chrome on Android, JavaScript on a data URI page consisting of the following HTML <html> <head> </head> <body> <a href="javascript:alert('Hi.');">Say hi</...
Melab's user avatar
  • 2,604
0 votes
0 answers
12 views

text clip mask but invert where there is no overlapping background. CSS

I'm building out a CSS style for designers portfolio and he has designed a clip mask for text that overlaps with a clip mask for a background image design. Where the two masks overlap I need the text ...
Hunter Cheveldave's user avatar
1 vote
0 answers
16 views

How to hide the “Paste” menu on Safari browser when using `navigator.clipboard.readText()` in the button click handler?

I'm trying to read the clipboard data using the navigator.clipboard.readText() in the button click handler: <body> <h1>How to paste text</h1> <p><button type=button&...
Andrey Khramov's user avatar
0 votes
0 answers
52 views

WebView not rendering webpage

WebView is not rendering web page. I've passed webView and IWebResourceRequest as parameters to ShouldOverrideUrlLoading and it still doesn't seem to be working. Here's a snippet of my code: public ...
GitGood's user avatar
0 votes
0 answers
18 views

Delete all WKWebView and URLSession related cached data

I use WKWebView to authenticate on a site, copy the downloaded cookies to an array and use them with a subsequent URLSession. This is to avoid authentications on every request. All works fine, but my ...
geohei's user avatar
  • 696
0 votes
0 answers
51 views

"WebGL: context lost." error in MapLibre GL JS with Tauri

I get these following errors when trying to run MapLibre GL JS in my Tauri App: [Error] WebGL: context lost. getContext (anonymous function) (maplibre-gl.js:9404) (anonymous function) (...
Kerem Nayman's user avatar
0 votes
0 answers
17 views

Error loading my lightdm webkit greeter theme

I made a minimal theme but it doesn't work. Here is the index.theme: [theme] name=ramana description=Ramana Maharshi lightdm webkit2 theme engine=lightdm-webkit2-greeter url=index.html session=awesome ...
Sri Ramana Maharshi's user avatar
0 votes
1 answer
17 views

How To Open New Tab In Custom WKWebView Implementation

I have a custom webview implementation that looks like this: struct WebView : UIViewRepresentable { @ObservedObject var navigationState: NavigationState @Binding var proxy: GeometryProxy ...
anish1's user avatar
  • 33
0 votes
0 answers
23 views

How to fix HTML layout issues in an NSTextView on macOS Sonoma?

On macOS Sonoma (23A5312d) there are HTML table layout issues when using an NSAttributedString in an NSTextView. Consider the following Swift code: override func viewDidLoad() { super....
Dave's user avatar
  • 489
0 votes
0 answers
14 views

Prevent added user script from WKWebView to run on our website

We have an iOS app which loads a route of our website into a WKWebView. It then uses WKUserContentController to add a script using addUserScript. This javascript-file will therefor run on our website ...
poppe's user avatar
  • 599
1 vote
0 answers
72 views

js encountered "Maximum call stack size exceeded" and wanted to find that infinite loop which cause this

Console output has Maximum call stack size exceeded Need to solve the problem of repeated loading (get out of the loop) I repaired one of the "Maximum call stack size exceeded" a little ...
080_coder_from_jap's user avatar
1 vote
1 answer
83 views

Why does rainbow text with KaTeX only work on firefox?

<style> #a-r-t { background-image: repeating-linear-gradient(to right, red, orange, yellow, lime, cyan, violet); display: inline-block; background-size: 800% 800%; ...
Shishir Oneal's user avatar
0 votes
0 answers
44 views

How can I get request URLs in Swift webview

I'm currently working on an app that uses a webview to log in. I've done the exact same thing before on Flutter and was able to intercept and read the token from an incoming request URL. I need to do ...
Miiko's user avatar
  • 1
0 votes
0 answers
23 views

How to initialise a custom WKWebView view without having to explicitly trigger the main thread (@MainActor)

I have a custom WKWebView that I want to utilise in my code: public class AuthenticatedWebView: WKWebView, AdInAuthenticatedWebView { private var shouldStopFurtherRedirects = false public weak ...
Saad Qureshi's user avatar
0 votes
1 answer
42 views

js face Maximum call stack size exceeded

I have studied some similar issue, but I'm still stock on some point website's console output (Maximum call stack size exceeded) Uncaught RangeError: Maximum call stack size exceeded at access (code....
080_coder_from_jap's user avatar
0 votes
0 answers
23 views

Why doesn’t Webkit accept my simple websocket?

I’m relatively new to websockets. I have a simple secure websocket system that does what I need it to do. I’ve been using it in my application for months, and it’s been going great, but it only works ...
PARALLAX's user avatar
0 votes
0 answers
42 views

Communicate between Next JS Web and Native Mobile App

I'm having a web server by Next JS (BE by Spring), and iOS, Android App. I'm handling change page in Web, and i want Native apps to detect this for handle some logic in apps. I tried to use window....
MinhDat's user avatar
  • 57
0 votes
2 answers
44 views

Have content display after line clamp

I am working on a simple edit button that floats at the end of a paragraph, it's hidden unless the user hovers over the text, clicking the button sets a variable that enables edit mode, works as ...
Adan Sandoval's user avatar
0 votes
0 answers
40 views

Cannot display webview window using PHP FFI

I am trying to use the webview library using PHP FFI. On my Manjaro linux, using the prebuilt binary from the manjaro package repo, everthing works great. Here's the code that's working with the ...
Nazmul Alam's user avatar
0 votes
0 answers
27 views

Getting ECOMMRESET when trying to run webkit in docker on aws deploy

Docker file: FROM cypress/included:12.14.0 RUN apt-get update RUN apt-get install -y git curl openssh-client ENV GATSBY_IS_DOCKER=true RUN mkdir -p /root/.cache/Cypress/12.14.0/Cypress/resources/app/...
Nir Shihor's user avatar
0 votes
0 answers
34 views

Swift URLSession returns incorrect amount of bytes on request

I have a url session requesting data by URL. The issue is the data retrieved by the url on a fresh app open is not proper. Problem: For example I delete the app and re-download the app and make a ...
adalovelacy's user avatar
0 votes
1 answer
97 views

How to test older webkit with playwright?

I'm testing my application's frontend behavior in multi-browser and multi-version environment. I chose playwright because it supports those environments. Now, I'm trying to test older versions of ...
silverface0i0l's user avatar
0 votes
0 answers
37 views

Do minified class names change and if so how often?

I'm trying to create a custom user-defined CSS stylesheet to modify my Reddit experience on Reddit. In doing so I've found that many class names have been hashed to arbitrary strings to prevent ...
Dirkinz's user avatar
  • 41
1 vote
1 answer
29 views

CSS mask and mask-composite doesn't work in Safari 14

http://hisidi.kr/2023/100/ In this website, I masked circular shaped space at the top and bottom of the screen by using mask and mask-composite. But in Safari 14, it doesn't work properly(maybe ...
penguin's user avatar
  • 11
2 votes
0 answers
23 views

Auto detect in two languages WebkitSpeechRecognition javascript

I'm working on a simple app that uses WebkitSpeechRecognition. But I want it to auto-detect languages between two languages I give it (For example, "en-US" and "vi-VN"). This is ...
Dile's user avatar
  • 516
1 vote
0 answers
66 views

No prompt showing for WKWebView getUserMedia({audio: true})

A JavaScript library implementation (Twilio Voice JS) on MacOS requires media permissions, specifically microphone permissions. To do so in web browsers, one typical calls: navigator.mediaDevices....
CybeX's user avatar
  • 2,090
0 votes
0 answers
29 views

Mobile Web app scroll issue, especially on iOS webkit

In my vuejs project, sometimes, a scroll is not working for seconds, then working again in specific views. It occurs on chrome, and iOS webkit, and is easily found some pages with input tags and v-...
Spencer's user avatar
0 votes
0 answers
23 views

How can I add a view after webview content ended in scroll view Swift?

i'm trying to add a view just below my webview content. The webview content should be in full screen, then right after the content ended, I want to have a view there. Here's what I created so far. ...
Aldo Sugiarto's user avatar
0 votes
0 answers
40 views

Webkit pseudo elements don't respect SVG mask

I've made this SVG mask: <svg width="1" height="1" viewBox="0 0 1 1" style="position: absolute;pointer-events: none;top: -1px;left: -1px;width: 1px;height: 1px;&...
alex smith's user avatar
0 votes
0 answers
62 views

DataView.getInt16 returning values less than -32768 [duplicate]

I've been parsing binary font files for years without issues and am just now getting strange result from code like this. const value = dataView.getInt16(offset, false); Which either returns correctly ...
Tyler Larson's user avatar
1 vote
0 answers
38 views

Instantiating "HTML-styled" NSAttributedString in a View's body produces weird behaviour

In an attempt to expose the capabilities of NSAttributedString in combination with UITextView to the world of SwiftUI (specifically the ability to render basic HTML), I've wrapped UITextView in a ...
thomsmed's user avatar
  • 151
0 votes
1 answer
13 views

How to keep default CSS styles on arbitrary browsers while also using webkit styles for slider (range input)?

Background I want to style a slider (range input element) using CSS, such as <input type="range" min="5" max="20" step="1" value="10">. I know ...
superswellsam's user avatar
0 votes
1 answer
21 views

Is it possible to implement a smooth transition from text painted in one color to an animated gradient?

On the page, there is white-colored text with a button positioned below it. Additionally, an animated gradient is applied to fill the text. When the button is clicked, the -webkit-text-fill-color ...
Laika_Mirklis's user avatar
0 votes
0 answers
61 views

Failing to create a docker file to run cypress tests on webkit

This is my docker file: FROM cypress/included:12.16.0 RUN apt-get update RUN apt-get install -y git curl openssh-client RUN yarn add -g @aws-amplify/cli@10.5.2 gatsby-cli@4.24.0 mocha mochawesome ...
Nir Shihor's user avatar
1 vote
0 answers
36 views

CSS transition buggy and stuttering in Safari but works perfectly in Chrome

This is my first post here so sorry if something isn't formatted correctly. CSS: .para { position: absolute; pointer-events: none; transition: transform 0.45s cubic-bezier(.2,.49,.32,.99) ...
AmyCol's user avatar
  • 11
0 votes
0 answers
10 views

Disable App Nap in WKWebView Web Content process

I am developing a .NET MacOS app which uses the WKWebView. I am trying to implement the ability of miniaturizing the app without loss of the performance. The problem is that after around a minute the ...
dobowicz's user avatar
0 votes
0 answers
22 views

How to prevent app container URL from getting exposed in WKWebView?

In iOS, when a link with improper value in href attribute (say for example: <a href = "{SomeDynamicFieldTobeResolvedLaterAsLink}">Link</a>) is dragged and dropped into WKWebView, ...
Kris2k's user avatar
  • 265
0 votes
0 answers
47 views

css radial gradient causes cpu spikes in flickering in safari and mac os

I'm trying to make simple mesh gradient animation in css. It's just 3 divs with radial gradients and scale transforms. In any other browser everything works as intended. But in Safari for some reason ...
Alexander Ruletik's user avatar
0 votes
0 answers
93 views

How to allow WebKit(Gtk) to use TLS for cross-site embedded resources without hostname checks?

We have a network where no hostnames are available, IP addresses can change dynamically and no reliable clock is available, yet we do want to use TLS with certificates from our own CA. Most ...
Mr.K's user avatar
  • 91
0 votes
0 answers
18 views

Missing chromium dependencies when trying to use androix.webkit.ProxyController

I'm trying to build and run an Android application that uses androidx.webkit.ProxyController class. After initializing a ProxyController using ProxyController.getInstance(), at some point it tries to ...
Tal Schneider's user avatar
0 votes
0 answers
75 views

::-webkit-datetime-edit not working on safari web desktop browser

I use the ::-webkit-datetime-edit CSS property in order to control the appearance of a date input field for webkit browsers. But not working on safari web browser, Here is my code:<input type="...
Sanket Thakkar's user avatar
2 votes
1 answer
187 views

Allow text selection but don't show context menu in WkWebView

I have a mobile app written in SwiftUI. The user should be able to select (highlight) text in a WebView, i.e. the blue handles should be shown: But I don't want to show the context menu. Is this ...
km11's user avatar
  • 528
0 votes
1 answer
62 views

How to bypass iOS Permission policy for Audio element .play() method?

There is a button, by pressing which the sound is played without problems, but the problem is that it is necessary to output subsequent sounds further, but without pressing the playback start button. ...
Alexey's user avatar
  • 1
1 vote
0 answers
23 views

Setting custom user-agent in GTK Webkit

I create a GTK window in C by #include <gtk/gtk.h> #include <webkit2/webkit2.h> int main (int argc, char *argv[]) { gtk_init(&argc,&argv); GtkWidget*window = gtk_window_new(...
Googlebot's user avatar
  • 15.2k
0 votes
1 answer
27 views

Executing code only if the browser is Google Chrome

I used webkitSpeechRecognition for voice controlled navigation on my website. It works perfectly fine on Google Chrome, but on other browsers such as Edge and Opera the website will actually break. ...
Moe_blg's user avatar
  • 71

1
2 3 4 5
149