Do you mean both do not work or do they not work when you use them together in some way?
What does 'not work' mean'?
I use postMessage sucessfully in this test
to communicate between the main window and a second window opened with window.open().
(window.open() and especially resizeTo() caused several troubles though)
I haven't used clipboardData for a long time, so no experience here.