Bug 224575 - [GTK] Anchor links don't work when opened in new web views
Summary: [GTK] Anchor links don't work when opened in new web views
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-14 14:04 PDT by Michael Catanzaro
Modified: 2021-04-14 14:04 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2021-04-14 14:04:57 PDT
Visit https://docs.python.org/3/library/stdtypes.html#memoryview

It says: "Create a memoryview that references obj. obj must support the buffer protocol. Built-in objects that support the buffer protocol include bytes and bytearray." The words "bytes" and "bytearray" are both anchor links. The bytes link points to:

https://docs.python.org/3/library/stdtypes.html#bytes

If you load that URL in an existing tab, or in a new tab via webkit_web_view_load_uri(), WebKit will scroll to the correct anchor point in stdtypes.html and all is well. But if you Ctrl+click or right click on the link and load it in a new tab via the context menu, the anchor link does not work properly and you're taken to a random point on the page.