WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 81795
Web Inspector: event listeners section is broken for about:blank page
https://bugs.webkit.org/show_bug.cgi?id=81795
Summary
Web Inspector: event listeners section is broken for about:blank page
Yury Semikhatsky
Reported
2012-03-21 09:54:25 PDT
Some web apps create popup windows with about:blank URL but non trivial content and some event listeners. Inspector should work well on such pages.
Attachments
Patch
(3.28 KB, patch)
2012-03-21 10:54 PDT
,
Yury Semikhatsky
no flags
Details
Formatted Diff
Diff
Patch
(4.73 KB, patch)
2012-03-21 11:13 PDT
,
Yury Semikhatsky
no flags
Details
Formatted Diff
Diff
Patch
(4.92 KB, patch)
2012-03-21 15:51 PDT
,
Yury Semikhatsky
pfeldman
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Yury Semikhatsky
Comment 1
2012-03-21 10:54:11 PDT
Created
attachment 133075
[details]
Patch
Pavel Feldman
Comment 2
2012-03-21 10:56:17 PDT
Comment on
attachment 133075
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=133075&action=review
> Source/WebCore/inspector/front-end/ResourceUtils.js:63 > + if (WebInspector.inspectedPageURL === "about:blank")
It sounds like we should instead parse about:blank as a valid URL.
Yury Semikhatsky
Comment 3
2012-03-21 11:13:04 PDT
Created
attachment 133078
[details]
Patch
Yury Semikhatsky
Comment 4
2012-03-21 11:14:38 PDT
(In reply to
comment #2
)
> (From update of
attachment 133075
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=133075&action=review
> > > Source/WebCore/inspector/front-end/ResourceUtils.js:63 > > + if (WebInspector.inspectedPageURL === "about:blank") > > It sounds like we should instead parse about:blank as a valid URL.
Done.
Pavel Feldman
Comment 5
2012-03-21 12:03:11 PDT
Comment on
attachment 133078
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=133078&action=review
> Source/WebCore/inspector/front-end/utilities.js:460 > + var match = this.match(/^([^:]+):(?:\/\/)?([^\/:]*)(?::([\d]+))?(?:(\/[^#]*)(?:#(.*))?)?$/i);
I would special case about:blank instead. Otherwise, non-urls can squeeze in.
Yury Semikhatsky
Comment 6
2012-03-21 15:51:23 PDT
Created
attachment 133133
[details]
Patch
Yury Semikhatsky
Comment 7
2012-03-21 15:52:03 PDT
(In reply to
comment #5
)
> (From update of
attachment 133078
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=133078&action=review
> > > Source/WebCore/inspector/front-end/utilities.js:460 > > + var match = this.match(/^([^:]+):(?:\/\/)?([^\/:]*)(?::([\d]+))?(?:(\/[^#]*)(?:#(.*))?)?$/i); > > I would special case about:blank instead. Otherwise, non-urls can squeeze in.
Done.
Yury Semikhatsky
Comment 8
2012-03-21 23:17:43 PDT
Committed
r111653
: <
http://trac.webkit.org/changeset/111653
>
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