Bug 1101595 - [shadow-dom] <input> doesn't emit 'input' event when inside shadow-root, r=wchen
--- a/editor/libeditor/nsEditor.cpp
+++ b/editor/libeditor/nsEditor.cpp
@@ -1759,17 +1759,17 @@ public:
{
}
NS_IMETHOD Run()
{
// Note that we don't need to check mDispatchInputEvent here. We need
// to check it only when the editor requests to dispatch the input event.
- if (!mTarget->IsInDoc()) {
+ if (!mTarget->IsInComposedDoc()) {
return NS_OK;
}
nsCOMPtr<nsIPresShell> ps = mEditor->GetPresShell();
if (!ps) {
return NS_OK;
}