mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-25 16:47:29 +09:00
Merge remote-tracking branch 'origin/master' into custom
This commit is contained in:
commit
3a29482353
6 changed files with 55 additions and 41 deletions
|
|
@ -3291,6 +3291,10 @@ BackgroundCursorChild::HandleResponse(
|
||||||
auto& responses =
|
auto& responses =
|
||||||
const_cast<nsTArray<ObjectStoreCursorResponse>&>(aResponses);
|
const_cast<nsTArray<ObjectStoreCursorResponse>&>(aResponses);
|
||||||
|
|
||||||
|
// If a new cursor is created, we need to keep a reference to it until the
|
||||||
|
// ResultHelper creates a DOM Binding.
|
||||||
|
RefPtr<IDBCursor> newCursor;
|
||||||
|
|
||||||
for (ObjectStoreCursorResponse& response : responses) {
|
for (ObjectStoreCursorResponse& response : responses) {
|
||||||
StructuredCloneReadInfo cloneReadInfo(Move(response.cloneInfo()));
|
StructuredCloneReadInfo cloneReadInfo(Move(response.cloneInfo()));
|
||||||
cloneReadInfo.mDatabase = mTransaction->Database();
|
cloneReadInfo.mDatabase = mTransaction->Database();
|
||||||
|
|
@ -3300,8 +3304,6 @@ BackgroundCursorChild::HandleResponse(
|
||||||
nullptr,
|
nullptr,
|
||||||
cloneReadInfo.mFiles);
|
cloneReadInfo.mFiles);
|
||||||
|
|
||||||
RefPtr<IDBCursor> newCursor;
|
|
||||||
|
|
||||||
if (mCursor) {
|
if (mCursor) {
|
||||||
mCursor->Reset(Move(response.key()), Move(cloneReadInfo));
|
mCursor->Reset(Move(response.key()), Move(cloneReadInfo));
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -555,6 +555,14 @@ void
|
||||||
BufferTextureHost::DeallocateDeviceData()
|
BufferTextureHost::DeallocateDeviceData()
|
||||||
{
|
{
|
||||||
if (mFirstSource && mFirstSource->NumCompositableRefs() > 0) {
|
if (mFirstSource && mFirstSource->NumCompositableRefs() > 0) {
|
||||||
|
// WrappingTextureSourceYCbCrBasic wraps YUV format BufferTextureHost.
|
||||||
|
// When BufferTextureHost is destroyed, data of
|
||||||
|
// WrappingTextureSourceYCbCrBasic becomes invalid.
|
||||||
|
if (mFirstSource->AsWrappingTextureSourceYCbCrBasic() &&
|
||||||
|
mFirstSource->IsOwnedBy(this)) {
|
||||||
|
mFirstSource->SetOwner(nullptr);
|
||||||
|
mFirstSource->DeallocateDeviceData();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -199,7 +199,7 @@ nsHttpHandler::nsHttpHandler()
|
||||||
, mLegacyAppVersion("5.0")
|
, mLegacyAppVersion("5.0")
|
||||||
, mProduct("Goanna")
|
, mProduct("Goanna")
|
||||||
, mCompatFirefoxEnabled(false)
|
, mCompatFirefoxEnabled(false)
|
||||||
, mCompatFirefoxVersion("52.9")
|
, mCompatFirefoxVersion("68.9")
|
||||||
, mUserAgentIsDirty(true)
|
, mUserAgentIsDirty(true)
|
||||||
, mAcceptLanguagesIsDirty(true)
|
, mAcceptLanguagesIsDirty(true)
|
||||||
, mPromptTempRedirect(true)
|
, mPromptTempRedirect(true)
|
||||||
|
|
|
||||||
|
|
@ -717,8 +717,6 @@ public abstract class TreeBuilder<T> implements TokenHandler,
|
||||||
tokenizer.setState(Tokenizer.DATA);
|
tokenizer.setState(Tokenizer.DATA);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
contextName = null;
|
|
||||||
contextNode = null;
|
|
||||||
} else {
|
} else {
|
||||||
mode = INITIAL;
|
mode = INITIAL;
|
||||||
// If we are viewing XML source, put a foreign element permanently
|
// If we are viewing XML source, put a foreign element permanently
|
||||||
|
|
@ -1627,6 +1625,8 @@ public abstract class TreeBuilder<T> implements TokenHandler,
|
||||||
public final void endTokenization() throws SAXException {
|
public final void endTokenization() throws SAXException {
|
||||||
formPointer = null;
|
formPointer = null;
|
||||||
headPointer = null;
|
headPointer = null;
|
||||||
|
contextName = null;
|
||||||
|
contextNode = null;
|
||||||
deepTreeSurrogateParent = null;
|
deepTreeSurrogateParent = null;
|
||||||
templateModeStack = null;
|
templateModeStack = null;
|
||||||
if (stack != null) {
|
if (stack != null) {
|
||||||
|
|
|
||||||
|
|
@ -141,8 +141,6 @@ nsHtml5TreeBuilder::startTokenization(nsHtml5Tokenizer* self)
|
||||||
tokenizer->setState(nsHtml5Tokenizer::DATA);
|
tokenizer->setState(nsHtml5Tokenizer::DATA);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
contextName = nullptr;
|
|
||||||
contextNode = nullptr;
|
|
||||||
} else {
|
} else {
|
||||||
mode = INITIAL;
|
mode = INITIAL;
|
||||||
if (tokenizer->isViewingXmlSource()) {
|
if (tokenizer->isViewingXmlSource()) {
|
||||||
|
|
@ -578,6 +576,8 @@ nsHtml5TreeBuilder::endTokenization()
|
||||||
{
|
{
|
||||||
formPointer = nullptr;
|
formPointer = nullptr;
|
||||||
headPointer = nullptr;
|
headPointer = nullptr;
|
||||||
|
contextName = nullptr;
|
||||||
|
contextNode = nullptr;
|
||||||
deepTreeSurrogateParent = nullptr;
|
deepTreeSurrogateParent = nullptr;
|
||||||
templateModeStack = nullptr;
|
templateModeStack = nullptr;
|
||||||
if (stack) {
|
if (stack) {
|
||||||
|
|
|
||||||
|
|
@ -4139,6 +4139,8 @@ XRE_InitCommandLine(int aArgc, char* aArgv[])
|
||||||
delete[] canonArgs;
|
delete[] canonArgs;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (PR_GetEnv("UXP_CUSTOM_OMNI")) {
|
||||||
|
// Process CLI parameters for specifying custom omnijars
|
||||||
const char *path = nullptr;
|
const char *path = nullptr;
|
||||||
ArgResult ar = CheckArg("greomni", true, &path);
|
ArgResult ar = CheckArg("greomni", true, &path);
|
||||||
if (ar == ARG_BAD) {
|
if (ar == ARG_BAD) {
|
||||||
|
|
@ -4178,6 +4180,8 @@ XRE_InitCommandLine(int aArgc, char* aArgv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
mozilla::Omnijar::Init(greOmni, appOmni);
|
mozilla::Omnijar::Init(greOmni, appOmni);
|
||||||
|
} // UXP_CUSTOM_OMNI
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue