WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
93271
Web Inspector: Use and process the actual ScriptId in the protocol EventListener object
https://bugs.webkit.org/show_bug.cgi?id=93271
Summary
Web Inspector: Use and process the actual ScriptId in the protocol EventListe...
Alexander Pavlov (apavlov)
Reported
2012-08-06 07:46:39 PDT
Currently, EventListener object's "location" field transferred through the protocol contains the script URL, not the script id.
Attachments
Patch
(22.42 KB, patch)
2012-09-18 09:02 PDT
,
Alexander Pavlov (apavlov)
no flags
Details
Formatted Diff
Diff
Patch
(15.02 KB, patch)
2012-09-20 00:50 PDT
,
Alexander Pavlov (apavlov)
yurys
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Alexander Pavlov (apavlov)
Comment 1
2012-08-06 09:44:13 PDT
Currently, it is impossible to rely on scriptId's rather than source URLs, as scripts are not registered with the frontend until the debugger is explicitly enabled by the user.
Alexander Pavlov (apavlov)
Comment 2
2012-09-18 09:02:25 PDT
Created
attachment 164569
[details]
Patch
Vsevolod Vlasov
Comment 3
2012-09-20 00:20:00 PDT
Comment on
attachment 164569
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=164569&action=review
> Source/WebCore/bindings/js/ScriptEventListener.cpp:109 > +bool eventListenerHandlerLocation(Document* document, EventListener* eventListener, String& sourceName, String& sourceId, int& lineNumber)
s/sourceId/scriptId/
> Source/WebCore/bindings/v8/ScriptEventListener.cpp:121 > + v8::Handle<v8::Value> scriptIdValue = function->GetScriptId();
scriptId is always available in v8.
> Source/WebCore/inspector/front-end/EventListenersSidebarPane.js:208 > + if (this.eventListener.location.scriptId)
I don't think scriptId is valuable for user.
Alexander Pavlov (apavlov)
Comment 4
2012-09-20 00:50:58 PDT
Created
attachment 164854
[details]
Patch
Yury Semikhatsky
Comment 5
2012-09-20 01:12:57 PDT
Comment on
attachment 164854
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=164854&action=review
> Source/WebCore/bindings/js/ScriptEventListener.cpp:127 > + scriptId = funcSourceId == SourceProvider::nullID ? "" : String::number(funcSourceId);
I wonder when (funcSourceId == SourceProvider::nullID) can happen.
Alexander Pavlov (apavlov)
Comment 6
2012-09-20 01:33:41 PDT
Committed
r129105
: <
http://trac.webkit.org/changeset/129105
>
Alexander Pavlov (apavlov)
Comment 7
2012-09-20 01:39:02 PDT
Chromium issue:
http://code.google.com/p/chromium/issues/detail?id=140375
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug