you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 6 months ago* (2 children)

You don't have to kill much functionality at all. Scripts that need to access that data should simply live in a sandbox with no network access. They can still do full computational layout.

I have done exclusively web development work.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 6 months ago (1 child)

    So you're going to make it illegal to call getBoundingClientRect and then pass that information to fetch through any mechanism?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 6 months ago*

    Essentially yes. Basically, think of two JS sandboxes that can manipulate the same DOM. One can make requests, but cannot retrieve local layout data. The other can get layout data, but not make requests. Both can set layout data.

    Web developers can use the former 99% of the time, and the latter for more precise work.

  • source
  • parent