Page MenuHomePhabricator

OOjs UI: OO.ui.ButtonWidget default target should not be "_blank"
Closed, ResolvedPublic

Description

Config option for target should default to empty or _self, not _blank.


Version: unspecified
Severity: normal

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 4:00 AM
bzimport added a project: OOUI.
bzimport set Reference to bz73452.

richhiey.thomas wrote:

Changed the config for target to '_self'. Is this okay?

Attached:

(In reply to Richhiey from comment #1)

Created attachment 17148 [details]
Changed the config for target to '_self'. Is this okay?

That looks good; do you want to submit that for code review as a patch?

https://www.mediawiki.org/wiki/Gerrit/Tutorial has instructions if you've not done this before.

Attached:

richhiey.thomas wrote:

Yes sure. Thanks :)

Change 176488 had a related patch set uploaded (by Bartosz Dziewoński):
[BREAKING CHANGE] ButtonWidget: Don't default 'target' to '_blank'

https://gerrit.wikimedia.org/r/176488

Patch-For-Review

As far as I can tell, this "breaking change" doesn't actually break any of the code I know of. Seems that nobody uses the href config parameter for ButtonWidget at all (other than our own OOUI demo).

Change 176488 merged by jenkins-bot:
[BREAKING CHANGE] ButtonWidget: Don't default 'target' to '_blank'

https://gerrit.wikimedia.org/r/176488

Jdforrester-WMF moved this task from Next-up to Doing on the OOUI board.
Jdforrester-WMF set Security to None.