mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 04:17:31 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
bf90272692
6 changed files with 776 additions and 837 deletions
|
|
@ -12953,10 +12953,11 @@ nsGlobalWindow::RunTimeoutHandler(Timeout* aTimeout,
|
|||
nsJSUtils::ExecutionContext exec(aes.cx(), global);
|
||||
rv = exec.Compile(options, handler->GetHandlerText());
|
||||
|
||||
if (rv == NS_OK) {
|
||||
JS::Rooted<JSScript*> script(aes.cx(), exec.GetScript());
|
||||
if (script) {
|
||||
LoadedScript* initiatingScript = handler->GetInitiatingScript();
|
||||
if (initiatingScript) {
|
||||
initiatingScript->AssociateWithScript(exec.GetScript());
|
||||
initiatingScript->AssociateWithScript(script);
|
||||
}
|
||||
|
||||
rv = exec.ExecScript();
|
||||
|
|
|
|||
|
|
@ -315,8 +315,11 @@ nsJSUtils::ExecutionContext::JoinDecode(void **aOffThreadToken)
|
|||
}
|
||||
|
||||
JSScript* nsJSUtils::ExecutionContext::GetScript() {
|
||||
if (mSkip) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
MOZ_ASSERT(!mSkip);
|
||||
MOZ_ASSERT(mScript);
|
||||
mScriptUsed = true;
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -163,7 +163,10 @@ public:
|
|||
// thread.
|
||||
nsresult JoinDecode(void** aOffThreadToken);
|
||||
|
||||
// Get a successfully compiled script.
|
||||
// Get the compiled script if present, or nullptr.
|
||||
//
|
||||
// Compilation may succeed without producing a script when scripting is disabled for the global. Causes for this can
|
||||
// be the global pref or dynamic change when script execution in a global is terminated due to max_script_run_time.
|
||||
JSScript* GetScript();
|
||||
|
||||
// Execute the compiled script and ignore the return value.
|
||||
|
|
|
|||
|
|
@ -2377,10 +2377,7 @@ ScriptLoader::EvaluateScript(ScriptLoadRequest* aRequest)
|
|||
rv = exec.Compile(options, srcBuf);
|
||||
}
|
||||
if (rv == NS_OK) {
|
||||
JS::Rooted<JSScript*> script(cx);
|
||||
script = exec.GetScript();
|
||||
|
||||
// With scripts disabled GetScript() will return nullptr
|
||||
JS::Rooted<JSScript*> script(cx, exec.GetScript());
|
||||
if (script) {
|
||||
// Create a ClassicScript object and associate it with the
|
||||
// JSScript.
|
||||
|
|
|
|||
|
|
@ -4519,6 +4519,7 @@ nsGridContainerFrame::Tracks::ResolveIntrinsicSize(
|
|||
|
||||
// Check if we need to apply "Automatic Minimum Size" and cache it.
|
||||
if ((state & TrackSize::eAutoMinSizing) &&
|
||||
!(state & TrackSize::eFlexMaxSizing) &&
|
||||
gridItem.ShouldApplyAutoMinSize(wm, mAxis, aPercentageBasis)) {
|
||||
gridItem.mState[mAxis] |= ItemState::eApplyAutoMinSize;
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue