WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
Bug 40816
WebKit API: Undo static hooks into V8 when WebKit is shut down
https://bugs.webkit.org/show_bug.cgi?id=40816
Summary
WebKit API: Undo static hooks into V8 when WebKit is shut down
Aaron Boodman
Reported
2010-06-18 01:30:50 PDT
V8DOMWindowShell lazily sets static hooks in V8 that call back into WebCore. WebKit::shutdown() should clear these, so that V8 doesn't crash if it continues being used after that time.
Attachments
Patch
(5.79 KB, patch)
2010-06-18 01:39 PDT
,
Aaron Boodman
abarth
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Aaron Boodman
Comment 1
2010-06-18 01:39:26 PDT
Created
attachment 59082
[details]
Patch
Darin Fisher (:fishd, Google)
Comment 2
2010-06-18 11:23:11 PDT
I'm concerned that the pattern of shutting down WebKit and re-initializing it is going to be hard to support in the future since no other port requires it. It will be fragile to support. We don't need it for Chrome. We only need it because our unit_tests are constructed to initialize, shutdown, and re-initialize WebKit. Perhaps our unit_tests should change instead. Note that webkit_unit_tests initializes WebKit once for the entire process. That is the only currently supported usage. I notice that the comments in WebKit.h do not make this clear, and the implementation of WebKit::initialize does not assert that initialization is a one-time deal. It probably should have had such a check to prevent abuse.
Aaron Boodman
Comment 3
2010-06-18 13:14:23 PDT
Ok, thanks. I will track down the paths that are causing initialization in Chrome's unit tests.
Aaron Boodman
Comment 4
2010-06-18 23:54:46 PDT
Committed
r61466
: <
http://trac.webkit.org/changeset/61466
>
Aaron Boodman
Comment 5
2010-06-19 00:06:04 PDT
Reverted
r61466
for reason: Landed wrong change Committed
r61467
: <
http://trac.webkit.org/changeset/61467
>
Adam Barth
Comment 6
2010-06-19 16:51:06 PDT
Comment on
attachment 59082
[details]
Patch As discussed on chromium-dev, I think our current plan is to make the unit tests not assume they can restart WebKit.
Anders Carlsson
Comment 7
2013-05-02 11:46:26 PDT
V8 is gone from WebKit.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug