Commit graph

1,335 commits

Author SHA1 Message Date
Gaming4JC
f7154d573b Bug 1309147 - Part 5: Eliminate performance cliff when accessing CEReactions code.
Tag UXP Issue #1344
2020-01-31 07:35:50 +08:00
Gaming4JC
cc71e21e02 Bug 1309147 - Part 4: Add CEReactions for CustomElementRegistry.
Tag UXP Issue #1344
2020-01-31 07:35:47 +08:00
Gaming4JC
303037d0fc Bug 1309147 - Part 3: Implement the support for CEReactions in Codegen.
Tag UXP Issue #1344
2020-01-31 07:35:44 +08:00
Gaming4JC
0b774c0ec4 Bug 1309147 - Part 2: Add the name of 'this' value's JSObject* for codegen to generate CEReaction code.
Tag UXP Issue #1344
2020-01-31 07:35:41 +08:00
Gaming4JC
39fcec342d Bug 1309147 - Part 1: Implement the support for CEReactions in WebIDL parser.
Tag UXP Issue #1344
2020-01-31 07:35:38 +08:00
Gaming4JC
932dde0dfe Bug 1350960 - Release CustomElementReactionsStack in TabGroup thread when DocGroup is going away.
Note: In UXP we use non-Quantum thread checking implementation here.

Tag UXP Issue #1344
2020-01-31 07:35:35 +08:00
Gaming4JC
a176a0e5f2 Bug 1351979 - Change CustomElementRegistry::Define code to properly propagate out JS exceptions;
Tag UXP Issue #1344
2020-01-31 07:35:32 +08:00
Gaming4JC
bde53294f8 Bug 1347446 - Move custom element reactions stack to DocGroup.
Tag UXP Issue #1344
2020-01-31 07:35:29 +08:00
Gaming4JC
62678b52de Bug 1341693 - Don't need to check GetDocShell() when creating CustomElementRegistry;
Tag UXP Issue #1344
2020-01-31 07:35:26 +08:00
Gaming4JC
a91f703945 Bug 1309184 - Implement upgrade reaction for custom element reactions.
Tag UXP Issue #1344
2020-01-31 07:35:23 +08:00
Gaming4JC
d76a336cd0 Bug 1274159 - Part 4: Add test cases for HTMLConstructor;
Tag UXP Issue #1344
2020-01-31 07:35:20 +08:00
Gaming4JC
978d53832c Bug 1274159 - Part 3-1: Add HTMLConstructor to HTMLElement and its subclass;
Tag UXP Issue #1344
2020-01-31 07:35:14 +08:00
Gaming4JC
ed08e1aced Bug 1274159 - Part 2-2: Support HTMLConstructor WebIDL extended attribute for custom elements;
Tag UXP Issue #1344
2020-01-31 07:35:10 +08:00
Gaming4JC
64e957cc9b Bug 1274159 - Part 2-1: Include the name of relevant interface in nsHTMLTagList.h;
Tag UXP Issue #1344
2020-01-31 07:35:08 +08:00
Gaming4JC
516fe49cb2 Bug 1274159 - Part 1: Support looking up definitions by using constructor as a key;
Tag UXP Issue #1344
2020-01-31 07:35:05 +08:00
Gaming4JC
a2e1955dc6 Bug 1271549 - Remove details and summary preference.
Tag UXP Issue #1344
2020-01-31 07:35:02 +08:00
Gaming4JC
e8e20e994d Bug 1276438 part 3. Align the .body setter with the spec a bit better.
There are two changes here:

1) We allow setting .body even if the root element is not an <html:html>. This is what the spec says to do, and what we used to do before the changes in bug
366200. No tests for this yet, pending https://github.com/whatwg/html/issues/3403 getting resolved.

2) We use GetBody(), not GetBodyElement(), to look for an existing thing to replace. This matters if there are <frameset>s involved.

Tag UXP Issue #1344
Tag UXP Issue #252
2020-01-31 07:34:59 +08:00
Gaming4JC
c939244e89 Bug 1276438 part 2. Move the implementation of the .body setter from nsHTMLDocument to nsIDocument.
Tag UXP Issue #1344
Tag UXP Issue #252
2020-01-31 07:34:56 +08:00
Gaming4JC
0ef352d74b Bug 1276438 part 1. Move the implementation of the .body getter from nsHTMLDocument to nsIDocument.
Tag UXP Issue #1344
Tag UXP Issue #252
2020-01-31 07:34:53 +08:00
Roy Tam
678ad26488 Merge remote-tracking branch 'origin/master' into custom 2020-01-24 09:39:16 +08:00
wolfbeast
b33c6e6dbf Issue #1366 - Fix build bustage from erroneously removing 2 function implementations. 2020-01-24 09:36:26 +08:00
wolfbeast
9d76eb5791 Issue #1354 - Clear the current context when MakeCurrent() fails. 2020-01-24 09:29:04 +08:00
Gaming4JC
8d600c51ed Issue #1366 - Completely remove showModalDialog 2020-01-24 09:28:42 +08:00
Roy Tam
ac0a9f144e nsContentSecurityManager::CheckFTPSubresourceLoad: fix crash when viewing HTML in FTP site 2020-01-24 06:40:47 +08:00
Roy Tam
969d239b65 Merge remote-tracking branch 'origin/master' into custom 2020-01-17 09:24:31 +08:00
wolfbeast
173637496c No issue - Fix some line endings in WebGLShaderValidator.cpp 2020-01-17 09:19:03 +08:00
wolfbeast
9f7f1d457f Issue #1354 - Don't allow glsl[130,400] unless we have gpu_shader5
- Teach GLContext about gpu_shader5
- Downgrade shader language version if gpu_shader5 support isn't found.
2020-01-17 09:19:01 +08:00
Roy Tam
239002b5c9 Merge remote-tracking branch 'origin/master' into custom 2020-01-10 17:07:32 +08:00
Yaron Tausky
a0c6c89208 Make copy of list before iterating over it. 2020-01-10 17:07:00 +08:00
Roy Tam
1a197351cd Merge remote-tracking branch 'origin/master' into custom 2020-01-09 21:28:41 +08:00
Gaming4JC
8b32eff646 Bug 1379728 part 1. Remove the double-definition of the 'close' event from EventNameList.h.
Tag #1343
2020-01-09 21:28:04 +08:00
Gaming4JC
a77fa3ec13 Bug 1322938 - Put <dialog> element behind preference.
Tag #1343
2020-01-09 21:28:00 +08:00
Gaming4JC
c39b0e4fd7 Bug 1322938 - Emit close event when HTMLDialogElement.prototype.close() is called.
Tag #1343
2020-01-09 21:27:56 +08:00
Gaming4JC
900df90dae Bug 1322938 - Basic implementation of HTMLDialogElement.
Tag #1343
2020-01-09 21:27:54 +08:00
wolfbeast
9d2e51ac97 Issue #1348 - Part 2: Teach IMEState about Private Browsing mode. 2020-01-09 21:26:56 +08:00
JustOff
13aff00f59 Issue #1345 - Implement non-standard legacy CSSStyleSheet rules 2020-01-09 21:23:47 +08:00
Roy Tam
dd094ae552 patch from Sami<samiwieciekto at gmail.com> with pref guard:
Enable skipping loop filter and allow non spec compliant speedup tricks.
to enable, create new boolean pref "media.ffmpeg.skip_loop_filter" and set it to true.
2019-12-30 23:58:56 +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
08c26a9adf Issue #1118 Part 3: Add a public RemoveAllListeners method on
EventListenerManager.
2019-12-28 21:19:46 +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
Roy Tam
8db5c6f5a7 Merge remote-tracking branch 'origin/master' into custom 2019-12-20 09:08:13 +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