icecat: add release icecat-140.10.1-1gnu1 for ecne
This commit is contained in:
parent
a5f93cb214
commit
ff85d7c623
1256 changed files with 63469 additions and 24141 deletions
|
|
@ -10664,23 +10664,25 @@ void nsDOMAttributeMap::BlastSubtreeToPieces(nsINode* aNode) {
|
|||
|
||||
mozilla::DebugOnly<nsresult> rv =
|
||||
element->UnsetAttr(attr->NodeInfo()->NamespaceID(),
|
||||
attr->NodeInfo()->NameAtom(), false);
|
||||
attr->NodeInfo()->NameAtom(), true);
|
||||
|
||||
// XXX Should we abort here?
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "Uh-oh, UnsetAttr shouldn't fail!");
|
||||
}
|
||||
}
|
||||
|
||||
if (mozilla::dom::ShadowRoot* shadow = element->GetShadowRoot()) {
|
||||
// Hold the strong reference to be sure, since we may notify
|
||||
if (RefPtr<mozilla::dom::ShadowRoot> shadow = element->GetShadowRoot()) {
|
||||
BlastSubtreeToPieces(shadow);
|
||||
element->UnattachShadow();
|
||||
}
|
||||
}
|
||||
|
||||
while (aNode->HasChildren()) {
|
||||
nsIContent* node = aNode->GetFirstChild();
|
||||
// Hold the strong reference to be sure, since we are notifying.
|
||||
nsCOMPtr<nsIContent> node = aNode->GetFirstChild();
|
||||
BlastSubtreeToPieces(node);
|
||||
aNode->RemoveChildNode(node, false);
|
||||
aNode->RemoveChildNode(node, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -16275,11 +16277,16 @@ void Document::RequestFullscreenInParentProcess(
|
|||
|
||||
/* static */
|
||||
bool Document::HandlePendingFullscreenRequests(Document* aDoc) {
|
||||
AutoTArray<UniquePtr<FullscreenRequest>, 1> requests;
|
||||
{
|
||||
PendingFullscreenChangeList::Iterator<FullscreenRequest> iter(
|
||||
aDoc, PendingFullscreenChangeList::eDocumentsWithSameRoot);
|
||||
while (!iter.AtEnd()) {
|
||||
requests.AppendElement(iter.TakeAndNext());
|
||||
}
|
||||
}
|
||||
bool handled = false;
|
||||
PendingFullscreenChangeList::Iterator<FullscreenRequest> iter(
|
||||
aDoc, PendingFullscreenChangeList::eDocumentsWithSameRoot);
|
||||
while (!iter.AtEnd()) {
|
||||
UniquePtr<FullscreenRequest> request = iter.TakeAndNext();
|
||||
for (UniquePtr<FullscreenRequest>& request : requests) {
|
||||
Document* doc = request->Document();
|
||||
if (doc->ApplyFullscreen(std::move(request))) {
|
||||
handled = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue