nsCOMPtr<nsIDOMWindowInternal> win(do_QueryWrappedNative(wrapper));
GetChildFrame(nsIXPConnectWrappedNative *wrapper, jsval id){  nsCOMPtr<nsIDOMWindowInternal> win(do_QueryWrappedNative(wrapper));  nsCOMPtr<nsIDOMWindowCollection> frames;  win->GetFrames(getter_AddRefs(frames));  nsIDOMWindow *frame = nsnull;  if (frames) {    frames->Item(JSVAL_TO_INT(id), &frame);  }  return frame;}