Bug 757137, part 4: Keep the chrome document on the event target chain when mozbrowser is in a chrome document. r=smaug

This commit is contained in:
Chris Jones 2012-06-20 12:25:23 -07:00
parent 0151bf4f96
commit dd7fb3f7e6

View File

@ -256,7 +256,8 @@ nsInProcessTabChildGlobal::PreHandleEvent(nsEventChainPreVisitor& aVisitor)
{ {
aVisitor.mCanHandle = true; aVisitor.mCanHandle = true;
if (mIsBrowserFrame) { if (mIsBrowserFrame &&
(!mOwner || !nsContentUtils::IsInChromeDocshell(mOwner->OwnerDoc()))) {
if (mOwner) { if (mOwner) {
nsPIDOMWindow* innerWindow = mOwner->OwnerDoc()->GetInnerWindow(); nsPIDOMWindow* innerWindow = mOwner->OwnerDoc()->GetInnerWindow();
if (innerWindow) { if (innerWindow) {