From 1c6d2f7fa45c4fa5ac96e6238d5ed7445848e53b Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Mon, 18 Feb 2013 00:43:37 -0500 Subject: [PATCH] Don't change the platform window's title unless the Cappuccino window is full platform. --- AppKit/Platform/CPPlatformWindow.j | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/AppKit/Platform/CPPlatformWindow.j b/AppKit/Platform/CPPlatformWindow.j index 62a82e106..c53a50500 100644 --- a/AppKit/Platform/CPPlatformWindow.j +++ b/AppKit/Platform/CPPlatformWindow.j @@ -270,9 +270,12 @@ var PrimaryPlatformWindow = NULL; _title = aTitle; #if PLATFORM(DOM) - if (_DOMWindow && _DOMWindow.document - && (aWindow === [CPApp mainWindow] || [aWindow platformWindow] !== [CPPlatformWindow primaryPlatformWindow])) + if (_DOMWindow && + _DOMWindow.document && + ([aWindow isFullPlatformWindow])) + { _DOMWindow.document.title = _title; + } #endif }