Comments (6)
Hi spstratis, thanks for the feedback!
You are absolutely right, this Chrome implementation is based on the assumption that there will be app loaded by the custom protocol handler and thus will steal the focus from the window. Could you tell me what the behavior of your protocol handler in this case?
from custom-protocol-detection.
For me the protocol handler is opening a windows app. It opens it successfully yet the fail call back still fires off as if focus is not being put on to the app the is opening.
from custom-protocol-detection.
That sounds strange. Could you do a bit more debugging to see whether the onBlur method is being triggered at all? One possibility is that the app is slow to load (need more than a second) or the loaded app doesn't take the focus at all.
from custom-protocol-detection.
Yea I was thinking of adding additional time to the timeout and checking to see if that makes a difference. I'll let you know the result of some additional debugging.
from custom-protocol-detection.
So far it looks like setting the time out to 2000 takes care of the issue.
from custom-protocol-detection.
You were right the loaded app was not taking focus. I notice from time to time it will still hit the failure state but I believe that may be due to propagation on the button click to launch the app. You should feel free to close this defect. Thanks for responding back!
from custom-protocol-detection.
Related Issues (20)
- False positive protocol detection in Firefox after install-uninstall of custom protocol HOT 2
- Protocol detection in Edge in Windows 10 doesn't work HOT 4
- firefox NS_ERROR_FAILURE HOT 3
- Automated tests
- Firefox 53 not working HOT 1
- Does not work with Safari HOT 3
- Is it possible to wait until browser custom protocol confirmation to be accepted? HOT 2
- Protocol detection does not fail on Firefox Quantum HOT 4
- Need to control timeouts for some browsers HOT 1
- Firefox Version 64.0 HOT 12
- Div in example
- the bug in Firefox HOT 1
- Open the client's API for success or failure callback?
- Uncaught SyntaxError: Lexical declaration cannot appear in a single-statement context HOT 1
- The failure callback is called even when protocol is defined HOT 1
- After the 85 version of Google browser,window can‘t monitor blur of alert HOT 5
- my Page in an iframe occur error DOMException: Blocked a frame with origin "null" from accessing a cross-origin frame HOT 1
- uri何如获取的 HOT 1
- 为什么不管传入什么uri都不会触发失败回调
- ERROR ReferenceError: onBlur is not defined while tried to open custom protocol on edge and chrome on laest versions using custom-protocol-check npm package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from custom-protocol-detection.