Feature #967 ยป remove-target-blank.patch
| src/3rdparty/chromium/third_party/blink/renderer/core/html/html_anchor_element.cc | ||
|---|---|---|
|
frame->MaybeLogAdClickNavigation();
|
||
|
// Patching this function to use the base target for both empty targets and "_blank"
|
||
|
// causes hyperlinks that used to open in a new tab by default to instead default
|
||
|
// to opening in the current tab.
|
||
|
Frame* target_frame =
|
||
|
frame->Tree()
|
||
|
.FindOrCreateFrameForNavigation(
|
||
|
frame_request,
|
||
|
target.IsEmpty() ? GetDocument().BaseTarget() : target)
|
||
|
(target.IsEmpty() || (target == "_blank")) ? GetDocument().BaseTarget() : target)
|
||
|
.frame;
|
||
|
// If hrefTranslate is enabled and set restrict processing it
|
||