  @end
  
  @implementation NSView(FrameViewMethodSwizzling)
-@@ -2778,6 +2805,11 @@ GetDPI(NSWindow* aWindow)
+@@ -2778,6 +2825,11 @@ GetDPI(NSWindow* aWindow)
    return defaultPosition;
  }
  

       } else {
         stringData = [pString dataUsingEncoding:NSUnicodeStringEncoding];
       }
diff --git a/widget/cocoa/nsCocoaUtils.h b/widget/cocoa/nsCocoaUtils.h
index 70fa279085c0..8b14d244f162 100644
--- a/widget/cocoa/nsCocoaUtils.h
+++ b/widget/cocoa/nsCocoaUtils.h
@@ -76,13 +76,6 @@ private:
 - (BOOL)_isRunningModal;
 - (BOOL)_isRunningAppModal;
 
-// It's sometimes necessary to explicitly remove a window from the "window
-// cache" in order to deactivate it.  The "window cache" is an undocumented
-// subsystem, all of whose methods are included in the NSWindowCache category
-// of the NSApplication class (in header files generated using class-dump).
-// Present in all versions of OS X from (at least) 10.2.8 through 10.5.
-- (void)_removeWindowFromCache:(NSWindow *)aWindow;
-
 // Send an event to the current Cocoa app-modal session.  Present in all
 // versions of OS X from (at least) 10.2.8 through 10.5.
 - (void)_modalSession:(NSModalSession)aSession sendEvent:(NSEvent *)theEvent;
diff --git a/widget/cocoa/nsCocoaUtils.mm b/widget/cocoa/nsCocoaUtils.mm
index 8972c530c389..20afdf997ed7 100644
--- a/widget/cocoa/nsCocoaUtils.mm

 @end
 
 static NSMutableSet *gSwizzledFrameViewClasses = nil;
@@ -2870,6 +2922,9 @@ static NSMutableSet *gSwizzledFrameViewClasses = nil;
   static IMP our_fullScreenButtonOrigin =
     class_getMethodImplementation([NSView class],
                                   @selector(FrameView__fullScreenButtonOrigin));
