Bug 1101595 - [shadow-dom] <input> doesn't emit 'input' event when inside shadow-root, r=wchen
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Thu, 20 Nov 2014 02:23:50 +0200
changeset 216568 3b98db519502fd775ea756112bf94c254180d2d7
parent 216567 8681a64218039f4bc6ea8113c522a6c2acee209e
child 216569 80ca3115ec1c20ed804b0d410504541682af23e6
push idunknown
push userunknown
push dateunknown
reviewerswchen
bugs1101595
milestone36.0a1
Bug 1101595 - [shadow-dom] <input> doesn't emit 'input' event when inside shadow-root, r=wchen
editor/libeditor/nsEditor.cpp
--- 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;
     }