Questions tagged [browser-api]

26 questions
0
votes
1 answer

Why cant we show custom messages in onBeforeUnload dialogs

I see that most modern browsers have removed the ability to pass custom message in onbeforeunload dialogs. (feature removed in chrome: https://www.chromestatus.com/feature/5349061406228480). So i have the following questions.. Why have the modern…
stallion
  • 1,901
  • 9
  • 33
  • 52
0
votes
1 answer

Deprecated `Headers.getAll()` API reimplementation

The Headers.getAll() method seems to have provided a reliable way of parsing multivalued http headers. However, according to documentation the method has been deprecated and removed from specification. There seems to be no method left that would…
cyberixae
  • 843
  • 5
  • 15
0
votes
1 answer

Get the performance of an embedded iFrame in Angular

I am looking for a way to check if my iframe is a bottleneck (and if so, switch to anothers source) Is there a way to achieve this with the Performance API? I currently have this on my (Angular) Frontend:
PrimuS
  • 2,505
  • 6
  • 33
  • 66
0
votes
1 answer

Deno - access web apis

I am bundling my Deno code for the web using deno bundle and I know the browser has RTCPeerConnection from the WebRTC API which I would like to use. I thought Deno was aiming to have web compatibility, so I don't see why WebRTC is not planned to be…
David Callanan
  • 5,601
  • 7
  • 63
  • 105
0
votes
1 answer

What is meant by "Browser API" in React js?

What is meant by Browser-API in react js? Broswer API in useEffect Hooks?
SRO
  • 1
  • 2
0
votes
0 answers

How browser api handles multiple asynchronous functions like setTimeOuts?

I have following code in javascript : var x = 1; console.log('printing x'+x); setTimeout(()=>{console.log("first timeout")},2000); setTimeout(()=>{console.log("second timeout")},0); I know that 'second timeout' is printed before 'first timeout'. I…
Prabin Upreti
  • 498
  • 5
  • 16
0
votes
4 answers

Why are browser api event subscribed to in componentDidMount in React?

In this talk https://reactjs.org/docs/hooks-intro.html the speaker write codes that resemble this : class SomeComponent extends React.Component { constructor(props){ super(props) this.handleResize.bind(this) } …
redpanda
  • 91
  • 6
0
votes
1 answer

Get the url of active tab of a browser in C on OSX

Is it possible to get the URL of current tab of a Browser in C? I can do it using AppleScript but I want to use C language. Maybe I calling system, I don't know.help me please
user7511911
0
votes
2 answers

How to track the resolution/aspect ratio of a WebRTC VideoStream in Chrome?

My webapp displays a realtime video stream coming from a mobile device. I need to take action when the video orientation changes. Preferably I would want to subscribe for an event, but I did not find any such event on the MediaStreamTrack…
Gabor
  • 1,656
  • 1
  • 16
  • 28
0
votes
1 answer

How do I determine if a new ReactJS session and/or Browser session has started?

Each time a user navigates to an URL I plan on storing the "lastUrl" in localStorage. When they return to the site, under some conditions which are not important, I want to immediately transition them to the lastUrl that they were visiting. I'm…
Guy
  • 65,082
  • 97
  • 254
  • 325
-1
votes
1 answer

when I change the cookie Expires / Max-Age to previous then current time from chrome dev tools application

I opened the chrome dev tool and from application Cookies, I changed the Cookie Expires / Max-Age to previous time then current time. My question is when i change the Expires / Max-Age, its instantly reflecting and logged-out from website. if logout…
1
2