Commit graph

4,646 commits

Author SHA1 Message Date
janekptacijarabaci
95390009cc Bug 1147371: Implement calling IteratorClose and "return" on iterators in yield*
Issue #74
2019-02-15 23:39:07 +08:00
janekptacijarabaci
d36d40760a Bug 1147371: Implement IteratorClose for array destructuring
Issue #74
2019-02-15 23:39:05 +08:00
janekptacijarabaci
aa954171ae Bug 1147371: Convert self-hosted code that need to call IteratorClose to use for-of
Issue #74
2019-02-15 23:39:03 +08:00
janekptacijarabaci
10ee43a416 Bug 1147371: Rename allowContentSpread to allowContentIter
Issue #74
2019-02-15 23:39:02 +08:00
janekptacijarabaci
5f3e5dc3fb Bug 1147371: Implement IteratorClose for for-of
Issue #74
2019-02-15 23:39:00 +08:00
wolfbeast
97197f29bf Silence some ICU warning spew 2019-02-15 23:38:59 +08:00
janekptacijarabaci
2f27d8433c Bug 1204028: Evaluate LHS reference before RHS in destructuring
Issue #73
[Depends on] Bug 1147371: Implement IteratorClose
2019-02-15 23:38:57 +08:00
janekptacijarabaci
078b9f3edc Bug 1322314 - Do not emit ParseNode twice in BytecodeEmitter::emitDestructuringOpsArray
Issue #73
[Depends on] Bug 1147371: Implement IteratorClose
2019-02-15 23:38:56 +08:00
janekptacijarabaci
4d3e61136f Bug 1322314 - Disallow emitting ParseNode twice
Issue #73
[Depends on] Bug 1147371: Implement IteratorClose
2019-02-15 23:38:54 +08:00
janekptacijarabaci
1fd083e81c Follow up: A opening bracket { was added; Added "function()->explicitName()" instead of "function()->name()"
Issue #78
2019-02-15 23:38:53 +08:00
janekptacijarabaci
2c3fecf0f3 Part 6: Update browser and dom tests to follow displayName change
Issue #78
2019-02-15 23:38:51 +08:00
janekptacijarabaci
359afc3ad5 Part 5: Update devtools to follow displayName change
Issue #87
2019-02-15 23:38:50 +08:00
janekptacijarabaci
f9950a2c9c Part 4: Fix existing tests
Issue #87
2019-02-15 23:38:48 +08:00
janekptacijarabaci
7bfe087f0c Part 3: Support JSOP_SETFUNNAME in Baseline and Ion
Issue #87
2019-02-15 23:38:47 +08:00
janekptacijarabaci
34fe54e4e8 Part 2: Call NameFunctions after emitting
Issue #78
2019-02-15 23:38:45 +08:00
janekptacijarabaci
748c69d7fd Part 1: Implement ES6 function name property semantics
Issue #78
2019-02-15 23:38:44 +08:00
janekptacijarabaci
3b34f87a5b Bug 1317309: Throw a TypeError when passing a Symbol value to ToAtom
Issue #78
[Depends on] Bug 883377: Implement ES6 function "name" property
semantics
2019-02-15 23:38:42 +08:00
janekptacijarabaci
3b1c3ec605 Bug 1320042: Rename BytecodeEmitter::emitConditionallyExecuted{SOMETHING} to BytecodeEmitter::emit{SOMETHING}InBranch
Issue #78
[Depends on] Bug 883377: Implement ES6 function "name" property
semantics
2019-02-15 23:38:40 +08:00
janekptacijarabaci
e7ee7caf1e Bug 1320388: Move JSFunction::HAS_REST to JSScript and LazyScript
Issue #78
[Depends on] Bug 883377: Implement ES6 function "name" property
semantics
2019-02-15 23:38:38 +08:00
janekptacijarabaci
d3ffa46e36 Update RegExp Xray code
Issue #77
2019-02-15 23:38:37 +08:00
janekptacijarabaci
6e997648ba Handle RegExp correctly in devtools
Issue #77
2019-02-15 23:38:35 +08:00
janekptacijarabaci
e671c0357b Tests
Issue #77
2019-02-15 23:38:34 +08:00
janekptacijarabaci
d275a63a71 Use ordinary object for RegExp prototype
Issue #77
2019-02-15 23:38:32 +08:00
janekptacijarabaci
49ce6a7928 Bug 1323868: Report object allocation failure when running off-main-thread
Issue #77
[Depends on] Bug 1192038: RegExp.prototype should be an ordinary object
2019-02-15 23:38:31 +08:00
janekptacijarabaci
7f0f087cff Blocklist update (follow up for "AntiVirus for Firefox")
Issue https://github.com/MoonchildProductions/Pale-Moon/issues/1644
2019-02-15 23:38:29 +08:00
janekptacijarabaci
09ace5ee98 Add TI for error properties assigned by the initial shape (follow up) 2019-02-15 23:38:28 +08:00
janekptacijarabaci
d3df9b7b8b Bug 1320198: Land additional Error prototype test 2019-02-15 23:38:26 +08:00
janekptacijarabaci
b31e40926e Bug 1319952: Assertion failure: isNurseryAllocAllowed(), at js/src/gc/Allocator.cpp:79 2019-02-15 23:38:25 +08:00
janekptacijarabaci
74e5882176 Tests 2019-02-15 23:38:23 +08:00
janekptacijarabaci
38fabf8122 Add TI for error properties assigned by the initial shape 2019-02-15 23:38:22 +08:00
janekptacijarabaci
dd09fc2495 Simplify Error Xray code 2019-02-15 23:38:20 +08:00
janekptacijarabaci
4fad420bb8 Handle the now ordinary error prototype object in stack 2019-02-15 23:38:19 +08:00
janekptacijarabaci
105cbadae7 Use ordinary objects for Error prototypes 2019-02-15 23:38:17 +08:00
janekptacijarabaci
b0fe82b857 Set "secureConnectionStart" to 0 for pages with HTTP scheme
Issue #67
2019-02-15 23:38:16 +08:00
janekptacijarabaci
231685e644 Remove strict arguments poison pill for "caller" property per ES2017 2019-02-15 23:38:14 +08:00
janekptacijarabaci
04e171e0a4 Correctly tokenize valid JS names when using Unicode mathematical alphanumeric symbols as variable name
Issue https://github.com/MoonchildProductions/Pale-Moon/issues/1647
2019-02-15 23:38:13 +08:00
janekptacijarabaci
0e7a16c088 Bug 755821: Function() should use the parser's argument parsing code 2019-02-15 23:38:10 +08:00
janekptacijarabaci
e7fdd26fde Bug 1318017: Call GetPrototypeFromConstructor for generator/async function and Intl constructors
[Depends on] Bug 755821: Function() should use the parser's argument
parsing code
2019-02-15 23:38:09 +08:00
Pale Moon
093e83da1a Add extra check for path traversal sanity v2. 2019-02-15 23:38:07 +08:00
wolfbeast
869e2c87e5 Revert "Add extra check for path traversal sanity."
This reverts commit 41bd3e2599696771485c9dc75a7e27b94c0597fb.
2019-02-15 23:38:06 +08:00
wolfbeast
29100ca13a Bug 1426002. Bail out of document.open if beforeunload tears things down. r=mystor 2019-02-15 23:38:04 +08:00
wolfbeast
6790fd483b Be more explicit with a lock. 2019-02-15 23:38:03 +08:00
wolfbeast
01de5bc76a Add extra check for path traversal sanity. 2019-02-15 23:38:01 +08:00
wolfbeast
39e63a6981 Use origin instead of documentURI for WebRTC permission requests, when available. 2019-02-15 23:38:00 +08:00
wolfbeast
04caaa6539 Handle same-compartment wrappers in TypedArray methods.
CallTypedArrayMethodIfWrapped (and the CallNonGeneric machinery throughout the
engine) unwraps the `this` argument, but the other arguments are only rewrapped
for the target compartment.

The pattern being used before this patch to get the length of a TypedArray or
possible TypedArray wrapper is:
`callFunction(CallTypedArrayMethodIfWrapped, O, O, "TypedArrayLength")`
The first `O` is the `this` value and the second is an argument. If `O` is a
cross-compartment wrapper, this works fine. The first `O` is unwrapped, revealing
the actual TypedArray object; the second `O` is rewrapped for that TypedArray's
compartment, producing the same TypedArray.
However, if `O` is a same-compartment wrapper, this doesn't work. The first `O` is
unwrapped, revealing the actual TypedArray object in the same compartment;
rewrapping the other `O` does nothing to it, since it is already an object in the
target compartment. Thus TypedArrayLength receives a `this` value that's an
unwrapped TypedArray, but an argument that is still a wrapper.

The fix is to have CallTypedArrayMethodIfWrapped targets only expect `this`
to be an unwrapped TypedArray.
2019-02-15 23:37:58 +08:00
wolfbeast
df053b80f5 Set up the "DRM not available" messages in a saner way. 2019-02-15 23:37:57 +08:00
wolfbeast
03078aa806 Bug 1416940; r=snorp 2019-02-15 23:37:55 +08:00
Karl Tomlinson
c86a78aa94 Bug 1426603 - Fallback from audio callback to system clock driver on error only once. r=padenot, a=RyanVM
Usually, mShouldFallbackIfError has been reset to false in DataCallback()
before Stop() is called.  However, if fallback to a system clock driver due to
cubeb error had already occurred, then mShouldFallbackIfError would not have
been reset, and Stop() is still called.  With mShouldFallbackIfError still
true, a cubeb error in stop would have created another fallback thread.

I expect that resetting mShouldFallbackIfError in Stop() would also be an
effective alternative solution, but resetting on StateCallback() happens
earlier, which would be an advantage if any additional errors could possibly
be reported to StateCallback().

MozReview-Commit-ID: E9j7PQmS3O4
2019-02-15 23:37:54 +08:00
janekptacijarabaci
69b9980815 Deleting "secureConnectionStart" from a test file
Issue #69
2019-02-15 23:37:52 +08:00
janekptacijarabaci
2884c049cd Round down to the nearest 2ms (instead of 1ms)
Issue #67

https://github.com/MoonchildProductions/UXP/pull/34/commits/c8355b22c047c9737e32f096b816edbb8b0fa181

a32b7f7c4e

f0b727eac2
2019-02-15 23:37:51 +08:00