mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
import changes from `dev' branch of rmottola/Arctic-Fox:
- Bug 1144745 - moves gdk_screen_get_monitor_scale_factor() call to nsScreenGtk :: GetGtkMonitorScaleFactor(). r=karlt (0294af0ce) - Bug 1073117 - Add support for has_tab_gap notebook style. r=karlt (2c7473bde) - reverto to about 1174950 level (faf115418) - Bug 1183356 - Part 1: Use the outer window when refreshing media elements; r=baku (772e3a6aa) - Bug 1183356 - Part 2: Add assertions enforcing the usage of outer windows for all of the entry points of the API; r=baku (a2d47c945) - Bug 1181916. Notify the debugger's onNewGlobalObject hook off a scriptrunner. r=bholley (2ac890b4d) - Bug 1182316: Part 2 - Rework FORWARD_TO_OUTER_OR_THROW. r=peterv (aea3061d2) - Bug 1169710 - Part 0: Document the Debugger.Memory's tenure promotions log; r=sfink (c7520ed31) - Bug 1169710 - Part 1: Debugger should maintain a set of debuggee zones and Zones should maintain a list of debuggers; r=sfink (2d5025ba2) - Bug 1169710 - Part 2: Add Debugger infrastructure for logging promotions to the tenured heap; r=sfink (c0bc4fbfc) - Bug 1169710 - Part 3: Expose the tenure promotions log on Debugger.Memory; r=sfink (e37b65fe0) - Bug 1169710 - Part 4: Test the tenuring log; r=sfink (4cb0e3905) - Bug 1169710 - Part 5: Fix a GC hazard and properly mark cross compartment edges in the tenure promotions log; r=sfink,jonco (80235f6c7)
This commit is contained in:
@@ -3730,12 +3730,10 @@ nsDocShell::CanAccessItem(nsIDocShellTreeItem* aTargetItem,
|
||||
static bool
|
||||
ItemIsActive(nsIDocShellTreeItem* aItem)
|
||||
{
|
||||
nsCOMPtr<nsPIDOMWindow> window = aItem->GetWindow();
|
||||
|
||||
if (window) {
|
||||
bool isClosed;
|
||||
|
||||
if (NS_SUCCEEDED(window->GetClosed(&isClosed)) && !isClosed) {
|
||||
if (nsCOMPtr<nsPIDOMWindow> window = aItem->GetWindow()) {
|
||||
auto* win = static_cast<nsGlobalWindow*>(window.get());
|
||||
MOZ_ASSERT(win->IsOuterWindow());
|
||||
if (!win->GetClosedOuter()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user