26,622 questions
0
votes
0
answers
30
views
Why range.startContainer gets different results when I click inside or outside the img?
class Editor {
docContainer
text
constructor(posContainer) {
this.posContainer = posContainer
this.genComponets()
this.listen()
}
genComponets() {
...
2
votes
1
answer
46
views
on small resolution added hamburger span stays on screen when resizing the window although it should be removed [duplicate]
I have this js, but it works only with browser refresh.
let vw = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0)
if(vw < 801){
as = document.getElementById('as');
...
1
vote
3
answers
255
views
NoDriver Python Chrome Client fails to init
I am using NoDriver python on MacOS and sometimes when I try and open a browser tab it fails with the error below (I've tried Chrome+Chromium and it happens on both). If I manually open the browser ...
0
votes
1
answer
123
views
How do I make one element update its position relative to another?
There are two elements: a button and a tooltip. The button is in the element with position: sticky, and the tooltip is separate and has position: absolute (all these conditions cannot be changed). ...
0
votes
1
answer
169
views
.NET 8.0 Avalonia browser application stuck on splash screen
I am developing an Avalonia application and I decided to try the multi-platform.
The project I started is using .NET 8.0, infact I installed the .NET 8.0.121 SDK. When I start the application on the ...
1
vote
0
answers
71
views
Does iPhone support persistent microphone permission for web apps?
I have a web app that requires access to the microphone. On iPhone browsers (both Chrome and Safari), users have to grant microphone permission on every page reload. This results in poor user ...
0
votes
0
answers
46
views
Video not playing in browser despite proper range support
I have created a website in Node Js, and it supports range requests and gives the proper ranged responses.
However, anything loaded with the <video> tag does not work, this is the code for the ...
0
votes
1
answer
44
views
How to extract all attachment Blobs in PouchDB (synchronous/asynchronous issue?)
Note: My problem seems to be more to do with synchronous vs asynchronous JavaScript than with PouchDB.
I have a PouchDB database containing documents that each have one attachment.
The attachments are ...
1
vote
2
answers
130
views
How can I get Javascript to report the maximum possible width of the viewport of the browser on any device? [closed]
How can I get JavaScript to read the maximum possible width of the viewport of any browser on any device when the browser window width is fully expanded on the device?
I have tried:
const ...
-3
votes
1
answer
137
views
Write to large file without loading the whole file into RAM
I would like to read and write to a large file (stored on the user's file system) using browser Javascript without loading the whole file into RAM (it's too big to fit in RAM). I already have the code ...
1
vote
1
answer
127
views
Why does my favicon appear smaller than other sites in Google search? (Next.js 14 + favicon.ico only)
In Google search results, I noticed that some sites show a full-sized favicon (A), while mine shows a smaller one (B) with padding or shrink.
Here’s what I mean:
A (Other site – full favicon):
B (My ...
0
votes
1
answer
141
views
Why does Wikipedia claim UTF-16 is obsolete when Javascript uses it?
The Wikipedia page for UTF-16 claims that it is obsolete, saying:
UTF-16 is the only encoding (still) allowed on the web that is incompatible with 8-bit ASCII. However it has never gained popularity ...
0
votes
0
answers
51
views
Chrome Omnibox suggestions not showing when async response is delayed
I'm implementing a Chrome extension using chrome.omnibox.onInputChanged.addListener with debounce and abort control. When the async operation (getKeywordSuggestions()) takes too long (5-10 seconds) ...
0
votes
1
answer
78
views
How to call an API on before unload event in react
How to call an API on before unload event in react, I have tried fetch with Keepalive true & sendbecon(doesn't support authorization headers in headers)
Also, I want to show dialog box with custom ...
0
votes
2
answers
81
views
Border line *under* an element with background fill is still slightly visible
Setup
I have the following HTML and CSS (the most important thing to notice here is the style for #selected-tab):
<body>
<header>
<nav>
<span id="selected-tab&...
0
votes
0
answers
31
views
Pickup webrtc call using headset button
I've a web application using WebRTC capabilities to handle phone calls.
My customers would like be able to pickup calls using headset button like they use to do with a desktop application.
I didn't ...
0
votes
0
answers
45
views
How to override CTRL+S, CTRL+N, CTRL+T, CTRL+U key events using hotkeys.js?
I'm trying to override default browser behavior for the following key combinations using the hotkeys.js library:
CTRL+S (save)
CTRL+N (new window)
CTRL+T (new tab)
CTRL+U (view source)
I want to use ...
-2
votes
1
answer
667
views
Why is Chrome when used with Puppeteer not exactly like "real" Chrome? [closed]
I'm trying to automate loading web pages.
I have tried to use cURL for this task. Forget about it! Those days are long gone. You will only get a "Just a moment..." dummy page returned.
...
0
votes
0
answers
36
views
Is browser pixel pipeline and DOM diffing being used always together in React.js when updating CSS when using state vs updating CSS imperatively?
When working with React.js - does the browser behave differently in the pixel rendering pipeline when we update CSS declaratively -like through state in event handlers:
<div className={isDark ? '...
0
votes
0
answers
29
views
How to implement missing Safari `history.onHistoryStateUpdated()`?
Unfortunately, Safari does not support 'webNavigation.onHistoryStateUpdated', but i need it to be working in web extension. I had an idea of wrapping history.pushState() that will call ...
-2
votes
2
answers
87
views
how to configure java on RHEL for browser
i installed java jdk on my RHEL 8 system.
But I cannot see it in my browser. When I test browser for java it says Java is not installed.
# dnf install java-1.8.0-openjdk.x86_64
# java -version
...
0
votes
0
answers
31
views
Chrome browser is capitalizing URL after renaming my GitHub pages repository
I was building a portfolio website and committed everything to a repository named "Portfolio." I then hosted the page, which became something like:
https://myaccount.github.io/Portfolio
...
1
vote
0
answers
103
views
Google Drive API starting return a 502 when initializing gapi
i had a working implementation of the google drive api.
Now stopped working and I get following error logged in the browser's console:
GET https://content.googleapis.com/discovery/v1/apis/drive/v3/...
0
votes
0
answers
21
views
Finding every time a function has been ran on a browser
So I am reverse engineering this site, and I need to understand where some values come from in this encryption process, lets say the encryption function is window.crypto.decryption() and all I really ...
0
votes
0
answers
42
views
spring boot cookie not accessible in browser
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
return http
.csrf(csrf -> csrf.disable())
.cors(cors -> cors.configurationSource(corsConfig....