зеркало из https://github.com/mozilla/pjs.git
Reverse the internal linked list of plugins after scanning in order to get loading precendence correct. bug 115337 r=av, sr=beard
This commit is contained in:
Родитель
761151ffe1
Коммит
02df67bc6d
|
@ -4721,6 +4721,15 @@ NS_IMETHODIMP nsPluginHostImpl::LoadPlugins()
|
|||
mCachedPlugins = next;
|
||||
}
|
||||
|
||||
// reverse our list of plugins
|
||||
nsPluginTag *next,*prev = nsnull;
|
||||
for (nsPluginTag *cur = mPlugins; cur; cur = next) {
|
||||
next = cur->mNext;
|
||||
cur->mNext = prev;
|
||||
prev = cur;
|
||||
}
|
||||
mPlugins = prev;
|
||||
|
||||
NS_TIMELINE_STOP_TIMER("LoadPlugins");
|
||||
NS_TIMELINE_MARK_TIMER("LoadPlugins");
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче