WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
100337
Web Inspector: Add "print" menu to Audits panel
https://bugs.webkit.org/show_bug.cgi?id=100337
Summary
Web Inspector: Add "print" menu to Audits panel
eustas.bug
Reported
2012-10-24 23:40:16 PDT
Quote: "When data is accumulated, it is most useful if it can be exported and/or printed for further review and sharing."
Attachments
Patch
(7.04 KB, patch)
2012-10-30 05:57 PDT
,
eustas.bug
no flags
Details
Formatted Diff
Diff
Sample output
(104.62 KB, application/pdf)
2012-10-30 06:26 PDT
,
eustas.bug
no flags
Details
Patch
(7.52 KB, patch)
2012-10-30 07:08 PDT
,
eustas.bug
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Alexander Pavlov (apavlov)
Comment 1
2012-10-25 01:46:53 PDT
Upstreaming
http://code.google.com/p/chromium/issues/detail?id=156610
eustas.bug
Comment 2
2012-10-29 02:45:55 PDT
This feature would require DOM-tree and JS-state serialization (for extensions). I propose to postpone it.
eustas.bug
Comment 3
2012-10-30 05:57:53 PDT
Created
attachment 171430
[details]
Patch
Alexander Pavlov (apavlov)
Comment 4
2012-10-30 06:09:56 PDT
Comment on
attachment 171430
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=171430&action=review
> Source/WebCore/inspector/front-end/View.js:366 > + output.textContent = '';
We use Element.prototype.removeChildren() for consistency (defined in DOMExtensions.js). I have a few more concerns: - All Audits panel-specific styles will be broken when printing this way. You'll most certainly want to set up print-specific styles in this case? - Why are you clearing the printable-area at this point? It should be empty given the clearing code below. I guess a better option would be declaring this function as WebInspector.printElement(element) and use it as a single entry point to printing element contents.
> Source/WebCore/inspector/front-end/View.js:369 > + output.textContent = '';
Ditto
> Source/WebCore/inspector/front-end/inspector.css:3006 > + #printable-area {
please move #printable-area-specific rules to the top, since they are the most important ones (and serve as a doc for this @media rule)
eustas.bug
Comment 5
2012-10-30 06:26:29 PDT
Created
attachment 171434
[details]
Sample output
eustas.bug
Comment 6
2012-10-30 07:08:03 PDT
Created
attachment 171445
[details]
Patch
eustas.bug
Comment 7
2012-10-30 07:09:51 PDT
Comment on
attachment 171430
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=171430&action=review
>> Source/WebCore/inspector/front-end/View.js:366 >> + output.textContent = ''; > > We use Element.prototype.removeChildren() for consistency (defined in DOMExtensions.js). I have a few more concerns: > - All Audits panel-specific styles will be broken when printing this way. You'll most certainly want to set up print-specific styles in this case? > - Why are you clearing the printable-area at this point? It should be empty given the clearing code below. I guess a better option would be declaring this function as WebInspector.printElement(element) and use it as a single entry point to printing element contents.
Addressed. Thanks.
>> Source/WebCore/inspector/front-end/View.js:369 >> + output.textContent = ''; > > Ditto
Fixed.
>> Source/WebCore/inspector/front-end/inspector.css:3006 >> + #printable-area { > > please move #printable-area-specific rules to the top, since they are the most important ones (and serve as a doc for this @media rule)
Done.
Pavel Feldman
Comment 8
2012-10-31 02:41:31 PDT
We don't have print for anything at the moment, I don't think it is worth starting with Audits for the printing functionality. I'd rather export it instead.
Pavel Feldman
Comment 9
2012-11-02 06:46:02 PDT
Comment on
attachment 171445
[details]
Patch Clearing r? from the closed bug.
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