[Webkit-unassigned] [Bug 26870] New: Enhancement: add -[WebView setMaintainsInactiveSelect:] method

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 30 16:26:43 PDT 2009


           Summary: Enhancement: add -[WebView setMaintainsInactiveSelect:]
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit API
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: opendarwin at lapcatsoftware.com

The WebView API has a getter -(BOOL)maintainsInactiveSelection but no setter
-(void)setMaintainsInactiveSelection:(BOOL)flag. The current implementation of
the getter is -(BOOL)maintainsInactiveSelection { return NO; }. However,
WebHTMLView calls -[WebView maintainsInactiveSelection], and if you subclass
WebView and override maintainsInactiveSelection to return YES, the webview will
indeed maintain the inactive selection.

For a browser with a tab interface, it is quite desirable to be able to
maintain the selection when switching between tabs. Indeed, Safari does exactly
this, so I presume that Safari subclasses WebView and overrides

It would be nice to have a setter -[WebView setMaintainsInactiveSelection:] so
you could set that behavior without having to subclass WebView.

P.S. If it's decided that this enhancement is not to be implemented, then at
the very least the WebKit API documentation should be clarified to say that
-[WebView maintainsInactiveSelection] is meant for subclasses to override.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list