Commit graph

  • 4a9e6100ec [Pale-Moon] No issue - Silence tab closing animation assert if the tabbrowser is not visible FranklinDM 2022-12-04 12:14:18 +08:00
  • aadd6244c1 [Pale-Moon] Issue MoonchildProductions/UXP#1451 - Follow-up: Only copy hunspell shared library if we're not building against system Hunspell. Job Bautista 2023-05-01 20:27:31 +08:00
  • 6b13231b96 [Basilisk] Issue MoonchildProductions/UXP#1451 - Follow-up: Only copy hunspell shared library if we're not building against system Hunspell. Job Bautista 2023-05-01 20:27:31 +08:00
  • 462805f0ee Merge remote-tracking branch 'origin/tracking' into custom roytam1 2023-05-11 09:29:55 +08:00
  • e39dc9d9b9 No issue - block a few problematic DLLs. Moonchild 2023-05-11 01:13:44 +02:00
  • ea32d13dc3 No issue - Disable ms-cxh and ms-cxh-full protocol handling. Moonchild 2023-05-11 00:10:27 +02:00
  • 500af2fe51 [widget] Rewrite data-read loop in OnDataAvailable. Moonchild 2023-05-10 23:15:23 +02:00
  • cc6ef1f3b1 No issue - Limit JPEG decoder memory allocation to surface cache size. Moonchild 2023-05-10 22:50:22 +02:00
  • e70aa9a4a1 Merge remote-tracking branch 'origin/tracking' into custom roytam1 2023-05-10 11:57:40 +08:00
  • fae36a95ec No Issue - Updates to Mac packaging for notarization. Add Mac entitlements. Switch to using "create" instead of "makehybrid" when creating the disk image. This fixes bogus extended attributes which interfere with the code signature. Finally add any -bin or dylibs in the Resources folder since --deep skips that folder. Brian Smith 2023-05-08 20:18:12 -05:00
  • 1c70f64e7c Issue #2236 - Fix import.meta module error in lambdas by moving parseGoal() into SharedContext. Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1604792 Also remove ParseGoal being passed through Parser introduced in #1691 Part 2. Brian Smith 2023-05-08 18:28:18 -05:00
  • 2d6c419661 Issue #2234 - Part 3: Update tests FranklinDM 2023-05-07 00:58:34 +08:00
  • e52da4707d Issue #2234 - Part 2: Ensure that the created async function wrapper is valid FranklinDM 2023-05-07 00:57:41 +08:00
  • ab1c0a384d Issue #2234 - Part 1: Create async function wrapper when instantiating module functions FranklinDM 2023-05-07 00:43:59 +08:00
  • 9693552c5c Issue #2232 - Parse exported async functions. Job Bautista 2023-05-06 15:15:33 +08:00
  • 725b27a0f5 Merge remote-tracking branch 'origin/tracking' into custom roytam1 2023-05-05 23:02:05 +08:00
  • 5b7f259abf Issue #1691 - Follow-up: Ship dynamic module imports enabled by default. Moonchild 2023-05-05 16:07:21 +02:00
  • 84eadbe3cf No Issue - Do not parse or return body for XHRs with HEAD/CONNECT method or content-length=0 Martok 2023-05-04 21:03:16 +02:00
  • f1759b33ff Issue #1656 - Remove more vim control lines. Moonchild 2023-05-05 15:53:29 +02:00
  • a39fd9e75f Issue #1656 - Remove more vim control lines. Moonchild 2023-05-05 15:20:27 +02:00
  • 2f117eecaa Issue #1656 - Remove more vim control lines. Moonchild 2023-05-04 22:06:35 +02:00
  • 6235ca420d Merge remote-tracking branch 'origin/tracking' into custom roytam1 2023-05-04 10:47:54 +08:00
  • c9b8a576da Issue #1656 - Remove more vim control lines. Moonchild 2023-05-04 03:33:25 +02:00
  • d388e478a0 Issue #1656 - Remove more vim control lines. Moonchild 2023-05-03 22:09:21 +02:00
  • e6ff567de7 Issue #1656 - remove vim control lines from js/src Moonchild 2023-05-03 20:17:09 +02:00
  • fa52ac972f Issue #2142 - follow-up rev 51db22ff, removing static keyword from upstream force-push rev aa6d42e5fc..63a00fdd25 roytam1 2023-05-03 21:39:40 +08:00
  • f0dfd9ac73 Merge remote-tracking branch 'origin/tracking' into custom roytam1 2023-05-02 23:56:43 +08:00
  • ae50e9e01d Issue #2225 - Implement Element.replaceChildren FranklinDM 2023-05-01 20:50:50 +08:00
  • a1f787fc8c Issue #1691 - Follow-up: Fix videojs and potentially other problems. When rewriting the ExecutionContext code in ScriptLoader I accidentally removed some required code. Brian Smith 2023-05-02 10:44:02 -05:00
  • 75c6c6d5b5 Merge remote-tracking branch 'origin/tracking' into custom roytam1 2023-05-01 23:35:51 +08:00
  • a7d8cecdb9 Issue #2097 - Handle Logical Assignment in Ion CFG Martok 2023-05-01 16:17:20 +02:00
  • a248550543 Merge remote-tracking branch 'origin/tracking' into custom roytam1 2023-05-01 14:44:54 +08:00
  • 10951a169c Issue #2097 - Implement logical assignment operators Martok 2023-04-26 15:16:33 +02:00
  • ba9647a12a Issue #2142 - Remove the temporary fields option Martok 2023-05-01 00:57:45 +02:00
  • 1fac189aea Issue #2142 - Implement class static block Martok 2023-04-11 09:48:34 +02:00
  • 22a9d46ef1 Issue #2142 - Track isFieldInitializer on JSScript instead of Scope Martok 2023-04-11 03:02:33 +02:00
  • c3b19191f3 Issue #2142 - Parse and process static class fields Martok 2023-04-11 00:00:59 +02:00
  • b187006a7e Issue #2142 - Support SuperProperty in field initializers Martok 2023-04-10 18:19:26 +02:00
  • e0b5528c29 Issue #2142 - Optimize .initializers scoping and emitter Martok 2023-04-10 15:40:27 +02:00
  • c206114966 Issue #2142 - Set anonymous function name in field initializer Martok 2023-04-10 06:14:03 +02:00
  • f0b06f5ad6 Issue #2142 - Don't treat PNK_NAME specially emitAssignmentOrInit Martok 2023-04-10 02:06:10 +02:00
  • f374ab472d Issue #2142 - Emit field keys in correct order Martok 2023-04-10 03:48:49 +02:00
  • 1031b1fc43 Issue #2142 - Pass through arguments in synthesized constructors for derived classes Martok 2023-04-09 21:16:52 +02:00
  • bcb6203e4f Issue #2142 - Fix several scoping issues in field initializers Martok 2023-04-09 19:54:45 +02:00
  • 8c6750014c Issue #2142 - Restrict contents of direct eval in fields Martok 2023-04-09 19:56:58 +02:00
  • 849ab4417c Issue #2142 - Use JSOP_INITPROP for field initializers Martok 2023-04-09 04:42:04 +02:00
  • 447261cf87 Issue #2142 - Implement ASI for fields Martok 2023-04-09 04:03:27 +02:00
  • 014953c532 Issue #2142 - Factor out PropertyName parsing from Parser::propertyName() Martok 2023-04-09 02:01:53 +02:00
  • 235ca77949 Issue #2142 - Handle fields in derived classes Martok 2023-04-08 03:47:06 +02:00
  • e6335ded89 Issue #2142 - Add FunctionEmitter, FunctionScriptEmitter, and FunctionParamsEmitter with current methods Martok 2023-04-26 19:24:13 +02:00
  • 1b89be6d0b Issue #2142 - Add PropertyEmitter, ObjectEmitter, ClassEmitter, LexicalScopeEmitter, DefaultEmitter Martok 2023-04-07 18:59:43 +02:00
  • ab7721e4df Issue #2142 - Improve TokenPos handling in BCE Martok 2023-04-07 19:32:22 +02:00
  • 51db22ff2f Issue #2142 - Implement syntax for public/private fields and computed field names Martok 2023-04-06 03:10:50 +02:00
  • afa7bddc96 Issue #2142 - Add internal option for fields, but always true Martok 2023-04-08 04:47:37 +02:00
  • 6abb54ff11 Issue #2142 - Reduce calls to FindReservedWord when checking for forbidden identifiers during parsing Martok 2023-04-26 18:22:30 +02:00
  • 0a4a1d8a63 Merge remote-tracking branch 'origin/tracking' into custom roytam1 2023-05-01 06:55:51 +08:00
  • faed047e3f Issue #2142 - Ensure 'await' is always a restricted identifier when parsing modules Martok 2023-04-26 18:21:35 +02:00
  • 3b9b111b2f Issue #2142 - Add predicate functions count_if and any_of to ListNode iterator Martok 2023-04-26 17:32:55 +02:00
  • 627d0da7dc Issue #2142 - Change InitPropertyOperation to accept a PropertyName directy and use DefineDataProperty Martok 2023-04-09 19:18:03 +02:00
  • 6f56a494e6 Issue #2142 - Extend newSuperCall for JSOP_SPREADSUPERCALL Martok 2023-04-08 02:06:06 +02:00
  • 014ebe8ae2 Issue #2142 - Fold BytecodeEmitter::checkTypeSet into BytecodeEmitter::emitCheck Martok 2023-04-23 02:11:42 +02:00
  • 73a99c155d Issue #1691 - Follow-up: use error message with no arguments for bad import statements Martok 2023-04-30 20:55:40 +02:00
  • 51426d1053 Issue #1862 - Follow-up: Replace deprecated Harfbuzz functions with current ones. Job Bautista 2023-04-30 21:20:06 +08:00
  • 45b34592b6 Issue #1691 - Follow-up: Fix CallSelfHostedFunction deprot introduced by Part 4. Job Bautista 2023-04-30 21:11:01 +08:00
  • b592711bb2 Issue #2221 - Enable link-time optimization for Spidermonkey by default if building it shared. Job Bautista 2023-04-22 10:39:55 +08:00
  • 0a74a57585 Issue #1285 - Follow-up: Correctly handle follow-up compilations of RegExp with named capturing groups Martok 2023-04-25 11:10:46 +02:00
  • aece6260fb Issue #1894 - Follow-up: Fix return value ordering in IonMonkey nullish coalescing Martok 2023-04-25 10:08:03 +02:00
  • e31a058ce9 Issue #2173 - Follow-up: Use common ancestor of PNK_(OPT)DOT in ASTSerializer::expression Martok 2023-04-24 00:28:56 +02:00
  • a27e8bf989 Issue #2213 - Follow-up: Fix derieved Generator prototypes after previous change Martok 2023-04-26 22:03:06 +02:00
  • 429cab3b70 Merge remote-tracking branch 'origin/tracking' into custom roytam1 2023-04-30 21:46:17 +08:00
  • 80d11ebc38 follow-up Issue #1691 - Part 6b, fix code that codepath is removed by upstream but remaining here roytam1 2023-04-30 21:45:57 +08:00
  • 61874576e3 [Basilisk] Issue MoonchildProductions/UXP#1451 - Support hunspell as shared library Job Bautista 2023-04-23 13:17:41 +08:00
  • 2be4e3e69f [Pale-Moon] Issue MoonchildProductions/UXP#1451 - Support hunspell as shared library Job Bautista 2023-04-23 13:17:41 +08:00
  • beb68187e5 Merge remote-tracking branch 'origin/tracking' into custom roytam1 2023-04-30 21:26:08 +08:00
  • b7f217e5ad Issue #2073 - Follow-up: Use internal Move instead of std::move for consistency FranklinDM 2023-04-30 17:19:39 +08:00
  • 93644fd33e Issue #2218 - Part 2: Make SurfaceCache free ImageSurfaceCache objects outside of the lock FranklinDM 2023-04-30 17:48:07 +08:00
  • fa787f4a6a Issue #2218 - Part 1: Add nsExpirationTracker::NotifyEndTransaction(Locked) callbacks for subclasses to know when an aging iteration is complete FranklinDM 2023-04-30 17:40:20 +08:00
  • 62e2fbc4e9 Bug 1432272 - Make Fetch API use the global's base URL instead of the entry document's base URL FranklinDM 2023-03-11 12:44:46 +08:00
  • 1ac1e90b6a Issue #1691 - Part 16: Dynamically imported modules can throw any value as an exception. https://bugzilla.mozilla.org/show_bug.cgi?id=1508672 Brian Smith 2023-04-24 17:31:39 -05:00
  • f2b179156b Issue #1691 - Part 15: Make |new import()| a syntax error. https://bugzilla.mozilla.org/show_bug.cgi?id=1508672 Brian Smith 2023-04-24 17:05:15 -05:00
  • 79ea755b7f Issue #1691 - Part 14: Fix a debug assert and memory leak. PNK_IMPORT_META and PNK_CALL_IMPORT are binary nodes... They function similar to list nodes, so they worked there, but debug mode asserts because of the wrong type. https://bugzilla.mozilla.org/show_bug.cgi?id=1342012 Fixed a memory leak due to missing code in SourceScriptObject::finalize(). Thanks FranklinDM! Brian Smith 2023-04-24 16:01:17 -05:00
  • bc895eba9b Issue #1691 - Part 13: Remove MUST_MATCH_TOKEN* macros in Parser. https://bugzilla.mozilla.org/show_bug.cgi?id=1501928 This was helpful in debugging one of the crashes, the macros made debugging a nightmare. Brian Smith 2023-04-24 06:06:27 -05:00
  • a892a75903 Issue #1691 - Part 12: Fix return value in ExecScript() and debug assert in ParseTask. https://bugzilla.mozilla.org/show_bug.cgi?id=1331662 Replace nsJSUtils::EvaluateString calls by ExecutionContext scopes. ExecutionContext: The mRetValue is not used even though it is checked in various asserts. This is how it is in the Mozilla code even years later, only the passed in value is used. ParseTask: JoinDecode() and JoinCompile() run the same code but the type is different causing a debug assert when it checks the type Script vs ScriptDecode. Brian Smith 2023-04-23 17:53:38 -05:00
  • edb82ec9f2 Issue #1691 - Part 11: Fix incorrect reference counting in ModuleScript class. Brian Smith 2023-04-22 03:57:28 -05:00
  • 7e056a6f72 Issue #1691 - Part 10: Add and use method to annotate CC crashes with a class name. https://bugzilla.mozilla.org/show_bug.cgi?id=1277260 Make PtrInfo into a class and mark it final. Also fix an erroneous debug assert because mBaseURL not set in one code path. Brian Smith 2023-04-21 19:10:43 -05:00
  • be916ef7ca Issue #1691 - Part 9: Make import() work when the active script is in another document. https://bugzilla.mozilla.org/show_bug.cgi?id=1342012 Associate event handler with active script when they are compiled. Brian Smith 2023-04-21 17:55:33 -05:00
  • 1109559a5d Issue #1691 - Part 8: Fix --enable-debug builds and continue dynamic module import changes. https://bugzilla.mozilla.org/show_bug.cgi?id=1342012 Support import from timeout handlers by associating the initiating script with the compiled JSScript. Fix error message that covers all import() failures that don't throw a JS exception. https://bugzilla.mozilla.org/show_bug.cgi?id=1331662 Partial - Replace nsJSUtils::EvaluateString calls by ExecutionContext scopes. Left EvaluateString() in nsXBLProtoImplField.cpp until ExecutionContext errors can be fixed. Brian Smith 2023-04-21 17:35:04 -05:00
  • c69a47c393 Issue #1691 - Part 7f: Split up compile and execute so we can use ClassicScript. https://bugzilla.mozilla.org/show_bug.cgi?id=1342012 Refactor nsJSUtils::ExecutionContext to separate compilation and execution steps and allow extraction of compiled JSScript. https://bugzilla.mozilla.org/show_bug.cgi?id=1366773 Move buffer argument from JS::StartIncrementalEncoding to JS::FinishIncrementalEncoding. Brian Smith 2023-04-20 10:15:52 -05:00
  • 993476283d Issue #1691 - Part 7e: Dependencies for required to finish part 7d. https://bugzilla.mozilla.org/show_bug.cgi?id=1331662 Reimplement EvaluateString using the ExecutionContext class. https://bugzilla.mozilla.org/show_bug.cgi?id=1316078 Extract redudant code into StartOffThreadParseTask. Use an ExclusiveContext instead of a JSContext in XDR functions. Add a script decoder as a valid off-main-thread parse-task. https://bugzilla.mozilla.org/show_bug.cgi?id=900784 Add nsJSUtils functions for encoding and decoding the bytecode. https://bugzilla.mozilla.org/show_bug.cgi?id=1316081 Add XDRIncrementalEncoder to replace delazified LazyScript in the encoded XDR buffer. Add an XDRIncrementalEncoder instance on the ScriptSource. Expose a new JSAPI to incrementally encode bytecode when it is generated. https://bugzilla.mozilla.org/show_bug.cgi?id=1334091 XDR function use the sourceObject instead of the enclosingScript as argument. Brian Smith 2023-04-20 07:38:48 -05:00
  • d5d7bb5e47 Issue #1691 - Part 7d: Allow dynamic import in cases where there's no referencing script or module. Support dynamic import from classic scripts by creating ClassicScript objects and associating them with the compiled. https://bugzilla.mozilla.org/show_bug.cgi?id=1342012 This patch is incomplete, some code in ScriptLoader::EvaluateScript() could not be applied for missing dependencies. Part 7e will apply the missing dependencies and finish the patch. Brian Smith 2023-04-19 01:59:14 -05:00
  • 41eda05e57 Issue #1691 - Part 7c: Refactor ModuleScript into ClassicScript class and LoadedScript base class so we can represent all scripts that can perform dynamic import. https://bugzilla.mozilla.org/show_bug.cgi?id=1342012 Brian Smith 2023-04-18 23:43:04 -05:00
  • ba01d99e31 Issue #1691 - Part 7b: Make load request element optional. https://bugzilla.mozilla.org/show_bug.cgi?id=1342012 Brian Smith 2023-04-18 23:00:12 -05:00
  • 62be542166 Issue #1691 - Part 7a: Add a JS API to get the private value for the calling script or module. https://bugzilla.mozilla.org/show_bug.cgi?id=1342012 Brian Smith 2023-04-18 22:24:48 -05:00
  • e7d0b58e56 Issue #1691 - Part 6e: Fix problems due to divergent codebases. This gets basic dynamic import working. Fix a problem in Part 5b where Mozilla used toGCThing() and we don't. Fix a problem in Part 4 where runtime() returns nullptr in our codebase since it runs on JS Helper thread. We need to get the runtime via runtimeFromAnyThread() instead. Brian Smith 2023-04-18 11:00:34 -05:00
  • c3daecc218 Issue #1691 - Part 6d: Optimize handling of internally-created Promise objects. https://bugzilla.mozilla.org/show_bug.cgi?id=1358879 The patch uses a different test: PROMISE_FLAG_DEFAULT_REJECT_FUNCTION which doesn't exist in our codebase. It was added in this bug, which appears to be partly complete: https://bugzilla.mozilla.org/show_bug.cgi?id=1313049 Brian Smith 2023-04-11 16:42:04 -05:00
  • 9a19e9d165 Issue #1691 - Part 6c: Fix a few issues with the earlier commits. Need PNK_CALL_IMPORT and PNK_IMPORT_META in the node children list or it will abort. When porting ScriptFetchOptions support, I had 2 constructors, I picked the wrong one. Missed adding the preference javascript.options.dynamicImport to all.js. Brian Smith 2023-04-11 12:58:23 -05:00
  • 86e0057ea7 Issue #1691 - Part 6b: Initial browser support for dynamic import from module scripts. https://bugzilla.mozilla.org/show_bug.cgi?id=1342012 Factor out script fetch options from script load request classes. https://bugzilla.mozilla.org/show_bug.cgi?id=1480720 Remove support for version parameter from script loader. https://bugzilla.mozilla.org/show_bug.cgi?id=1428745 Brian Smith 2023-04-10 08:48:20 -05:00
  • 1b811bd711 Issue #1691 - Part 6a: Support private values which contain pointers to cycle-collected C++ objects https://bugzilla.mozilla.org/show_bug.cgi?id=1342012 Brian Smith 2023-04-09 12:22:33 -05:00
  • 5c09a3b3cc Issue #1691 - Part 5b: Stop modules from entraining the top-level JSScript. https://bugzilla.mozilla.org/show_bug.cgi?id=1489477 Brian Smith 2023-04-09 10:25:44 -05:00
  • c965fbdd10 Issue #1691 - Part 5: Don't pre-create module metadata object when compiling. https://bugzilla.mozilla.org/show_bug.cgi?id=1489477 Brian Smith 2023-04-09 09:49:27 -05:00