Stupid Safari

It used to be that dragging from the URL bar of one window to a textarea in another would do the only sane thing: paste the URL as text. Now it opens a Finder window displaying a folder called "WebKitDropDestination-8FCUXgO8" with a .webloc file in it.

Convenient.

This started a couple of months ago. Is there some way I can make it stop doing this?

Dragging from an HREF still works properly, it seems to be only the URL bar that has developed this new craziness.

Generally, I'm impressed with how poorly macOS handles dragging and dropping of text, and always has. There's that constant struggle where you have to click and wait juuuust long enough before moving. It works so badly that it makes me wonder if I'm the only person who ever drags text.

Also, whoever started the new trend of text fields in dialog boxes selecting everything by default as soon as you focus there can just fuck right off into the Sun. Looking at you, iTunes.

Tags: , , ,

5 Responses:

  1. Rob Ferguson says:

    For what it's worth: if I drag from the favicon or from anywhere within the URL bar when nothing is selected, I get the behaviour you're describing.

    Alternatively, if I drag from the text part of the URL in the URL bar when the text is selected (as in "Mouse-down and mouse-up in the URL bar, then mouse-down on the text & start dragging"), it pastes as text.

    That's insane.

  2. Nicholas Riley says:

    Drag and drop of text was one of those areas where classic Mac OS/Carbon had a better UI (particularly with the translucent Drag Manager from System 7.5.3), Cocoa/NeXT had a worse UI involving the drag delay and the Cocoa/NeXT model "won" in Mac OS X. We're still paying for it.

    That said, I do not get any drag delay when dragging a URL from the Safari address bar when it starts out not focused. When it starts out focused (i.e., while you're editing it as left-justified text rather than a centered URL), you have to press and hold until the drag delay elapses and cursor changes to an arrow, then drag.

    You can adjust the drag delay with defaults write -g NSDragAndDropTextDelay <delay in ms>.

    The behavior dragging the URL to a HTML textarea in Safari definitely seems like a WebKit/Safari bug; I was able to reproduce it too. If you click once in the address bar or use Command-L first so you are dragging text rather than a URL, it should do what you expect.

  3. Elusis says:

    Also, whoever started the new trend of text fields in dialog boxes selecting everything by default as soon as you focus there can just fuck right off into the Sun. Looking at you, iTunes.

    "New"? Pretty sure I filed a bug report about this re: Mozilla approximately 100,000 years ago, which ultimately was labeled wontfix.

    MS Word's assumption that it knows more than I do about what text I want to select has aldo been driving me crazy at least since we still bought CDs.

  4. Aaron says:

    You're supposed to be able to drag text?

  5. dzm says:

    Seems like it's tied to what the receiving application wants to do with it.

    If I drag the URL from this window into my Mail app I end up with a 37k HTML document attached to the message. If I drag the same URL to a text editor (Sublime, in my case) I get a URL entered into the document I dragged it to.

    According to developer docs it seems as though the destination is responsible for declaring what data types it will accept and then figuring out what to do with it.

Leave a Reply

Your email address will not be published. But if you provide a fake email address, I will likely assume that you are a troll, and not publish your comment.

You may use these HTML tags and attributes: <a href="" title=""> <b> <blockquote cite=""> <code> <em> <i> <s> <strike> <strong> <img src="" width="" height="" style=""> <iframe src="" class=""> <video src="" class="" controls="" loop="" muted="" autoplay="" playsinline=""> <div class=""> <blink> <tt> <u>, or *italics*.