/ClickClack

Proof of concept of message passing between two Safari extensions.

Primary LanguageJavaScript

This is a simple demonstration of the use of window.postMessage to pass messages between two separate Safari extensions. There are a pair of extensions here, named Click (download) and Clack (download). Each extension has a toolbar button. Clicking one extension's toolbar button will cause the other extension to flip its toolbar button image.

Note that message passing will fail if there is not a valid document in the current tab.