Reviewed by Maciej.
[WebKit-https.git] / WebKit / WebView.subproj / WebHTMLView.m
index 897be98e9f66a464602d65dc569bebd205c5660d..3f30728d481f07433f42d67163573402c965bd16 100644 (file)
@@ -484,6 +484,10 @@ void *_NSSoftLinkingGetFrameworkFuncPtr(NSString *inUmbrellaFrameworkName,
 {
     if (range == nil || [range collapsed])
         return NO;
+    
+    if (![[self _bridge] canDeleteRange:range])
+        return NO;
+        
     WebView *webView = [self _webView];
     return [[webView _editingDelegateForwarder] webView:webView shouldDeleteDOMRange:range];
 }