Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Issue 1364113003: Only (and always) put URLs in NSLinkAttributeName. (Closed)

Created:
5 years, 3 months ago by Avi (use Gerrit)
Modified:
5 years, 2 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, rouslan+autofill_chromium.org, tfarina, vabr+watchlist_chromium.org, jdonnelly+autofillwatch_chromium.org, bondd+autofillwatch_chromium.org, noyau+watch_chromium.org, chromium-apps-reviews_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@infobar1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Only (and always) put URLs in NSLinkAttributeName. When the NSLinkAttributeName attribute is used, AppKit automatically turns it into a draggable link. If anything but a URL is used, that link then becomes a bomb to explode drag targets. This change ensures that only URLs are put in there, and that a URL is always put in there. BUG=528228 TEST=existing tests Committed: https://crrev.com/7c0b59d9c9dfba08fe924dd0ee219ec94b65bb87 Cr-Commit-Position: refs/heads/master@{#351805}

Patch Set 1 #

Total comments: 2

Patch Set 2 : strictly greater than #

Patch Set 3 : stray deletion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -25 lines) Patch
M chrome/browser/ui/cocoa/autofill/autofill_notification_controller.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_sync_promo_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/confirm_bubble_cocoa.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/alternate_nav_infobar_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/confirm_infobar_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/save_password_infobar_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/one_click_signin_view_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_confirmation_view_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_view_controller.mm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_view_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.mm View 1 chunk +1 line, -1 line 0 comments Download
M ui/base/cocoa/controls/hyperlink_text_view.h View 1 chunk +2 lines, -3 lines 0 comments Download
M ui/base/cocoa/controls/hyperlink_text_view.mm View 1 2 chunks +9 lines, -2 lines 0 comments Download
M ui/base/cocoa/controls/hyperlink_text_view_unittest.mm View 3 chunks +4 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 25 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1364113003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1364113003/1
5 years, 3 months ago (2015-09-23 23:13:34 UTC) #2
Avi (use Gerrit)
Pink, I don't know who would be a good reviewer here. You commented on the ...
5 years, 3 months ago (2015-09-23 23:15:51 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-24 00:14:51 UTC) #6
noyau (Ping after 24h)
https://codereview.chromium.org/1364113003/diff/1/ui/base/cocoa/controls/hyperlink_text_view.h File ui/base/cocoa/controls/hyperlink_text_view.h (right): https://codereview.chromium.org/1364113003/diff/1/ui/base/cocoa/controls/hyperlink_text_view.h#newcode31 ui/base/cocoa/controls/hyperlink_text_view.h:31: withURL:(NSString*)url Driving by: Is there a reason why this ...
5 years, 3 months ago (2015-09-24 07:54:05 UTC) #8
vabr (Chromium)
Thanks for fixing the drag&drop problem, LGTM for passwords files. I filed http://crbug.com/535458 for our ...
5 years, 3 months ago (2015-09-24 08:47:17 UTC) #10
pink (ping after 24hrs)
+erik and andre, one of these two can help.
5 years, 3 months ago (2015-09-24 11:07:22 UTC) #12
Avi (use Gerrit)
https://codereview.chromium.org/1364113003/diff/1/ui/base/cocoa/controls/hyperlink_text_view.h File ui/base/cocoa/controls/hyperlink_text_view.h (right): https://codereview.chromium.org/1364113003/diff/1/ui/base/cocoa/controls/hyperlink_text_view.h#newcode31 ui/base/cocoa/controls/hyperlink_text_view.h:31: withURL:(NSString*)url On 2015/09/24 07:54:05, noyau wrote: > Driving by: ...
5 years, 3 months ago (2015-09-24 14:24:57 UTC) #13
Andre
LGTM
5 years, 3 months ago (2015-09-24 16:28:48 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1364113003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1364113003/20001
5 years, 2 months ago (2015-09-30 23:56:35 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1364113003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1364113003/40001
5 years, 2 months ago (2015-09-30 23:58:15 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/114781) win_chromium_x64_rel_ng on ...
5 years, 2 months ago (2015-10-01 00:05:12 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1364113003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1364113003/40001
5 years, 2 months ago (2015-10-01 14:55:27 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-10-01 15:12:04 UTC) #24
commit-bot: I haz the power
5 years, 2 months ago (2015-10-01 15:13:20 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7c0b59d9c9dfba08fe924dd0ee219ec94b65bb87
Cr-Commit-Position: refs/heads/master@{#351805}

Powered by Google App Engine
This is Rietveld 408576698