RESOLVED INVALID 59749
Web Inspector: upstream Remote Debugging frontend page support code.
https://bugs.webkit.org/show_bug.cgi?id=59749
Summary Web Inspector: upstream Remote Debugging frontend page support code.
Ilya Tikhonovsky
Reported 2011-04-28 15:28:47 PDT
%subj%
Attachments
[patch] initial version (7.76 KB, patch)
2011-04-28 15:33 PDT, Ilya Tikhonovsky
no flags
frontpage sample (101.33 KB, image/png)
2011-04-28 16:03 PDT, Ilya Tikhonovsky
no flags
[patch] second version. comments addressed. (7.71 KB, patch)
2011-04-28 16:55 PDT, Ilya Tikhonovsky
pfeldman: review-
sample frontend page (728 bytes, text/html)
2011-04-28 16:59 PDT, Ilya Tikhonovsky
no flags
sample frontend page (728 bytes, text/plain)
2011-04-28 17:00 PDT, Ilya Tikhonovsky
no flags
Ilya Tikhonovsky
Comment 1 2011-04-28 15:33:50 PDT
Created attachment 91570 [details] [patch] initial version
Ilya Tikhonovsky
Comment 2 2011-04-28 16:03:08 PDT
Created attachment 91577 [details] frontpage sample
Joseph Pecoraro
Comment 3 2011-04-28 16:18:09 PDT
Comment on attachment 91570 [details] [patch] initial version View in context: https://bugs.webkit.org/attachment.cgi?id=91570&action=review Its tough to review this without the html file, but maybe the chromium inspector developers are more familiar with the situation. Looks good to me. > Source/WebKit/chromium/src/js/frontend.css:38 > + border-color: lightgray; > + border-style: solid; > + border-width: 6px; Nit (style): Use the shorthand here? border: 6px solid lightgray; > Source/WebKit/chromium/src/js/frontend.css:48 > + margin-left:220px; Nit (style): Add a space between the property + value like the others. > Source/WebKit/chromium/src/js/frontend.js:43 > + item.style.cssText = 'background-image:url(' + thumbnailUrl + ')'; Does thumbnailUrl need to be URL encoded to remove possible bad characters (like a single quote in this case), or has that been done already? My guess is it might be a datauri, but might not always be in the future. Nit: Normally inspector code uses double quotes around strings, but this is in WebKit/chromium, and I'm not sure if style is different. I'm happy as long as it is consistent, which it is =). > Source/WebKit/chromium/src/js/frontend.js:56 > + var list = document.getElementById('items').appendChild(frontendRef); Nit: Remove the local variable. It is never used.
Ilya Tikhonovsky
Comment 4 2011-04-28 16:55:44 PDT
Created attachment 91591 [details] [patch] second version. comments addressed. (In reply to comment #3) > (From update of attachment 91570 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=91570&action=review > > Its tough to review this without the html file, but maybe the > chromium inspector developers are more familiar with the > situation. Looks good to me. > > > Source/WebKit/chromium/src/js/frontend.css:38 > > + border-color: lightgray; > > + border-style: solid; > > + border-width: 6px; > > Nit (style): Use the shorthand here? > > border: 6px solid lightgray; done. > > Source/WebKit/chromium/src/js/frontend.css:48 > > + margin-left:220px; > > Nit (style): Add a space between the property + value like the others. done. > > > Source/WebKit/chromium/src/js/frontend.js:43 > > + item.style.cssText = 'background-image:url(' + thumbnailUrl + ')'; > > Does thumbnailUrl need to be URL encoded to remove possible bad > characters (like a single quote in this case), or has that been done > already? My guess is it might be a datauri, but might not always > be in the future. really it must be an url. > > Nit: Normally inspector code uses double quotes around strings, but > this is in WebKit/chromium, and I'm not sure if style is different. I'm > happy as long as it is consistent, which it is =). done. > > > Source/WebKit/chromium/src/js/frontend.js:56 > > + var list = document.getElementById('items').appendChild(frontendRef); > > Nit: Remove the local variable. It is never used. done.
Ilya Tikhonovsky
Comment 5 2011-04-28 16:59:21 PDT
Created attachment 91593 [details] sample frontend page
Ilya Tikhonovsky
Comment 6 2011-04-28 17:00:57 PDT
Created attachment 91594 [details] sample frontend page
Pavel Feldman
Comment 7 2011-04-28 21:46:55 PDT
Comment on attachment 91591 [details] [patch] second version. comments addressed. Remote debugging landing page should be platform-specific, branded and belong to the code that makes page discovery. There is not much code to reuse, but the flexibility suffers a lot.
Note You need to log in before you can comment on or make changes to this bug.