Merge remote-tracking branch 'origin/pr/3624'
This commit is contained in:
commit
54713f57e5
@ -331,13 +331,13 @@ window._qutebrowser.webelem = (function() {
|
||||
|
||||
// Function for returning a selection to python (so we can click it)
|
||||
funcs.find_selected_link = () => {
|
||||
const elem = window.getSelection().anchorNode;
|
||||
const elem = window.getSelection().baseNode;
|
||||
if (elem) {
|
||||
return serialize_elem(elem.parentNode);
|
||||
}
|
||||
|
||||
const serialized_frame_elem = run_frames((frame) => {
|
||||
const node = frame.window.getSelection().anchorNode;
|
||||
const node = frame.window.getSelection().baseNode;
|
||||
if (node) {
|
||||
return serialize_elem(node.parentNode, frame);
|
||||
}
|
||||
|
@ -225,15 +225,11 @@ Feature: Searching on a page
|
||||
Then the following tabs should be open:
|
||||
- data/search.html (active)
|
||||
|
||||
# Following a link selected via JS doesn't work in Qt 5.10 anymore.
|
||||
@qt!=5.10
|
||||
Scenario: Follow a manually selected link
|
||||
When I run :jseval --file (testdata)/search_select.js
|
||||
And I run :follow-selected
|
||||
Then data/hello.txt should be loaded
|
||||
|
||||
# Following a link selected via JS doesn't work in Qt 5.10 anymore.
|
||||
@qt!=5.10
|
||||
Scenario: Follow a manually selected link in a new tab
|
||||
When I run :window-only
|
||||
And I run :jseval --file (testdata)/search_select.js
|
||||
|
Loading…
Reference in New Issue
Block a user