Giter Club home page Giter Club logo

Comments (6)

tomayac avatar tomayac commented on June 16, 2024 1

For some reason the native feature "thinks" the text is unlinkable:

Screenshot 2023-07-18 at 19 00 34

However, a manually created link works just fine: https://service.unece.org/trade/locode/gb.htm#:~:text=NRW.

The extension blocks the page and the tab becomes unresponsive.

I have filed https://crbug.com/1465883. The native Chrome implementation and the extension use essentially the same algorithm for creating links. Looks like there's an issue.

from link-to-text-fragment.

tomayac avatar tomayac commented on June 16, 2024 1

If you ever need to wait for a link to be created, something is wrong with the algorithm, which is outside of this repo (see the link to the algorithm repo above). Also, there's no way to know how long you'd have to wait, so at best, we could show a meaningless spinner.

from link-to-text-fragment.

tomayac avatar tomayac commented on June 16, 2024

Missing context: the extension uses the algorithm implemented in https://github.com/GoogleChromeLabs/text-fragments-polyfill.

from link-to-text-fragment.

RokeJulianLockhart avatar RokeJulianLockhart commented on June 16, 2024

@tomayac, why close the issue? I still think that a progress indicator would be really useful, as would asynchronous operations (although perhaps better in a separate issue?)

from link-to-text-fragment.

RokeJulianLockhart avatar RokeJulianLockhart commented on June 16, 2024

Yeah, @tomayac, even a spinner would have made diagnosing the issue easier.

from link-to-text-fragment.

tomayac avatar tomayac commented on June 16, 2024

This was really an exceptional case, where for some reason the entire page got blocked. The Chrome bug is the place to star if you want to follow up. Thank you.

from link-to-text-fragment.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.