mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
0151bf4f96
commit
dd7fb3f7e6
@ -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