forked from hotwired/turbo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let developers access the initiator element in visit/fetch events (#2)
* Prevent errors when communicating with iOS webview. To successfully communicate with the iOS view, messages need to be of a type supported by the structuredClone algorithm. The new TransferableVisitOptions type ensures that VisitOptions passed to the adapter conform to this type. The StructuredCloneValue type has been created based on https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm#supported_types * Help clarify VisitOptions values unsupported by postMessage * Let developers access the initiator element in visit/fetch events * Ensure all original VisitOptions are passed to Visit constructor * Update frame test event targets * Fix errors when navigating back/forward. Ensure Navigator#currentVisitOptions is always present * Contain VisitOption munging within Navigator * Lint * Reset currentVisitOptions even if visit proposal fails * Private methods * Raise error if visit options are not transferable to native adapters * Clarify proposed visit options * Lint * Sanitize all values * Ensure proposedVisitOptions is always set * Dispatch visit events on form elements * Fix merge * Unnecessary eslint rule
- Loading branch information
1 parent
f01d95d
commit c458b47
Showing
5 changed files
with
72 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters