Comments (2)
Should the Desktop Agent API (window.fdc3) be injected into pages running in iframes and windows opened with window.open?
Currently, the standard documentation doesn't take a view on this and it is therefore largely an implementation decision for a DA. I have seen solutions that can and do make FDC3 available in both cases - but not in a standard form.
However, this is something that the "FDC3 for the Web" discussion group has addressed as a use case. In web browser, windows opened via a Desktop Agent would almost always be opened via window.open or embedded in iframes and the current proposal to support includes a step requiring them to self-identify themselves (by referring to an appD record) with a reasonable, if minimal, validation step that confirms that identity (at least as far as confirming a matching domain). This is expected to be replaced in future with more detailed validation based on what the "Identity & Threat modelling" discussion group proposes and is eventually adopted.
The proposed procedure is also usable in a Desktop container and would allow those to also support these cases, by identifying genuine FDC3 applications and associating them with a configuration.
Yes, if they are from the same origin. Arbitrary web pages should not be considered to be FDC3 apps, therefore the Desktop Agent APIs should not be available for them unless they were opened through the FDC3 API.
This is the simplest solution with the current version of the FDC3 standard.
If so, should they 'inherit' the instanceId of the parent window?
No. Shared instanceIds would make it impossible to implement intent resolution or any other API where an instanceId is provided by the caller, because the Desktop Agent could not decide which window to communicate with.
I agree, they absolutely should not inherit instanceIds. The FDC3 for the Web proposal goes to some length to ensure that this does not happen, accidentally or otherwise. SessionStorage (used in the proposal to store instance details) gets cloned during a window.open to the same domain, so we've had to come up with a procedure that's not vulnerable to that. It is based on the use of BOTH an instanceUuid (a shared secret associated with the instance Id, saved in SessionStorage) and the comparison of WindowProxy objects (the window object proxy returned by calls to window.open). Each procedure has an edge case (cloning of storage, windows that have navigated to a different path or subdomain) - but combined they provide a reliable check for whether a window represents the same instance of an app as seen previously.
Does that answer your question?
from fdc3.
Closing due to inactivity. Feel free to re-open or convert to discussion if you have further questions on this topic
from fdc3.
Related Issues (20)
- Adding Event Listeners on Private Channel HOT 1
- Inconsistent Use of Promises HOT 6
- Bug or Inconsistency? HOT 1
- Question: AddContextListenerResponsePayload does not contain channelId HOT 2
- FDC3 monorepo HOT 2
- Use Cases and Workflows Discussion Group - 1st August 2024 HOT 5
- Make Listener.unsubscribe() async for consistency HOT 7
- Simplify Web Connection Protocol HOT 7
- IFramePositioning HOT 12
- RaiseIntentResultResponse HOT 5
- Question: resolvers / channel selectors UI HOT 5
- Spelling Error: FindIntentsByContextsResponse HOT 1
- broadcastEvent on no channel HOT 7
- Adding Channel State For JoinUserChannel / AddContextListener HOT 1
- Question: IntentEvent has no targetApp property HOT 3
- Question: How does DesktopAgentProxy remove event listener? HOT 3
- window.origin Requirement HOT 2
- Standard WG Meeting - August 22nd, 2024 HOT 8
- Add .NET docs for Events to API reference HOT 1
- GetAgentParams Not Optional HOT 1
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 fdc3.