RESOLVED FIXED 122496
Remove use of deprecatedDeleteAllValues in NPRemoteObjectMap::pluginDestroyed
https://bugs.webkit.org/show_bug.cgi?id=122496
Summary Remove use of deprecatedDeleteAllValues in NPRemoteObjectMap::pluginDestroyed
Darin Adler
Reported 2013-10-08 00:15:16 PDT
Remove use of deleteAllValues in NPRemoteObjectMap::pluginDestroyed
Attachments
Patch (4.79 KB, patch)
2013-10-08 00:17 PDT, Darin Adler
no flags
Patch (5.01 KB, patch)
2013-10-09 09:41 PDT, Darin Adler
no flags
Patch (3.41 KB, patch)
2014-04-17 08:44 PDT, Darin Adler
no flags
Darin Adler
Comment 1 2013-10-08 00:17:01 PDT
Andreas Kling
Comment 2 2013-10-08 00:33:18 PDT
Comment on attachment 213668 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=213668&action=review r=me, this is much nicer than the old code. Thought: Do you think it would be cool to have a function that yanks items matching a [lambda] predicate out of a collection and returns them in a Vector? > Source/WebKit2/ChangeLog:9 > + (WebKit::NPRemoteObjectMap::registerNPObject): Don't call release when puttin objects Typo, putting. > Source/WebKit2/Shared/Plugins/NPRemoteObjectMap.cpp:200 > + for (auto it = m_registeredNPObjects.begin(), end = m_registeredNPObjects.end(); it != end; ++it) { You can use range-based for in WebKit2. > Source/WebKit2/Shared/Plugins/NPRemoteObjectMap.cpp:209 > + for (auto it = m_npObjectProxies.begin(), end = m_npObjectProxies.end(); it != end; ++it) { Same here.
Darin Adler
Comment 3 2013-10-08 00:50:53 PDT
(In reply to comment #2) > Thought: Do you think it would be cool to have a function that yanks items matching a [lambda] predicate out of a collection and returns them in a Vector? Probably. It would use the word “take” in its name.
Darin Adler
Comment 4 2013-10-08 00:57:01 PDT
Alexey Proskuryakov
Comment 5 2013-10-08 08:18:49 PDT
This caused crashes all over the place in plug-in tests. Darin, are you around to take a look?
WebKit Commit Bot
Comment 6 2013-10-08 08:24:18 PDT
Re-opened since this is blocked by bug 122504
Alexey Proskuryakov
Comment 7 2013-10-08 08:28:24 PDT
Rolled out in <http://trac.webkit.org/changeset/157105>. Test results: <http://build.webkit.org/results/Apple%20MountainLion%20Release%20WK2%20(Tests)/r157090%20(12401)/results.html>. Unfortunately, there are no crash logs (might be that they are actually freezes incorrectly detected as crashes).
Darin Adler
Comment 8 2013-10-08 09:44:23 PDT
Were the crashes only on Mountain Lion, or were they on Lion too?
Alexey Proskuryakov
Comment 9 2013-10-08 09:56:22 PDT
Darin Adler
Comment 10 2013-10-08 22:24:50 PDT
Gustavo Noronha (kov)
Comment 11 2013-10-09 05:09:29 PDT
Looks like the crashes came back with the new commit =(
WebKit Commit Bot
Comment 12 2013-10-09 05:45:02 PDT
Re-opened since this is blocked by bug 122547
Darin Adler
Comment 14 2013-10-09 09:39:22 PDT
Really? I did lots of testing locally and saw no crashes. I guess I am testing this wrong. Anders, can you help?
Darin Adler
Comment 15 2013-10-09 09:41:05 PDT
Darin Adler
Comment 16 2013-10-09 09:41:38 PDT
Anders, any ideas on why this second version of the patch still caused all those crashes on the bots, but not on my Mavericks development machine?
Darin Adler
Comment 17 2014-04-17 08:44:28 PDT
Darin Adler
Comment 18 2014-04-17 09:59:02 PDT
Note You need to log in before you can comment on or make changes to this bug.