https://bugzilla.wikimedia.org/show_bug.cgi?id=47772

       Web browser: ---
            Bug ID: 47772
           Summary: ve.ce.Surface.getSelectionRect() throws errors in
                    Opera
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: ContentEditable
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
            Blocks: 37861
    Classification: Unclassified
   Mobile Platform: ---

ve.ce.Surface.getSelectionRect() throws errors in Opera. I think this is the
root cause of bug 37861 and likely various other issues.

It seems that rangySel.get{Start,End}DocumentPos consistently fails in Opera,
because nativeRange.getClientRects() inside of the private
createClientBoundaryPosGetter() function returns an empty collection. This
causes the "Cannot get position for range ..." error to be thrown.

I'm still investigating the why, I'm just putting this here. Changing
getSelectionRect() to just always return some static value seems to work (or at
least not fail miserably anymore).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to