This commit is contained in:
bryner%brianryner.com 2004-05-03 22:43:55 +00:00
Родитель cd50957f26
Коммит 57236a4b98
3 изменённых файлов: 4 добавлений и 9 удалений

Просмотреть файл

@ -1724,8 +1724,7 @@ static NSArray* sToolbarDefaults = nil;
webBrizzle->GetContentDOMWindow(getter_AddRefs(domWindow));
nsCOMPtr<nsPIDOMWindow> privateWindow = do_QueryInterface(domWindow);
ENSURE_TRUE(privateWindow);
nsCOMPtr<nsIFocusController> controller;
privateWindow->GetRootFocusController(getter_AddRefs(controller));
nsIFocusController *controller = privateWindow->GetRootFocusController();
ENSURE_TRUE(controller);
nsCOMPtr<nsIDOMElement> focusedItem;
controller->GetFocusedElement(getter_AddRefs(focusedItem));

Просмотреть файл

@ -279,8 +279,7 @@ const NSString* kOfflineNotificationName = @"offlineModeChanged";
nsCOMPtr<nsIDOMWindow> contentWindow = getter_AddRefs([[self getBrowserView] getContentWindow]);
nsCOMPtr<nsPIDOMWindow> piWindow(do_QueryInterface(contentWindow));
nsCOMPtr<nsIChromeEventHandler> chromeHandler;
piWindow->GetChromeEventHandler(getter_AddRefs(chromeHandler));
nsIChromeEventHandler *chromeHandler = piWIndow->GetChromeEventHandler();
nsCOMPtr<nsIDOMEventReceiver> rec(do_QueryInterface(chromeHandler));
if ( rec )
rec->AddEventListenerByIID(clickListener, NS_GET_IID(nsIDOMMouseListener));
@ -734,9 +733,7 @@ const NSString* kOfflineNotificationName = @"offlineModeChanged";
if (showBlocker) {
nsCOMPtr<nsIDOMWindow> domWindow = getter_AddRefs([mBrowserView getContentWindow]);
nsCOMPtr<nsPIDOMWindow> piWindow(do_QueryInterface(domWindow));
PRBool isUnrequested;
piWindow->IsLoadingOrRunningTimeout(&isUnrequested);
if (isUnrequested) {
if (piWindow->IsLoadingOrRunningTimeout()) {
// A popup is being opened while the page is currently loading. Offer to block the
// popup.
nsAlertController* controller = CHBrowserService::GetAlertController();

Просмотреть файл

@ -174,8 +174,7 @@ const char kDirServiceContractID[] = "@mozilla.org/file/directory_service;1";
nsCOMPtr<nsIDOMWindow> contentWindow = getter_AddRefs([self getContentWindow]);
nsCOMPtr<nsPIDOMWindow> piWindow(do_QueryInterface(contentWindow));
nsCOMPtr<nsIChromeEventHandler> chromeHandler;
piWindow->GetChromeEventHandler(getter_AddRefs(chromeHandler));
nsIChromeEventHandler *chromeHandler = piWindow->GetChromeEventHandler();
nsCOMPtr<nsIDOMEventReceiver> rec(do_QueryInterface(chromeHandler));
if ( rec )
rec->AddEventListenerByIID(clickListener, NS_GET_IID(nsIDOMMouseListener));