Bug Tracker

Ticket #8292 (closed enhancement: wontfix)

Opened 4 years ago

Last modified 3 years ago

Naming all eval script in Google Chrome.

Reported by: Soul_Master Owned by: Soul_Master
Priority: low Milestone: 1.next
Component: misc Version: 1.5
Keywords: Cc:
Blocking: Blocked by:

Description

I'm not sure that latest jQuery build support this. But I just see some document about dynamic loading script or eval. You can specify name of eval script in Google Chrome by adding its name at the end of eval text.

 http://code.google.com/intl/th/chrome/devtools/docs/scripts-breakpoints.html

Change History

comment:1 Changed 4 years ago by snover

  • Owner set to Soul_Master
  • Status changed from new to pending

I have no idea what you’re asking for. Please provide a test case demonstrating whatever it is you want.

comment:2 Changed 4 years ago by Soul_Master

  • Status changed from pending to new

If I don't misunderstand something, when we try to use html function to replace content in some Dom element, jQuery will search for all script block/tag in html and execute script block/tag by Eval function.

http://code.google.com/intl/th/chrome/devtools/docs/scripts-breakpoints-files/pauseInDynamicScript.png

As you see, Google Chrome 9 able to name the dynamic loading script by adding some comments at the end of script. For example,

//@ sourceURL=jqgrid.js

PS. You might add this enhancement to JSON parse.

comment:3 Changed 4 years ago by jitter

  • Priority changed from undecided to low
  • Resolution set to wontfix
  • Status changed from new to closed
  • Component changed from unfiled to misc

This is a functionality that:

  • only developers will need while debugging
  • is only useful for Chrome users
  • is of limited use as the names would need to be randomly generated

So I think this is nice for Chrome users and can be monkey patched onto the methods where you are interested but isn't something that belongs into jQuery core.

Note: See TracTickets for help on using tickets.