[Webkit-unassigned] [Bug 109980] [WK2] Calls to WKPageLoadURL() when WebProcess was terminated may fail

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Feb 23 06:49:02 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=109980





--- Comment #8 from Adenilson Cavalcanti Silva <savagobr at yahoo.com>  2013-02-23 06:51:24 PST ---
Maybe an alternative would be to move the code in processDidCrash() to a private function (i.e. processTearDown()) and have it be called by loadURL() if we are in the undefined state.

It could use a flag to know the state (i.e. m_isAboutToCrash) that is set at terminateProcess() exit.

In normal cases, it would work like:
a) terminateProcess() sets flag to true
b) processDidCrash() reset flag and calls processTearDown().


And in the case stressed by the test:
a) terminateProcess() sets the flag to true; 
b) loadURL() tests for the flag and calls processTearDown() so reattachToWebprocess() will work fine
c) processDidCrash() tests for the flag and returns after reseting it (and will *not need* to call processTearDown())

What you guys think?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list