Commit Graph

200 Commits

Author SHA1 Message Date
Henri Sivonen
edffadcd1b Bug 218415 - Add window.event. r=smaug.
window.event is set on the wrong window when the target and the
callback are from different realms and the callback is an XPCOM
callback.

MozReview-Commit-ID: HXeUIicdMuT
2018-04-04 15:57:17 +03:00
Arnaud Bienner
53063e13d2 Bug 1471843: Remove audioWorklet attribute from Window. r=baku,karlt
MozReview-Commit-ID: 9SJRZ2keJpb
2018-07-03 16:58:16 +02:00
Bogdan Tara
b3a055c4f8 Backed out changeset 306ec43e7ab9 (bug 218415) for failures on track-remove-track-inband.html CLOSED TREE 2018-07-04 19:56:18 +03:00
Henri Sivonen
0720d6417c Bug 218415 - Add window.event. r=smaug.
window.event is set on the wrong window when the target and the
callback are from different realms and the callback is an XPCOM
callback.

MozReview-Commit-ID: HXeUIicdMuT
2018-04-04 15:57:17 +03:00
Margareta Eliza Balazs
06011ec139 Backed out changeset 27257fdd6c67 (bug 218415) for xpcshell failures in js/xpconnect/tests/unit/test_nuke_sandbox_event_listeners.js on a CLOSED TREE 2018-07-04 16:46:52 +03:00
Henri Sivonen
155557a2e7 Bug 218415 - Add window.event. r=smaug.
window.event is set on the wrong window when the target and the
callback are from different realms and the callback is an XPCOM
callback.

MozReview-Commit-ID: HXeUIicdMuT
2018-04-04 15:57:17 +03:00
Jeff Gilbert
d7732c4820 Bug 1469376 - Initial stubs for WebGPU sketch API. - r=kvark,qdot
MozReview-Commit-ID: 3MZLQDNpHBk
2018-06-13 10:43:48 -07:00
arthur.iakab
2476395d52 Merge inbound to mozilla-central a=merge 2018-07-03 11:55:46 +03:00
Ben Kelly
67b5a8ee8b Bug 1462772 P1 Add a fallible nsIGlobalObject::GetServiceWorkerRegistration() method. r=mrbkap 2018-07-02 07:44:18 -07:00
Chris Pearce
6d0c39faee Bug 1463919 - Add AutoplayRequest to encapsulate asking for autoplay permission. r=smaug
Add an implementation of nsIContentPermissionRequest to encapsulate requesting
permission from the user to autoplay audible media.

All documents in the tab request permission using the top level document's
origin, so the AutoplayRequest instance for a tab is stored on the top level
content window of the tab.

AutoplayRequest ensures that there's only a single prompt shown at once.

MozReview-Commit-ID: 2u3aLnEa21z
2018-06-22 11:57:24 +12:00
Jeff Gilbert
70a22b2878 Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Emilio Cobos Álvarez
0348c342b8 Bug 1470930: Use enums for passing arguments for event dispatch. r=smaug
MozReview-Commit-ID: DsNuF7GAflJ
2018-06-26 18:22:06 +02:00
Ben Kelly
9598680ef1 Bug 1469941 Note DOMContentLoaded on the ClientSource and trigger service worker update in appropriate process. r=mrbkap 2018-06-23 10:11:47 -07:00
Andrea Marchesini
7f0a492d62 Bug 1268889 - Implement Clear-Site-Data header - part 3 - reload contexts, r=smaug 2018-06-20 11:57:50 -04:00
Narcis Beleuzu
8db6a72788 Backed out 4 changesets (bug 1268889) for Windows GTest failures. CLOSED TREE
Backed out changeset da427a67372e (bug 1268889)
Backed out changeset 97528847b7b7 (bug 1268889)
Backed out changeset b2320061fbcb (bug 1268889)
Backed out changeset dd3b7047ea6f (bug 1268889)
2018-06-21 16:51:55 +03:00
Andrea Marchesini
e15ee03e84 Bug 1268889 - Implement Clear-Site-Data header - part 3 - reload contexts, r=smaug 2018-06-20 11:57:50 -04:00
Blake Kaplan
17903db08a Bug 1419297 - Don't clear mCustomElements in FreeInnerObjects. r=smaug
The cycle collecter should make sure the cycle here gets collected and
clearing it causes us to fail a wpt test.

MozReview-Commit-ID: 4kL69h0AR9q
2018-06-07 17:02:32 -07:00
Miko Mynttinen
3df26bc8a5 Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj
MozReview-Commit-ID: HpdFXqQdIOO
2018-06-01 17:59:07 +02:00
Jan de Mooij
1749c0b67e Bug 1464772 part 1 - Make JS_GetIsSecureContext take a realm instead of compartment and move to JS namespace. r=bz 2018-06-03 12:22:28 +02:00
Emilio Cobos Álvarez
4b8b5e1717 Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Jan de Mooij
994f7315f8 Bug 1464374 part 9 - Turn JS_SetCompartmentPrincipals into JS::SetRealmPrincipals. r=bz 2018-05-31 11:28:50 +02:00
Boris Zbarsky
a4c9de02b0 Bug 1463889 part 3. Get rid of nsIDOMWindowCollection. r=qdot 2018-05-24 23:32:19 -04:00
Boris Zbarsky
045986de45 Bug 1463889 part 1. Switch nsPIDOMWindowOuter::GetFrames to returning an nsDOMWindowList. r=qdot 2018-05-24 23:32:19 -04:00
Noemi Erli
e10c8e580d Backed out 3 changesets (bug 1462879) for wpt failures in nav2_test_document_open.html and mochitest failures in test_resource_timing.html on a CLOSED TREE
Backed out changeset 1b3a818279f3 (bug 1462879)
Backed out changeset 2f2b2965aa89 (bug 1462879)
Backed out changeset f3058ee77146 (bug 1462879)
2018-05-24 19:13:49 +03:00
Andrea Marchesini
ec9288f546 Bug 1462879 - PerformanceNavigationTiming must be notified correctly, r=valentin, r=smaug 2018-05-24 14:58:43 +02:00
Kris Maglione
0e9ef0c4fc Bug 1463287: Add QueryInterface helper macro for concrete class types. r=bz
Using concrete class types with static IIDs in QueryInterface methods is a
pretty common pattern which isn't supported by any existing helper macros.
That's lead to separate ad-hoc implementations, with varying degrees of
dodginess, being scattered around the tree.

This patch adds a helper macro with a canonical (and safe) implementation, and
updates existing ad-hoc users to use it.

MozReview-Commit-ID: HaTGF7MN5Cv
2018-05-21 16:33:18 -07:00
Jan de Mooij
e5f8a28c84 Bug 1461292 part 1 - Rename JSAutoCompartment to JSAutoRealm. r=bz,luke 2018-05-16 10:53:16 +02:00
Emilio Cobos Álvarez
f276c14053 Bug 1459871: Remove other getPropertyCSSValue-related interfaces. r=bz
I can land the removal behind a pref first if you want and all that instead.

Again, this doesn't remove the internal usage for getComputedStyle (yet).

MozReview-Commit-ID: LA157ohfLhu
2018-05-15 14:05:13 +02:00
Adrian Wielgosik
93eb294385 Bug 1460940 - Clean up most remaining C++-side uses of nsIDOMDocument. r=bz
MozReview-Commit-ID: LKRnyDPNlle
2018-05-11 19:46:15 +02:00
Boris Zbarsky
5d017f96cf Bug 1387143 part 29. Remove nsISelection. r=mats 2018-05-08 13:52:42 -04:00
Chris Peterson
5d6b16ea3b Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent

MozReview-Commit-ID: KuUsnVe2h8L
2018-04-28 12:50:58 -07:00
Andreas Farre
15334ccad7 Bug 1450066 - Fall back to 0 if setInterval interval not supplied. r=bkelly 2018-05-03 06:20:00 +03:00
Olli Pettay
243811f245 Bug 1455819 - Crash in nsGlobalWindowInner::CallOnChildren<T>, r=nika 2018-04-30 21:02:15 +03:00
Emilio Cobos Álvarez
4da7952197 Bug 1457166: Fire online / offline events at the window. r=bz
MozReview-Commit-ID: 2v5zNwM9qSh
2018-04-28 09:38:53 +02:00
Brindusan Cristian
b32f262b11 Backed out changeset b543167ab064 (bug 1457166) for mochitest failures on test_bug336682_1.html CLOSED TREE 2018-04-27 15:44:00 +03:00
Emilio Cobos Álvarez
ca65a57392 Bug 1457166: Fire online / offline events at the window. r=bz
MozReview-Commit-ID: 2v5zNwM9qSh
2018-04-27 13:39:02 +02:00
Boris Zbarsky
599ef690cf Bug 1455674 part 16. Remove most use of nsIDOMElement in dom. r=qdot 2018-04-26 23:37:34 -04:00
Boris Zbarsky
d31be385d3 Bug 1455674 part 14. Remove use of nsIDOMElement in layout. r=qdot 2018-04-26 23:37:33 -04:00
Boris Zbarsky
e501fdf1fd Bug 1457156. Rename nsPIDOMWindow::mFocusedNode to reflect that it's an Element now. r=mccr8 2018-04-26 15:28:30 -04:00
shindli
55275cebc3 Backed out 2 changesets (bug 1457155, bug 1457156) for B failures in builds/worker/workspace/build/src/dom/html/HTMLObjectElement.cpp on a CLOSED TREE
Backed out changeset 8b2a6b54336c (bug 1457155)
Backed out changeset 4e267d999797 (bug 1457156)
2018-04-27 01:34:37 +03:00
Boris Zbarsky
633fcbc890 Bug 1457156. Rename nsPIDOMWindow::mFocusedNode to reflect that it's an Element now. r=mccr8 2018-04-26 15:28:30 -04:00
Emilio Cobos Álvarez
1592c46ebb Bug 1455885: Inline and make document casts fatally assert. r=bz
For consistency with AsElement / AsContent / AsDocumentFragment, etc.

MozReview-Commit-ID: 8GSj8R9hLBe
2018-04-26 17:05:12 +02:00
Boris Zbarsky
8041126861 Bug 1456588 part 4. Change nsFocusManager guts to make it clearer that the focused thing is always an Element. r=enndeakin
I couldn't find a good way to make this incremental without adding QIs and
AsElement() in various places....
2018-04-26 10:37:47 -04:00
Dão Gottwald
c58c4db572 Bug 1455596 - Remove support for <panel backdrag="true"/>. r=enn,ehsan 2018-04-24 22:07:20 +02:00
Boris Zbarsky
57e4b18aed Bug 1455052 part 8. Stop using nsIDOMEvent in docshell and dom. r=masayuki
MozReview-Commit-ID: ASkuyN3xSwB
2018-04-20 12:55:30 -04:00
Boris Zbarsky
5f0f9d3fb4 Bug 1429903 part 4. Remove nsIDOMEventTarget. r=mccr8
MozReview-Commit-ID: 9XuenUHxfPx
2018-04-20 00:49:30 -04:00
Boris Zbarsky
feb1c728d8 Bug 1429903 part 3. Remove C++ uses of nsIDOMEventTarget. r=mccr8
MozReview-Commit-ID: 4NdssvnWn0H
2018-04-20 00:49:30 -04:00
shindli
35293e36cf Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-17 01:45:58 +03:00
Ben Kelly
a523eb2dbe Bug 1451913 P10 Make the inner window explicitly disconnect the IDBFactory. r=baku 2018-04-16 06:08:53 -07:00
Ben Kelly
ed25ecdc3b Bug 1451913 P5 Migrate the IDBFactory to the new window on document.open(). r=smaug 2018-04-16 06:08:52 -07:00