RESOLVED FIXED 107753
The background HTML parser should be able to parse speculatively
https://bugs.webkit.org/show_bug.cgi?id=107753
Summary The background HTML parser should be able to parse speculatively
Adam Barth
Reported 2013-01-23 15:55:12 PST
The background HTML parser should be able to parse speculatively
Attachments
work in progress (14.44 KB, patch)
2013-01-23 15:56 PST, Adam Barth
no flags
passes a new test (19.05 KB, patch)
2013-01-23 16:47 PST, Adam Barth
no flags
still need to build system spelunk (19.98 KB, patch)
2013-01-30 16:06 PST, Adam Barth
no flags
everyone but xcode (23.82 KB, patch)
2013-01-30 16:10 PST, Adam Barth
no flags
Patch (42.02 KB, patch)
2013-01-30 16:49 PST, Adam Barth
no flags
Adam Barth
Comment 1 2013-01-23 15:56:05 PST
Created attachment 184334 [details] work in progress
Adam Barth
Comment 2 2013-01-23 16:47:27 PST
Created attachment 184347 [details] passes a new test
Adam Barth
Comment 3 2013-01-30 16:06:15 PST
Created attachment 185608 [details] still need to build system spelunk
Adam Barth
Comment 4 2013-01-30 16:10:25 PST
Created attachment 185609 [details] everyone but xcode
Adam Barth
Comment 5 2013-01-30 16:49:13 PST
Eric Seidel (no email)
Comment 6 2013-01-30 17:11:04 PST
Comment on attachment 185624 [details] Patch This looks amazing. :)
Adam Barth
Comment 7 2013-01-30 17:51:16 PST
Comment on attachment 185624 [details] Patch Thanks :)
Adam Barth
Comment 8 2013-01-30 17:53:16 PST
One downside to this approach is that BackgroundHTMLInputStream ends up keeping the entire input stream (instead of discarding StringImpls as it advances). My plan is to have the main thread send the BackgroundHTMLParser a message that it "continued past" a certain checkpoint, which will let the BackgroundHTMLInputStream discard whatever data would be needed to rewind to that checkpoint.
WebKit Review Bot
Comment 9 2013-01-30 18:19:09 PST
Comment on attachment 185624 [details] Patch Rejecting attachment 185624 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '--bot-id=gce-cq-01', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 185624, '--port=chromium-xvfb']" exit_code: 2 cwd: /mnt/git/webkit-commit-queue Last 500 characters of output: rce/WebKit/chromium/webkit/media/crypto/ppapi/cdm --revision 173055 --non-interactive --force --accept theirs-conflict --ignore-externals' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' 56>At revision 173055. ________ running '/usr/bin/python tools/clang/scripts/update.py --mac-only' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' ________ running '/usr/bin/python gyp_webkit' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' Updating webkit projects from gyp files... Full output: http://queues.webkit.org/results/16199989
WebKit Review Bot
Comment 10 2013-01-30 18:42:06 PST
Comment on attachment 185624 [details] Patch Clearing flags on attachment: 185624 Committed r141363: <http://trac.webkit.org/changeset/141363>
WebKit Review Bot
Comment 11 2013-01-30 18:42:12 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.