NS_ERROR_XPC_BAD_OP_ON_WN_PROTO error fixed in firefox v21, it was because requestFrame was not in context of window.