summaryrefslogtreecommitdiff
path: root/ext/mixed/js/comm.js
Commit message (Collapse)AuthorAge
* Frame ancestry handler refactor (#1352)toasted-nutbread2021-02-06
| | | | | | | | | | | * Validate source window before handling messages * Add unregisterHandler to CrossFrameAPI * Refactor the process FrameAncestryHandler uses to get ancestor frame IDs * Store a mapping of child frame information * Update getFrameAncestryInfo to only run once
* Update comm message errors to include what the action was (#1312)toasted-nutbread2021-01-25
|
* Core refactor (#1207)toasted-nutbread2021-01-07
| | | | | | | | | | | | | | | | | | | | | | | | | * Copy set intersection functions * Remove unused functions * Simplify url check * Remove parseUrl * Simplify stringReverse * Remove hasOwn due to infrequent use * Rename errorToJson/jsonToError to de/serializeError For clarity on intended use. * Fix time argument on timeout * Add missing return value * Throw an error for unexpected argument values * Add documentation comments
* Update copyright year (#1194)toasted-nutbread2021-01-01
| | | | | * Update copyright year * Remove redundant Author info
* Fix cross frame comm issues (#765)toasted-nutbread2020-09-04
| | | | | | | * Send ack before sending error response * Fix error response not being JSON'ified * Use _sendResult
* Force targetTabId to be null if not a number (#678)toasted-nutbread2020-07-19
|
* Port name details (#667)toasted-nutbread2020-07-18
| | | | | | | | | * Use a stringified JSON details object for extension port names * Fix incorrect frame ID check * Add support for connecting to different tabs * Add function for invoking on a different tab
* Message handler refactor (#660)toasted-nutbread2020-07-11
| | | | | | | | | | | * Refactor searchQueryUpdate action * Use standard message handler style * Use name "promiseOrResult" for consistency * Use standard message handler convention for Yomichan message handlers * Use common message handler invoker
* Popup crossFrame communication (#658)toasted-nutbread2020-07-10
| | | | | | | | | * Add support for dynamic message handlers * Pass messages using crossFrame.invoke instead of contentWindow.postMessage * Set up async handlers * Simplify configure call and response
* Extension unload detection (#647)toasted-nutbread2020-07-03
| | | | | | | * Update how extension unload is detected * Remove event handlers and use yomichan.isExtensionUnloaded instead * Update terminology
* Cross frame communication (#531)toasted-nutbread2020-05-23
* Set up new cross-frame port connector * Create classes for cross-frame API invocation with replies * Remove event listeners on disconnect