Post any pending messages to the Injected Bundle in WebContext::processDidFinishLaunching
authorjberlin@webkit.org <jberlin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Oct 2010 20:46:27 +0000 (20:46 +0000)
committerjberlin@webkit.org <jberlin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Oct 2010 20:46:27 +0000 (20:46 +0000)
commit41ad09e657cb9baa9e0da611d1090d09c198ced2
tree3aea8dce4dab9006c421ad0a192f299b5c626547
parent2aae145bb4248da54f5158aad8e74f5ed0e1b2aa
Post any pending messages to the Injected Bundle in WebContext::processDidFinishLaunching
instead of in WebContext::ensureWebProcess.
https://bugs.webkit.org/show_bug.cgi?id=48367

Reviewed by Darin Adler.

Send pending injected bundle messages after the process finished launching instead of of
directly after creating it.

* UIProcess/WebContext.cpp:
(WebKit::WebContext::ensureWebProcess):
Move the logic to dispatch pending injected bundle messages from here ...
(WebKit::WebContext::processDidFinishLaunching):
... to here.
Also use a reference instead of a pointer when sending the pending messages.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@70568 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit2/ChangeLog
WebKit2/UIProcess/WebContext.cpp