26,620 questions
0
votes
0
answers
118
views
Is it possible to connect to a local Python server using secure web sockets from a browser console on an HTTPS webpage?
We installed websockets for Python on macOS using this terminal command:
(.venv) a@as-MacBook-Pro dic % python3 -m pip install websockets
server.py:
#!/usr/bin/env python3
"""Secure ...
0
votes
0
answers
35
views
Which HTML tags work well with the majority of feed readers when used in RSS/Atom feeds? [closed]
Although I am aware that RSS does not specify a whitelist, readers typically remove elements like <script> and <iframe>. Which subset of HTML is commonly supported and consistently ...
3
votes
1
answer
183
views
Why do some web browsers incorrectly display currencies produced by NumberFormatter
Why some older web browsers (not all) incorrectly display currency symbols when symbols are produced by php NumberFormatter() but display correct symbol when given as html entity. Since correct symbol ...
0
votes
0
answers
35
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
48
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');
...
3
votes
0
answers
83
views
window .postMessage is not returning when popup window is closed,
I am opening a window popup for login and once login is completed I am closing the popup window. after closing. I want to know what is the exact method to capture the closing the popup window , (...
1
vote
3
answers
284
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 ...
Best practices
1
vote
1
replies
54
views
How can I print very thin lines (e. g. 1/300 dpi) to PDF via Chrome? (Prevent rounding to full css-px)
I would like to print a 1/300 inch wide line with chrome (PDF). Unfortunately, the line is rounded up to a value of a css-pixel.
(It has to be Chrome [not PRINCE XML], due to some advanced features…)
0
votes
1
answer
126
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
0
answers
51
views
Cannot execute Puppeteer in IIS
I have an ASP.NET Core 8.0 Web API created with C# that provides an endpoint to create PDFs from HTML markup. I use PuppeteerSharp to create the PDF, and it worked fine locally, but it does not work ...
0
votes
1
answer
200
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 ...
0
votes
1
answer
42
views
Flutter Web - When launching a new tab, is there a way to skip app loading
I realise that this may be more of a general web/browser question but I can't seem to find anything related and as I'm using flutter...
I was wondering if there was a way to skip the app loading if I ...
1
vote
0
answers
75
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 ...
2
votes
1
answer
84
views
Custom pop up timer not working correctly
When socket messages come, I pop up divs in my page which disposes after 3 seconds themselves
<!-- I'm using vuejs -->
<div v-for='item in messageList'>
<!-- message body , -->
&...
0
votes
0
answers
50
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
0
answers
32
views
GitLab on Ubuntu: Browser always redirects http://git.brian.dev to https://git.brian.dev
I’m configuring a self-hosted GitLab server on my laptop (Ubuntu).
My Wi-Fi IP is 192.168.x.x.
I added this line in /etc/hosts:
192.168.x.x git.brian.dev
In GitLab configuration (/etc/gitlab/gitlab....
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 ...
0
votes
0
answers
23
views
Using Power Automate to Page through List of Records
I'm using Power Automate Desktop to navigate through multiple pages of a list on an ASP.NET page. The number of pages available in the navigation go up to max of 10. If more than 10 pages, the ...
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 ...
0
votes
1
answer
126
views
How to access svelte web app variables from the browser console? [closed]
I’m working with a Svelte 5 application that has already been deployed in production, and I don’t have access to its source code. I’d like to inspect or interact with some of its internal variables ...
-3
votes
1
answer
141
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 ...
0
votes
0
answers
20
views
Questions about browser cache negotiation in Nuxt
I want to implement the cache negotiation for the public folder in the root directory. I configured it as follows in nuxt.config.ts. However, after running pnpm dev and pnpm generate, and then npx ...
1
vote
1
answer
135
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
87
views
Java Desktop#browse fails for specific URI
In my Java desktop application I try to launch an URI in the current default browser like this:
Desktop.getDesktop().browse(URI(uri))
Normally this works without problems but for the uri string "...
0
votes
1
answer
146
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
1
answer
86
views
chrome browser beforeunload api unwished action issue
I have a question about the browser beforeunload API.
I wanted to implement a feature that displays a warning window when performing actions such as refreshing, going back, closing a tab, or moving to ...
0
votes
0
answers
55
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) ...
1
vote
1
answer
84
views
Manually highlight an inactive browser tab with JavaScript [closed]
If in an inactive (meaning unfocused) tab for example an alert is triggered, this tab is highlighted with a little small bubble underneath the favicon. How can trigger this “bubble” directly using ...
0
votes
1
answer
85
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
0
answers
92
views
Otel Context Propagation for Auto-Instrumentation in a Multi-Stage Bootstrap Environment
I'm working with a large single-page application that has a complex, multi-stage bootstrap process. I'm facing a challenge getting the standard auto-instrumentations (like instrumentation-fetch) to ...
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
1
answer
89
views
PMTiles Request from MapLibreMap aborted by Firefox
We are using a remote pm tiles service to display a background map in our application. We switched to a new remote service as the old one will be disbanded.
In Chrome/Edge/Brave/Opera everything is ...
0
votes
0
answers
35
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 ...
-2
votes
1
answer
88
views
Cookie received from backend but not saved or sent on subsequent requests in localhost (Express + Vite + CORS setup)
I'm working on a full-stack web app with the following setup:
Frontend: React, Vite dev server running at http://localhost:5173
Backend: Express server running at http://localhost:3000
Here's the ...
0
votes
0
answers
49
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 ...
0
votes
1
answer
42
views
Is there a way to add data to the URL hash while browser is refreshing?
I've got a page with some accordions and other dynamic content and want to properly preserve the user's scroll position when they refresh the page. (Otherwise the browser autoscrolls back to "...
-2
votes
1
answer
701
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
1
answer
47
views
problem -> npm http-server dowloading file
I'm new to npm and I tried to start a new simple project. Initially it just had index.html with h1 Hello world. When I try to start a server using http-server ./index.html it works to some extent but ...
0
votes
0
answers
40
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
1
answer
30
views
How to send a message from anonymous script executed with `browser.scripting.executeScript`?
I'm using browser.scripting.executeScript() and i need to send a message to webext background script/service worker script. Usually it means using browser.runtime.sendMessage(), but browser is ...
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 ...
0
votes
1
answer
140
views
How to set Access-Control-Allow-Origin dynamically from incoming Origin header in integration response?
I'm working on an AWS API Gateway setup. I need to dynamically set the Access-Control-Allow-Origin header in the response based on the incoming Origin header from the client request.
This is necessary ...
-2
votes
2
answers
90
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
...
-1
votes
1
answer
50
views
How to set result on a Promise outside of its constructor callback?
How do you resolve/reject a Promise outside of the constructor callback? My goal is to return a Promise that will later be resolved/rejected in the middle of a promise chain. E.g.,
function ...
0
votes
0
answers
34
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
...
0
votes
1
answer
75
views
How to kill processes in javascript on web?
How do i run batch from the web locally?
I'm trying to kill a process locally (sas.exemy own file) but from web.
1
vote
0
answers
107
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
111
views
Trying To Run Playwright Tests On Specific Chrome Profile
I have tried multiple AI LLMs and unfortunately I am still stack after hours of working. I am using Microsoft's .NET NUnit Playwright project and unfortunately it seems that my part of my .runsettings ...
0
votes
0
answers
25
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 ...
-1
votes
1
answer
141
views
How to get the absolute position on the trackpad in a browser?
I want to build a website that allows users to map their trackpad input directly to an SVG element on the screen. On this website, we can turn on a mode: Touching a point on the trackpad should move ...