No bug - Remove incorrect comment from TabGroupOuter(), r=ehsan
authorMichael Layzell <michael@thelayzells.com>
Thu, 17 Nov 2016 17:27:36 -0500
changeset 896456 ee2f2548d44128c64d6dde2aa953a8c4a83c9c1f
parent 896455 06ef26669994ec4018e5072defb55b1af360c9f2
child 896457 42de50438fc9fcf647dfa3320351c4c7d6a4c313
push id155501
push userashiue@mozilla.com
push dateFri, 18 Nov 2016 03:26:06 +0000
treeherdertry@c775a1cfc96e [default view] [failures only]
reviewersehsan
milestone53.0a1
No bug - Remove incorrect comment from TabGroupOuter(), r=ehsan MozReview-Commit-ID: 7b9fhmAihTc
dom/base/nsGlobalWindow.cpp
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -14827,17 +14827,16 @@ nsGlobalWindow::CheckForDPIChange()
   }
 }
 
 mozilla::dom::TabGroup*
 nsGlobalWindow::TabGroupOuter()
 {
   MOZ_RELEASE_ASSERT(IsOuterWindow());
 
-  // This method is valid both on inner and outer windows, which is a
   // Outer windows lazily join TabGroups when requested. This is usually done
   // because a document is getting its NodePrincipal, and asking for the
   // TabGroup to determine its DocGroup.
   if (!mTabGroup) {
     // Get mOpener ourselves, instead of relying on GetOpenerWindowOuter,
     // because that way we dodge the LegacyIsCallerChromeOrNativeCode() call
     // which we want to return false.
     nsCOMPtr<nsPIDOMWindowOuter> piOpener = do_QueryReferent(mOpener);