Skip to content

Commit

Permalink
Bug 1449211. Stop special-casing XUL command dispatchers and tree sel…
Browse files Browse the repository at this point in the history
…ections in content XBL scopes. r=kmag
  • Loading branch information
bzbarsky committed Mar 29, 2018
1 parent 0dda5de commit 9640809
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions caps/nsScriptSecurityManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1223,20 +1223,6 @@ nsScriptSecurityManager::CanCreateWrapper(JSContext *cx,
return NS_OK;
}

// We want to expose nsIDOMXULCommandDispatcher and nsITreeSelection
// implementations in XBL scopes.
if (xpc::IsContentXBLScope(contextRealm)) {
nsCOMPtr<nsIDOMXULCommandDispatcher> dispatcher = do_QueryInterface(aObj);
if (dispatcher) {
return NS_OK;
}

nsCOMPtr<nsITreeSelection> treeSelection = do_QueryInterface(aObj);
if (treeSelection) {
return NS_OK;
}
}

//-- Access denied, report an error
nsAutoCString originUTF8;
nsIPrincipal* subjectPrincipal = nsContentUtils::SubjectPrincipal();
Expand Down

0 comments on commit 9640809

Please sign in to comment.