Roy Tam
04671d8d62
patch from Sami<samiwieciekto at gmail.com>: Lowered mMaxTextureSize from 4096 to 2048 to allow older graphic cards
2019-12-30 23:57:31 +08:00
Roy Tam
b74770e3f1
Merge remote-tracking branch 'origin/master' into custom
2019-12-28 21:20:53 +08:00
wolfbeast
4103320dde
Issue #1118 - Part 9: Don't allow reuse of unlinked CallbackObjectHolder.
2019-12-28 21:20:08 +08:00
wolfbeast
f255a1e606
Issue #1118 - Part 8: Remove no-longer-used mDidDocumentOpen and
...
CheckForOutdatedParent()
This was only used to check for cases when document.open() changed the
global, and elements being inserted into the document needing a new
reflector as a result.
Since document.open() no longer changes the global, this code is no
longer needed.
2019-12-28 21:20:07 +08:00
wolfbeast
10e59cb5a9
Issue #1118 - Part 7: Remove no-longer-used mWillReparent debug code.
2019-12-28 21:20:06 +08:00
wolfbeast
b753aec164
Issue #1118 - Part 6: Fix various tests that are no longer correct.
...
The behavior change of document.open() requires these tests to be
changed to account for the new spec behavior.
2019-12-28 21:20:04 +08:00
wolfbeast
fc5d61608c
Issue #1118 - Part 5: Change the way document.open() works
...
This changes the work we do for document.open() in the following ways:
- We no longer create a new Window when doing document.open().
We use the same Window but remove all the event listeners on the
existing DOM tree and Window before removing the document's existing
children to provide a clean slate document to use for .write().
- We no longer create a session history entry (previously would be a
wyciwyg URI). We now replace the current one, effectively losing the
entry for the original document.
- We now support document.open() on windowless documents.
2019-12-28 21:20:03 +08:00
wolfbeast
ab6131d1e6
Issue #1118 Part 4: Allow UpdateURLAndHistory to work even if there's no
...
root session history.
This can happen when someone does a document.open() on a document that
has no session history.
2019-12-28 21:19:48 +08:00
wolfbeast
08c26a9adf
Issue #1118 Part 3: Add a public RemoveAllListeners method on
...
EventListenerManager.
2019-12-28 21:19:46 +08:00
wolfbeast
7d52521f95
Issue #1118 Part 2: Allow UpdateURLAndHistory to work even if mOSHE is
...
null, if we're doing a replace.
We're going to end up hitting this if someone does a document.open()
before mOSHE has been set. We shouldn't need to worry about mLSHE,
because the document.open() will cancel the corresponding load.
2019-12-28 21:19:45 +08:00
wolfbeast
c6694a0c4c
Issue #1118 Part 1: Split out part of nsDocShell::AddState into a
...
separate method.
This implements the "URL and history update steps" from the HTML spec.
See https://html.spec.whatwg.org/multipage/history.html
2019-12-28 21:19:44 +08:00
athenian200
42659b995e
Fix typo.
2019-12-28 21:19:27 +08:00
athenian200
a7054c85a4
Issue #1332 - Backport promise-based media playback
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1244768
I happened to find an older version of the promise-based media playback patch in Bugzilla, the one that was originally submitted for review. It had the DocShell changes I already knew how to deal with, and had fewer of the audio wrapper and nsISupports changes that were confusing me in the later patch. I was able to do a better job getting this back into a UXP-appropriate configuration than I could have with the final version.
I'm honestly still a little unsure about some of the minor refactoring done in the patch itself, insisting on already_AddRefed promises and such, but I don't really know how to avoid those completely. Still, I think it's better than it was.
2019-12-28 21:19:26 +08:00
Roy Tam
bd793d6099
Merge remote-tracking branch 'origin/master' into custom
2019-12-21 07:13:32 +08:00
wolfbeast
72b9aaa248
Issue #1219 - Align computed DOM styles with mainstream behvior.
...
This updates our behavior for computed DOM styling to no longer return
null on elements that have no display, but return a 0-length (empty)
style instead and don't throw. For this we stop looking at having a
presentation for the style and just look at the document instead.
This resolves #1219
2019-12-21 07:12:56 +08:00
wolfbeast
f24dcfdaa4
Enable layers acceleration by default on GTK platforms.
...
"Why is this still `blocked by default for platform`.. Everyone on Linux
forces it on anyway once they are aware of it." -- Tobin
Tag #1319
2019-12-21 07:12:55 +08:00
Roy Tam
8db5c6f5a7
Merge remote-tracking branch 'origin/master' into custom
2019-12-20 09:08:13 +08:00
wolfbeast
fac859839e
Issue #1316 - Reduce compiler warnings in ICU
...
This add a few disabled compiler warnings to the compiler flags on MSVC
and specifically filters out the RTTI disabling CL flag to prevent CLI
override warnings.
This resolves #1316
2019-12-20 09:07:40 +08:00
wolfbeast
d3e44892bf
Issue #1322 - Part 4: Fix WebIDL.py parser for line endings and wrong
...
IDL name
2019-12-20 09:07:28 +08:00
wolfbeast
15672c6231
Issue #1322 - Part 3: Remove DOM promise interface gunk
...
Based on work by Boris Zbarsky
2019-12-20 09:07:27 +08:00
wolfbeast
48adbfd454
Issue #1322 - Part 2: Remove --enable-sm-promise buildconfig switch.
2019-12-20 09:07:26 +08:00
wolfbeast
40f99b202a
Issue #1322 - Part 1: Remove the DOM Promise guts.
...
This removes all the parts guarded by SPIDERMONKEY_PROMISE
2019-12-20 09:07:24 +08:00
Roy Tam
60068e20c5
[basilisk] toggle some settings for better compatibility
2019-12-18 20:31:44 +08:00
Roy Tam
ad9793b896
js: fix build
2019-12-18 10:21:07 +08:00
Roy Tam
0074a7d041
js: fix build
2019-12-18 10:17:48 +08:00
Roy Tam
98c442a7d4
Merge remote-tracking branch 'origin/master' into custom
2019-12-18 09:19:22 +08:00
Matt A. Tobin
0b1090f40e
No Issue - Fix indentation and account for system libevent in ipc/chromium/moz.build
2019-12-18 09:18:35 +08:00
Gaming4JC
d16b90c099
Bug 1454285 - Part 2: Disallow using innermostEmitterScope while the value does not match the bytecode environment.
...
Tag #1287
2019-12-18 09:17:13 +08:00
Gaming4JC
85d4d59f04
Bug 1454285 - Part 1: Specify the current scope when emitting await and .generator.
...
Tag #1287
2019-12-18 09:17:11 +08:00
Gaming4JC
b476f2e713
Bug 1352312 - Enable Async Iteration.
...
Tag #1287
2019-12-18 09:17:10 +08:00
Gaming4JC
f08c44f010
Bug 1390082 - Implement AsyncGeneratorQueue with simpler array operations.
...
Tag #1287
Note: Without ReadableStream implementation
2019-12-18 09:17:09 +08:00
Gaming4JC
586cd0b71b
Bug 1379525 - Part 2: Properly handle rejection in async-from-sync iteration.
...
Tag #1287
2019-12-18 09:17:08 +08:00
Gaming4JC
9e8369d01f
Bug 1379525 - Part 1: Await on the value before yielding or returning inside async generator.
...
Tag #1287
2019-12-18 09:17:06 +08:00
Gaming4JC
ba1cf5608c
Bug 1364608 - Stash rval in AsyncIteratorClose.
...
Tag #1287
2019-12-18 09:17:05 +08:00
Gaming4JC
3206741afa
Bug 1355399 - Switch property retrieval in Async-from-Sync Iterator prototype methods.
...
Tag #1287
2019-12-18 09:17:04 +08:00
Gaming4JC
9cecb72f37
Bug 1331092 - Part 11: Await on the innerResult.value when innerResult.done is true in yield*.
...
Tag #1287
2019-12-18 09:17:02 +08:00
Gaming4JC
9379133c2d
Bug 1331092 - Part 9: Implement for-await-of.
...
Tag #1287
2019-12-18 09:17:01 +08:00
Gaming4JC
06b3cb6ccd
Bug 1331092 - Part 8: Support JSOP_TOASYNCITER in JIT.
...
Tag #1287
2019-12-18 09:17:00 +08:00
Gaming4JC
142e8bf444
Bug 1331092 - Part 7: Implement Async Generator yield*.
...
Tag #1287
2019-12-18 09:16:59 +08:00
Gaming4JC
67b8cd621a
Bug 1331092 - Part 6: Support JSOP_TOASYNCGEN in JIT.
...
Tag #1287
2019-12-18 09:16:57 +08:00
Gaming4JC
b5bcbfe58c
Bug 1331092 - Part 2: Implement Async Generator except yield*.
...
Tag #1287
2019-12-18 09:16:56 +08:00
Gaming4JC
10b93afff4
Bug 1331092 - Part 2: Implement Async Generator except yield*.
...
Tag #1287
2019-12-18 09:16:52 +08:00
Gaming4JC
c8d569d1b8
Bug 1331092 - Part 1: Add Symbol.asyncIterator.
...
Tag #1287
2019-12-18 09:16:06 +08:00
Gaming4JC
e9ad9eab15
Bug 1331092 - Part 0: Define NOMINMAX to avoid compile error from min/max macro on windows.
...
Tag #1287
2019-12-18 09:16:05 +08:00
Gaming4JC
22cd310e82
Bug 1317389: Change property attributes for generator and async functions to match ES2015/2017.
...
Tag #1287
2019-12-18 09:16:03 +08:00
Gaming4JC
086d14cb8b
Bug 1344753 - Update for-of stack depth in ControlFlowGenerator::processWhileOrForInLoop.
...
Tag #1287
2019-12-18 09:16:02 +08:00
Gaming4JC
c9f1fa2cda
Bug 1316098 - Optimize out result object allocation for await/return in async function.
...
Tag #1287
2019-12-18 09:16:01 +08:00
Gaming4JC
c1bdfa62fc
Bug 1343481 - Part 7: Add BytecodeEmitter::emitDotGenerator and make yield/await nodes unary.
...
Tag #1287
2019-12-18 09:15:59 +08:00
Gaming4JC
2bbebc6ebc
Bug 1343481 - Part 6: Add native functions wrapper for GetInternalError and GetTypeError.
...
Tag #1287
2019-12-18 09:15:58 +08:00
Gaming4JC
04ec8aaf1c
Bug 1343481 - Part 5: Rename AsyncFunction-related names in Promise.cpp to explicitly say Async Function.
...
Tag #1287
2019-12-18 09:15:56 +08:00