I believe RuntimeContext can be obtained from  WebContents and the opposite. Please pass one of them.