mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
d835b252d7
5 changed files with 33 additions and 9 deletions
|
|
@ -210,13 +210,25 @@ public:
|
|||
, mDisplay(aOther.mDisplay)
|
||||
, mStereoMode(aOther.mStereoMode)
|
||||
, mImage(aOther.mImage)
|
||||
, mCodecSpecificConfig(aOther.mCodecSpecificConfig)
|
||||
, mExtraData(aOther.mExtraData)
|
||||
, mCodecSpecificConfig(nullptr)
|
||||
, mExtraData(nullptr)
|
||||
, mRotation(aOther.mRotation)
|
||||
, mBitDepth(aOther.mBitDepth)
|
||||
, mImageRect(aOther.mImageRect)
|
||||
, mAlphaPresent(aOther.mAlphaPresent)
|
||||
{
|
||||
if (aOther.mCodecSpecificConfig) {
|
||||
mCodecSpecificConfig = new MediaByteBuffer();
|
||||
mCodecSpecificConfig->AppendElements(
|
||||
reinterpret_cast<uint8_t*>(aOther.mCodecSpecificConfig->Elements()),
|
||||
aOther.mCodecSpecificConfig->Length());
|
||||
}
|
||||
if (aOther.mExtraData) {
|
||||
mExtraData = new MediaByteBuffer();
|
||||
mExtraData->AppendElements(
|
||||
reinterpret_cast<uint8_t*>(aOther.mExtraData->Elements()),
|
||||
aOther.mExtraData->Length());
|
||||
}
|
||||
}
|
||||
|
||||
bool IsValid() const override
|
||||
|
|
|
|||
|
|
@ -1505,6 +1505,10 @@ JSObject::swap(JSContext* cx, HandleObject a, HandleObject b)
|
|||
if (!JSObject::getGroup(cx, b))
|
||||
oomUnsafe.crash("JSObject::swap");
|
||||
|
||||
// Don't allow a GC which may observe intermediate states or run before we
|
||||
// execute all necessary barriers.
|
||||
AutoSuppressGC suppress(cx);
|
||||
|
||||
/*
|
||||
* Neither object may be in the nursery, but ensure we update any embedded
|
||||
* nursery pointers in either object.
|
||||
|
|
@ -1545,10 +1549,6 @@ JSObject::swap(JSContext* cx, HandleObject a, HandleObject b)
|
|||
a->fixDictionaryShapeAfterSwap();
|
||||
b->fixDictionaryShapeAfterSwap();
|
||||
} else {
|
||||
// Avoid GC in here to avoid confusing the tracing code with our
|
||||
// intermediate state.
|
||||
AutoSuppressGC suppress(cx);
|
||||
|
||||
// When the objects have different sizes, they will have different
|
||||
// numbers of fixed slots before and after the swap, so the slots for
|
||||
// native objects will need to be rearranged.
|
||||
|
|
|
|||
|
|
@ -401,8 +401,10 @@ nsLineLayout::NewPerSpanData()
|
|||
psd->mFrame = nullptr;
|
||||
psd->mFirstFrame = nullptr;
|
||||
psd->mLastFrame = nullptr;
|
||||
psd->mReflowInput = nullptr;
|
||||
psd->mContainsFloat = false;
|
||||
psd->mHasNonemptyContent = false;
|
||||
psd->mBaseline = nullptr;
|
||||
|
||||
#ifdef DEBUG
|
||||
outerLineLayout->mSpansAllocated++;
|
||||
|
|
|
|||
|
|
@ -919,6 +919,11 @@ nsFormFillController::HandleEvent(nsIDOMEvent* aEvent)
|
|||
mFocusedPopup->ClosePopup();
|
||||
return NS_OK;
|
||||
}
|
||||
if (type.EqualsLiteral("resize")) {
|
||||
if (mFocusedPopup)
|
||||
mFocusedPopup->ClosePopup();
|
||||
return NS_OK;
|
||||
}
|
||||
if (type.EqualsLiteral("pagehide")) {
|
||||
|
||||
nsCOMPtr<nsIDocument> doc = do_QueryInterface(
|
||||
|
|
@ -1213,6 +1218,8 @@ nsFormFillController::AddWindowListeners(nsPIDOMWindowOuter* aWindow)
|
|||
TrustedEventsAtCapture());
|
||||
elm->AddEventListenerByType(this, NS_LITERAL_STRING("contextmenu"),
|
||||
TrustedEventsAtCapture());
|
||||
elm->AddEventListenerByType(this, NS_LITERAL_STRING("resize"),
|
||||
TrustedEventsAtCapture());
|
||||
|
||||
// Note that any additional listeners added should ensure that they ignore
|
||||
// untrusted events, which might be sent by content that's up to no good.
|
||||
|
|
@ -1257,6 +1264,8 @@ nsFormFillController::RemoveWindowListeners(nsPIDOMWindowOuter* aWindow)
|
|||
TrustedEventsAtCapture());
|
||||
elm->RemoveEventListenerByType(this, NS_LITERAL_STRING("contextmenu"),
|
||||
TrustedEventsAtCapture());
|
||||
elm->RemoveEventListenerByType(this, NS_LITERAL_STRING("resize"),
|
||||
TrustedEventsAtCapture());
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -1202,10 +1202,11 @@ nsExternalAppHandler::nsExternalAppHandler(nsIMIMEInfo * aMIMEInfo,
|
|||
|
||||
// Replace platform specific path separator and illegal characters to avoid any confusion
|
||||
mSuggestedFileName.ReplaceChar(KNOWN_PATH_SEPARATORS, '_');
|
||||
mSuggestedFileName.ReplaceChar(FILE_ILLEGAL_CHARACTERS, ' ');
|
||||
mSuggestedFileName.ReplaceChar(char16_t(0), '_');
|
||||
mSuggestedFileName.ReplaceChar(FILE_ILLEGAL_CHARACTERS, '_');
|
||||
mSuggestedFileName.ReplaceChar("%", '_');
|
||||
mSuggestedFileName.StripChar(char16_t(0));
|
||||
mTempFileExtension.ReplaceChar(KNOWN_PATH_SEPARATORS, '_');
|
||||
mTempFileExtension.ReplaceChar(FILE_ILLEGAL_CHARACTERS, ' ');
|
||||
mTempFileExtension.ReplaceChar(FILE_ILLEGAL_CHARACTERS, '_');
|
||||
|
||||
// Remove unsafe bidi characters which might have spoofing implications (bug 511521).
|
||||
const char16_t unsafeBidiCharacters[] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue