mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
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:
parent
3d15214018
commit
3d818867c8
@ -256,7 +256,8 @@ nsInProcessTabChildGlobal::PreHandleEvent(nsEventChainPreVisitor& aVisitor)
|
||||
{
|
||||
aVisitor.mCanHandle = true;
|
||||
|
||||
if (mIsBrowserFrame) {
|
||||
if (mIsBrowserFrame &&
|
||||
(!mOwner || !nsContentUtils::IsInChromeDocshell(mOwner->OwnerDoc()))) {
|
||||
if (mOwner) {
|
||||
nsPIDOMWindow* innerWindow = mOwner->OwnerDoc()->GetInnerWindow();
|
||||
if (innerWindow) {
|
||||
|
Loading…
Reference in New Issue
Block a user