1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-07-20 22:18:32 +00:00
Commit Graph

3152 Commits

Author SHA1 Message Date
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
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
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
roytam1 ad9793b896 js: fix build 2019-12-18 10:21:07 +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
Gaming4JC bc80cb0d51 Bug 1343481 - Part 4: Add Add GeneratorObject.{isAfterYield,isAfterAwait}.
Tag #1287
2019-12-18 09:15:55 +08:00
Gaming4JC a6872d9ea3 Bug 1343481 - Part 3: Add JSOP_AWAIT and rename {yieldIndex,yieldOffset} to {yieldAndAwaitIndex,yieldAndAwaitOffset}.
Tag #1287
2019-12-18 09:15:54 +08:00
Gaming4JC 45337018ef Bug 1343481 - Part 2: Stop using StarGegerator for async function.
Tag #1287
2019-12-18 09:15:52 +08:00
Gaming4JC 7eb5d46c11 Bug 1343481 - Part 1: Remove {JSFunction,JSScript,LazyScript}.isGenerator() method.
Tag #1287
2019-12-18 09:15:51 +08:00
Gaming4JC 4ce0bb5e0a Bug 1336705 - Part 2: Add self-hosting intrinsics for resolving/rejecting Promises and adding reactions.
Tag #1287
2019-12-18 09:15:50 +08:00
Gaming4JC f15e675b86 Bug 336705 - Part 1: Support creating and resolving Promises without resolve/reject functions.
Useful for internally-created Promises that'll only ever be resolved/rejected internally.

Tag #1287
2019-12-18 09:15:49 +08:00
Gaming4JC 70cbae88ea Bug 1317376 - Part 2: Detect Promise self-resolution when resolving through the Promise resolving fast path.
Tag #1287
2019-12-18 09:15:47 +08:00
Gaming4JC 300f97150c Bug 1317376 - Part 1: Remove unreachable code and remnants from the self-hosted implementation.
Tag #1287
2019-12-18 09:15:46 +08:00
roytam1 b241d88b7d remove official brandings, closes #10. 2019-12-17 10:21:20 +08:00
wolfbeast 0d40de5915 Issue #1317 - Increase the XML nested depth limit to 2048.
- Converts from macro to static const for the limit.
- Uses a check against the declared type for the counter instead of
  a hard-coded one.

This resolves #1317.
2019-12-13 09:59:15 +08:00
wolfbeast 9bb203773c Update default bookmarks toolbar FAQ entry to redirect to forum. 2019-12-12 13:32:04 +08:00