зеркало из https://github.com/mozilla/pjs.git
Reset the navigator object for each new document -- plugins may have changed, bug 150087 r=av sr=jst
This commit is contained in:
Родитель
b27de04155
Коммит
4c17ceaf6f
|
@ -378,6 +378,10 @@ GlobalWindowImpl::SetNewDocument(nsIDOMDocument* aDocument,
|
||||||
::JS_ClearWatchPointsForObject((JSContext *)mContext->GetNativeContext(),
|
::JS_ClearWatchPointsForObject((JSContext *)mContext->GetNativeContext(),
|
||||||
mJSObject);
|
mJSObject);
|
||||||
|
|
||||||
|
// Release the navigator object so that it will be recreated for the new document
|
||||||
|
// The plugins or mime types array may have changed. See bug 150087
|
||||||
|
NS_IF_RELEASE(mNavigator);
|
||||||
|
|
||||||
if (mFirstDocumentLoad) {
|
if (mFirstDocumentLoad) {
|
||||||
if (aDocument) {
|
if (aDocument) {
|
||||||
mFirstDocumentLoad = PR_FALSE;
|
mFirstDocumentLoad = PR_FALSE;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче