Bug 749086 - 2/3: DOM & IPC changes.
Bug 749086 - 3/3: fix test cases.