RESOLVED FIXED 40802
Add CSS scanning to HTML5PreloadScanner
https://bugs.webkit.org/show_bug.cgi?id=40802
Summary Add CSS scanning to HTML5PreloadScanner
Adam Barth
Reported 2010-06-17 16:43:40 PDT
Add CSS scanning to HTML5PreloadScanner
Attachments
Patch (17.72 KB, patch)
2010-06-17 16:44 PDT, Adam Barth
no flags
Patch (24.60 KB, patch)
2010-06-17 18:20 PDT, Adam Barth
eric: review+
Adam Barth
Comment 1 2010-06-17 16:44:45 PDT
WebKit Review Bot
Comment 2 2010-06-17 16:45:24 PDT
Attachment 59046 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style', '--no-squash']" exit_code: 1 WebCore/html/CSSPreloadScanner.cpp:93: Line contains only semicolon. If this should be an empty statement, use { } instead. [whitespace/semicolon] [5] WebCore/html/CSSPreloadScanner.cpp:116: Line contains only semicolon. If this should be an empty statement, use { } instead. [whitespace/semicolon] [5] WebCore/html/CSSPreloadScanner.cpp:135: Line contains only semicolon. If this should be an empty statement, use { } instead. [whitespace/semicolon] [5] Total errors found: 3 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Eric Seidel (no email)
Comment 3 2010-06-17 16:53:26 PDT
Comment on attachment 59046 [details] Patch Can we share the code with the legacy parser? That would make this diff easier to verify correctness because we'd see the moved code. (Ideally we'd split CSSPreloadScanner out of the old parser first before doing this patch.)
Adam Barth
Comment 4 2010-06-17 17:03:34 PDT
I was just going to delete the old preload scanner.
WebKit Review Bot
Comment 5 2010-06-17 17:20:21 PDT
Eric Seidel (no email)
Comment 6 2010-06-17 17:23:14 PDT
Comment on attachment 59046 [details] Patch We came up with a testing strategy in person using: 1. a slow script which document.write('<plaintext>') 2. A docuemnt with: <script src="slow_script_which_document_write_plaintext.js"></script> <style> @import "foo.css" </style> and look for a loader callback for foo.css
Adam Barth
Comment 7 2010-06-17 18:20:39 PDT
Eric Seidel (no email)
Comment 8 2010-06-17 18:32:24 PDT
Comment on attachment 59057 [details] Patch Thank you for adding testing.
Adam Barth
Comment 9 2010-06-17 19:01:16 PDT
WebKit Review Bot
Comment 10 2010-06-17 19:17:52 PDT
http://trac.webkit.org/changeset/61366 might have broken Qt Linux Release
Adam Barth
Comment 11 2010-06-17 19:23:15 PDT
Qt and GTK don't support dumpResourceResponseMIMETypes, so we can't run these tests.
Antti Koivisto
Comment 12 2010-06-18 02:36:51 PDT
Nice, thanks!
Note You need to log in before you can comment on or make changes to this bug.