Michael Layzell
76969f2737
Bug 1310345 - Change FindChildWithName and related methods to take nsAString& instead of char16_t*, r=bz
...
MozReview-Commit-ID: 4aQwYX9ObcN
2016-10-27 15:53:35 -04:00
Michael Layzell
f9eea2d135
Bug 1303196 - Part 2: Connect the DocGroup and TabGroup objects to nsGlobalWindow and nsDocument, ensuring that Opener is set early enough that it is correct, r=smaug
...
MozReview-Commit-ID: 3rZfLw3dXkF
2016-10-27 15:53:35 -04:00
Ben Kelly
0983850a63
Bug 1303167
P6 Rename new suspend and freeze methods to final names. r=smaug
2016-10-26 10:20:16 -07:00
Ben Kelly
9d590cbd9f
Bug 1303167
P4 Make ModalState use new window suspend method. r=smaug
...
* * *
Bug 1303167
P4 interdiff 0001 Review feedback
2016-10-26 10:20:16 -07:00
Ben Kelly
a3c99a49db
Bug 1303167
P3 Remove old window suspend and freeze methods. r=smaug
2016-10-26 10:20:15 -07:00
Ben Kelly
bf0ca72f77
Bug 1303167
P2 Use new window suspend and freeze methods. r=smaug
...
* * *
Bug 1303167
P2 interdiff 0001 Review feedback
2016-10-26 10:20:15 -07:00
Ben Kelly
addf6ab4f4
Bug 1303167
P1 Add new window suspend and freeze methods. r=smaug
...
* * *
Bug 1303167
P1 Interdiff 001 Address review feedback
2016-10-26 10:20:15 -07:00
Carsten "Tomcat" Book
b46ba94f25
Merge mozilla-central to mozilla-inbound
2016-10-25 12:36:02 +02:00
Carsten "Tomcat" Book
217631aa6d
Backed out changeset 228cc133fe6b (bug 1198381) for causing increased number of hangs in navigate() in marionette tests
2016-10-25 12:34:22 +02:00
Carsten "Tomcat" Book
2b410144bf
Backed out changeset 24839edcf0ef (bug 1198381)
2016-10-25 12:33:00 +02:00
Carsten "Tomcat" Book
06858c2f4d
Backed out changeset ffaf3d371130 (bug 1198381)
2016-10-25 12:32:58 +02:00
Carsten "Tomcat" Book
1895ce466b
Backed out changeset eb2606332cb8 (bug 1198381)
2016-10-25 12:32:54 +02:00
Lars T Hansen
9f439ac1de
Bug 1302036 - DOM changes to conform to new JS engine API for cloning. r=baku
...
--HG--
extra : rebase_source : bc9bda42eb0769f2fe76d702a41278e01bb497d7
2016-10-24 15:14:45 +02:00
Andreas Farre
1380385c69
Bug 1198381 - Implement the requestIdleCallback feature, r=froydnj,mattwoodrow,smaug
...
Expose requestIdleCallback on Window and implement running callbacks
in idle periods by posting rICs to the main threads idle queue.
MozReview-Commit-ID: KSYQsyaZ6is
--HG--
extra : rebase_source : 4bdd578b654d05cab600489d30d859452d1bc888
2016-08-22 14:52:45 +02:00
Andreas Farre
68e6086f4b
Bug 1198381 - Extend setTimeout handling in nsGlobalWindow, r=smaug
...
The requestIdleCallback feature behaves in many ways as setTimeout
since it takes an optional timout when the idle callback will be
called regardless of the user agent being idle or not. This means that
the same mechanisms controlling setTimeout are needed for
requestIdleCallback.
MozReview-Commit-ID: 9mESsJnUexf
--HG--
extra : rebase_source : 82d92f515f24e08fe7da78afe7185c8ceb98a096
2016-08-22 15:07:50 +02:00
Andreas Farre
0981b9665a
Bug 1198381 - Extract nsITimeoutHandler from nsIScriptTimeoutHandler. r=smaug
...
MozReview-Commit-ID: HJHrbodWYVf
--HG--
extra : rebase_source : e51785327f84f08829e1464f1789281fc92b95ad
2016-10-05 14:26:08 +02:00
Andreas Farre
979adce9e5
Bug 1198381 - Move/rename nsTimeout to Timeout, r=smaug
...
MozReview-Commit-ID: 1WrH2ZbOuzj
--HG--
extra : rebase_source : a010060badf2ffbfeadb1d7f8cc29376c214bcc6
2016-08-22 14:52:19 +02:00
Boris Zbarsky
588a38e713
Bug 1222516 part 2. Add a window API for opening a window passing through a boolean indicating that no opener should be set on the result. r=mconley
2016-10-20 16:52:38 -04:00
Boris Zbarsky
c2d8d70720
Bug 1222516 part 1. Add a window API for opening a window with navigation and a given docshell loadinfo to use for the navigation. r=mconley
...
This will be used to pass through information like the triggering principal and
whatnot, as well as the boolean for not sending a referrer, for rel=noreferrer
links.
2016-10-20 16:52:38 -04:00
Boris Zbarsky
39be7c954d
Bug 1267339
part 3. Add support for the noopener window feature in windowwatcher. r=mconley
2016-10-20 16:52:38 -04:00
Boris Zbarsky
9c68071fa2
Bug 1267339
part 2. Push maintenance of the popup spam count down into the window watcher. r=mconley
2016-10-20 16:52:38 -04:00
Boris Zbarsky
fe57b51a79
Bug 1267339
part 1. Remove the unused aOpenerFullZoom argument to nsPIWindowWatcher::OpenWindow2. r=mconley
2016-10-20 16:52:37 -04:00
Jon Coppeard
556585c65f
Bug 1297558 - Remove explicit calls to Expose*ToActiveJS r=mccr8
2016-10-18 17:58:19 +01:00
Valentin Gosu
08a83ff913
Bug 1307491 - (Part 2) Remove support for per-app-offline in dom/ [nukeb2g] r=baku
...
MozReview-Commit-ID: DV58awPq98
--HG--
extra : rebase_source : 5372e7095fc5cefe2ccacfca4a3e23be76ff24fd
2016-10-17 03:58:54 +02:00
John Dai
48b937b61e
Bug 1309140 - Rename CustomElementsRegistry to CustomElementRegistry. r=wchen, r=smaug
...
MozReview-Commit-ID: 3gYTaRVcV0y
--HG--
rename : dom/base/CustomElementsRegistry.cpp => dom/base/CustomElementRegistry.cpp
rename : dom/base/CustomElementsRegistry.h => dom/base/CustomElementRegistry.h
rename : dom/webidl/CustomElementsRegistry.webidl => dom/webidl/CustomElementRegistry.webidl
2016-10-12 15:26:02 +08:00
Boris Zbarsky
3f10f5ed57
Bug 1308287 part 1. Change [NeedsSubjectPrincipal] to only do the Maybe thing for interfaces that can be exposed to workers. r=baku
...
The idea is to not make consumers think about whether the principal exists or
not when the caller knows for sure that it does.
The substantive changes are in dom/bindings, nsHTMLDocument::SetDesignMode, and
around the CanUseStorage bits. Everything else is pretty mechanical.
2016-10-10 21:07:48 -04:00
Boris Zbarsky
e5598c42f7
Bug 1269052 part 2. Add IsSecureContext on nsPIDOMWindowInner. r=bkelly
2016-10-10 15:09:00 -04:00
Sebastian Hengst
cdcc9e20da
Bug 1304829 - rename RELEASE_BUILD to RELEASE_OR_BETA: main part. r=ted,Mossop
...
MozReview-Commit-ID: 1lCt0xTMV5O
2016-10-08 11:14:49 +02:00
Xidorn Quan
cd39706e9b
Bug 1306696 part 3 - Exit fullscreen in non-e10s when no fullscreen request is proceeded. r=smaug
...
MozReview-Commit-ID: AKCwRqAImc6
--HG--
extra : rebase_source : 4658c04e2977247cada192a990d87c32eaa44833
extra : source : ddb10aa484cc28f5b4b3913e32baad8d0419fb79
2016-10-06 10:48:32 +11:00
Andrea Marchesini
7de21588c7
Bug 1306248 - Use NeedsSubjectPrincipal in DOMStorage, r=ehsan
2016-10-03 16:10:27 +02:00
Iris Hsiao
2afc902dd2
Backed out changeset a99817b61d70 (bug 1306248) for crashed @nsContentUtils::SubjectPrincipal
...
CLOSED TREE
2016-10-03 18:04:06 +08:00
Andrea Marchesini
8b8568a4db
Bug 1306248 - Use NeedsSubjectPrincipal in DOMStorage, r=ehsan
2016-10-03 10:35:57 +02:00
Tooru Fujisawa
e0c7801dc3
Bug 1290337 - Part 13: Replace Value parameter to const Value& in finalizeInBackground. r=sfink
2016-09-11 18:15:23 +09:00
Tooru Fujisawa
ba7a576409
Bug 1289050 - Part 5: Use ASCII variant of JS_ReportWarning. r=jwalden
2016-08-14 20:39:29 +09:00
Andrea Marchesini
906dc920ad
Bug 1306232 - Use NeedsSubjectPrincipal in Window, r=ehsan
2016-09-29 16:14:42 +02:00
Olli Pettay
efdc6ff74c
Bug 1303471 - TraceBlack (remote) TabChildGlobals, r=mccr8
...
--HG--
extra : rebase_source : 97ff6f64b6e46325fc9f0794b5bddd6ca41bf8d3
2016-09-28 21:27:35 +03:00
Sebastian Hengst
c4c650a082
Backed out changeset b0be7d1b7a9a (bug 1303196) for asserting in devtools test: top->mTabGroup == mTabGroup, at dom/base/nsGlobalWindow.cpp:14425. r=backout
2016-09-25 09:23:40 +02:00
Michael Layzell
eb68349900
Bug 1303196 - Add TabGroup and DocGroup objects, r=billm
...
MozReview-Commit-ID: QHxYnXmuQN
2016-09-24 19:05:41 -04:00
Andrea Marchesini
72d886f7a3
Bug 1301249 - nsIDocument::GetDocumentURI() should be fallible, r=smaug
2016-09-20 14:03:05 +02:00
Bill McCloskey
a51047b439
Bug 1279086 - Allow multiple interrupt callbacks (r=dvander)
2016-09-16 20:33:49 -07:00
Andrea Marchesini
56c54a3930
Bug 1302987 - Rename nsLocation to mozilla::dom::Location, r=smaug
...
--HG--
rename : dom/base/nsLocation.cpp => dom/base/Location.cpp
rename : dom/base/nsLocation.h => dom/base/Location.h
2016-09-16 09:18:18 +02:00
Michael Layzell
5980e6a33e
Bug 1302275
- Add a way to track Constellations (Units of related similar origin browsing contexts) to nsGlobalWindow, r=billm
...
MozReview-Commit-ID: AjbVZHEL9WZ
2016-09-14 12:22:40 -04:00
Jan de Mooij
7f794780e0
Bug 1302448 part 2 - Rename XPCJSRuntime to XPCJSContext. r=mrbkap
...
--HG--
rename : js/xpconnect/src/XPCJSRuntime.cpp => js/xpconnect/src/XPCJSContext.cpp
extra : rebase_source : e6b435ab1ca2739e340669195dff77c561ea573e
2016-09-14 15:48:17 +02:00
Ninad Bhat[:ninad101]
15dca34ea9
Bug 1301628 - Corrects misc-argument-comment. r=dzbarsky
2016-09-09 10:45:00 +02:00
Nicholas Nethercote
e4eb76b618
Bug 1297300 - Add missing checks to GetSpec() calls in dom/base/. r=bz.
...
--HG--
extra : rebase_source : 55e83aad222825b2dd1399fa42eee6b6c894d0ee
2016-09-08 14:17:58 +10:00
Ehsan Akhgari
67f68a06ad
Bug 1300851 - Don't use expanded principals when creating the about:blank content viewer eagerly; r=bzbarsky
2016-09-08 14:32:28 -04:00
Ehsan Akhgari
108462c57c
Bug 1300831 - Avoid creating about:blank windows with expanded principals; r=bholley
2016-09-07 12:52:11 -04:00
Michael Layzell
c47fca1cd7
Bug 1018486 - Part 1: Changes in dom/, r=baku
...
MozReview-Commit-ID: 4tCUM4KRe81
2016-09-07 10:50:35 -04:00
Nicholas Nethercote
34dcc7b852
Bug 1299384 - Use MOZ_MUST_USE with NS_warn_if_impl(). r=erahm.
...
This change avoids lots of false positives for Coverity's CHECKED_RETURN
warning, caused by NS_WARN_IF's current use in both statement-style and
expression-style.
In the case where the code within the NS_WARN_IF has side-effects, I made the
following change.
> NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
> -->
> Unused << NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
In the case where the code within the NS_WARN_IF lacks side-effects, I made the
following change.
> NS_WARN_IF(!condWithoutSideEffects);
> -->
> NS_WARNING_ASSERTION(condWithoutSideEffects, "msg");
This has two improvements.
- The condition is not evaluated in non-debug builds.
- The sense of the condition is inverted to the familiar "this condition should
be true" sense used in assertions.
A common variation on the side-effect-free case is the following.
> nsresult rv = Fn();
> NS_WARN_IF_(NS_FAILED(rv));
> -->
> DebugOnly<nsresult rv> = Fn();
> NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "Fn failed");
--HG--
extra : rebase_source : 58788245021096efa8372a9dc1d597a611d45611
2016-09-02 17:12:24 +10:00
Ehsan Akhgari
16a43fb17e
Bug 1300816 - Remove nsTimeout::mPrincipal; r=bzbarsky
...
This seems to not be used for anything any more.
2016-09-06 14:36:26 -04:00
Andrea Marchesini
1738225353
Bug 1297472 - Improve nsIScriptTimeoutHandler::GetHandlerText(), r=bz
2016-09-05 21:25:13 +02:00
Nicholas Nethercote
b71747b2ac
Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
...
The new name makes the sense of the condition much clearer. E.g. compare:
NS_WARN_IF_FALSE(!rv.Failed());
with:
NS_WARNING_ASSERTION(!rv.Failed());
The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.
--HG--
extra : rebase_source : 886e57a9e433e0cb6ed635cc075b34b7ebf81853
2016-09-01 15:01:16 +10:00
Nicholas Nethercote
742fc7eb48
Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley.
...
This function is an infallible alternative to nsIURI::GetSpec(). It's useful
when it's appropriate to handle a GetSpec() failure with a failure string, e.g.
for log/warning/error messages. It allows code like this:
nsAutoCString spec;
uri->GetSpec(spec);
printf("uri: %s", spec.get());
to be changed to this:
printf("uri: %s", uri->GetSpecOrDefault().get());
This introduces a slight behavioural change. Previously, if GetSpec() failed,
an empty string would be used here. Now, "[nsIURI::GetSpec failed]" will be
produced instead. In most cases this failure string will make for a clearer
log/warning/error message than the empty string.
* * *
Bug 1297961 (part 1b) - More GetSpecOrDefault() additions. r=hurley.
I will fold this into part 1 before landing.
--HG--
extra : rebase_source : ddc19a5624354ac098be019ca13cc24b99b80ddc
2016-08-26 16:02:31 +10:00
Wes Kocher
08fbeaaf2e
Merge m-c to autoland, a=merge
2016-08-29 17:57:01 -07:00
Wes Kocher
ed461fdf11
Merge inbound to m-c a=merge
2016-08-29 17:40:50 -07:00
Dan Glastonbury
b194d26e61
Bug 1262053 - part1 : unblock window's media when the page was first visited. r=baku
...
MozReview-Commit-ID: 5g5cYdgC8sg
--HG--
extra : rebase_source : 5af18ff846f464b1d3d195d7dc2634e03601cfcc
2016-08-29 10:41:02 +08:00
Matteo Ferretti
c0ce371e10
Bug 1241867 - override the DPR without affecting the rendering; r=dbaron
...
- added overrideDPPX to nsIContentViewer
- made CSSStyleSheet and GlobalWindow using the overrideDPPX value
- added unit test with frame check
MozReview-Commit-ID: AOWpGs4vb9H
--HG--
extra : rebase_source : 45d9ae2c9b7aad835b5602e805ec7260c69c05b8
2016-08-25 13:15:19 +02:00
Michael Layzell
b258dfaa89
Bug 1297802 - Remove unused RefPtr<> and COMPtr<> types in dom/, r=baku
...
MozReview-Commit-ID: CLUJZdbN7sW
2016-08-29 11:40:02 -04:00
Kan-Ru Chen
b6d880aca1
Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
...
The patch is generated from following command:
rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,
MozReview-Commit-ID: AtLcWApZfES
--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
kearwood
e5a5a99d23
Bug 1284357 - Part 2: Implement Navigator.activeVRDisplays,r=gw280
...
- WebVR 1.0 includes a new property added to Navigator,
activeVRDisplays
- Please apply the patchset in Bug 1250244 first.
MozReview-Commit-ID: 6wffkwvKllW
--HG--
extra : rebase_source : 79c960b206c14b8380786000fcbc2da52bc3bdab
2016-07-04 15:52:21 -07:00
Wes Kocher
b38dbd1378
Backed out 2 changesets (bug 1279086) for causing painting issues a=backout
...
Backed out changeset b1c893387fdd (bug 1279086)
Backed out changeset 277c54118c8a (bug 1279086)
2016-08-22 16:00:34 -07:00
Nicholas Nethercote
8bc855b22d
Bug 1293596 (part 6) - Make nsIWidget::SetSizeMode() infallible. r=mstange,baku.
...
The only implementation of SetSizeMode() that can fail is the nsCocoaWindow
one, on an Objective C exception, which is unlikely and can be swallowed.
This allows some nsGlobalWindow functions to become infallible as well.
--HG--
extra : rebase_source : 85d54185f63d2c138ee3f3e0e0bfe3b5e805a981
2016-08-22 09:15:49 +10:00
Sebastian Hengst
7422ce2634
Backed out changeset 31b56ae647c8 (bug 1110928)
2016-08-21 12:27:47 +02:00
Andrew McCreight
a0ddf20ce7
Bug 1110928, part 4 - Try to pass a relevant zone to PokeGC. r=smaug
...
This means the browser will do less full GCs.
MozReview-Commit-ID: BXf4GGhmbMx
2016-08-19 15:26:56 -07:00
Bill McCloskey
1613c2cbc9
Bug 1279086 - Allow multiple interrupt callbacks (r=dvander)
2016-08-19 14:40:52 -07:00
Wes Kocher
3a31be9c17
Backed out 2 changesets (bug 1279086) for failures in browser_menu_item_01.js a=backout
...
Backed out changeset 00bb53b58e96 (bug 1279086)
Backed out changeset cff59fe2b933 (bug 1279086)
2016-08-19 12:31:55 -07:00
Bill McCloskey
95c5d71549
Bug 1279086 - Allow multiple interrupt callbacks (r=dvander)
2016-08-19 09:59:39 -07:00
Nicholas Nethercote
67af4817e9
Bug 1293596 (part 2) - Rework nsIWidget bounds getters. r=mstange.
...
This patch makes GetBounds(), GetScreenBounds() and GetClientBounds() more
obviously infallible, like existing functions such as GetNaturalBounds() and
GetClientSize(). This results in clearer behaviour in nsCocoaWindow.mm if
Objective C exceptions occur. Along the way, the patch removes some useless
failure checks for these functions.
The patch also removes the NS_IMETHOD from GetRestoredBounds and makes that
function MOZ_MUST_USE.
2016-08-19 09:03:04 +10:00
Andrea Marchesini
01bf6ba4a1
Bug 1288770 - Switch worker timeouts to using nsJSTimeoutHandler, r=smaug
2016-08-16 08:10:30 +02:00
Sebastian Hengst
167156e726
Backed out changeset 2d5975fd02bd (bug 1288770) for asserting in ErrorResult.h when test test_errorPropagation.html runs. r=backout
2016-08-16 17:11:22 +02:00
Andrea Marchesini
780f93ea66
Bug 1288770 - Switch worker timeouts to using nsJSTimeoutHandler, r=smaug
2016-08-16 08:10:30 +02:00
Andrea Marchesini
9e6f27182c
Bug 898728 - Blob should be invalidated when the window is destroyed, r=smaug
2016-08-16 08:07:53 +02:00
Igor
175543fda8
Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj
2016-08-14 23:43:21 -07:00
Igor
a57972337d
Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj
2016-08-14 23:44:00 -07:00
kearwood
905f496ed5
Bug 1250244 - Part 8: Implement WebVR DOM Events,r=bz
...
MozReview-Commit-ID: 4Fk0WszVTBR
2016-07-04 15:46:49 -07:00
Kearwood (Kip) Gilbert
434f167559
Bug 1250244 - Part 7: Implement WebVR 1.0 API,r=bz
...
MozReview-Commit-ID: JTOmaWePlJq
2016-02-24 15:54:50 -08:00
Kearwood (Kip) Gilbert
0fa828c884
Bug 1250244 - Part 5: Rename VRDevice to VRDisplay,r=bz
...
- In order to reduce the size of the following patches
and increase their readability, we rename VRDevice
to VRDisplay here first.
MozReview-Commit-ID: 3pv8scdIi5w
2016-04-12 17:39:28 -07:00
Kearwood (Kip) Gilbert
2c3a6a5f88
Bug 1250244 - Part 2: Remove old VR rendering paths,r=gw280
...
MozReview-Commit-ID: 8H7spQggI2w
2016-05-27 13:49:04 -07:00
Jan de Mooij
c33bac8363
Bug 1292892 part 5 - Replace most nsContentUtils::RootingCx calls with dom::RootingCx. r=bz,terrence
2016-08-11 14:39:23 +02:00
Jan de Mooij
0ad12515f4
Bug 1292892 part 1 - Stop using JSRuntime outside SpiderMonkey. r=bz,terrence,fitzgen,kanru
2016-08-11 14:39:22 +02:00
Kershaw Chang
b542f5170c
Bug 1254488 - Run the the prohibits mixed security contexts algorithm and check a priori unauthenticated URL in PresentationRequest, r=smaug
2016-08-10 23:01:00 +02:00
Nicholas Nethercote
bab6d17ebf
Bug 1293117 (part 4) - Change many NS_IMETHODIMP occurrences to NS_IMETHOD. r=froydnj.
...
This patch makes the following changes on many in-class methods.
- NS_IMETHODIMP F() override; --> NS_IMETHOD F() override;
- NS_IMETHODIMP F() override {...} --> NS_IMETHOD F() override {...}
- NS_IMETHODIMP F() final; --> NS_IMETHOD F() final;
- NS_IMETHODIMP F() final {...} --> NS_IMETHOD F() final {...}
Using NS_IMETHOD is the preferred way of marking in-class virtual methods.
Although these transformations add an explicit |virtual|, they are safe --
there's an implicit |virtual| anyway because |override| and |final| only work
with virtual methods.
--HG--
extra : rebase_source : 386ee4e4ea2ecd8d5001efabc3ac87b4d6c0659f
2016-08-08 10:54:47 +10:00
James Andreou
3585e16752
Bug 1283281 - Remove PB Flag from DOMStorage. r=jdm
2016-06-29 14:01:00 +02:00
Neil Rashbrook
f78b2736a5
Bug 1292502 Fix mismatch between mModalStateDepth and mSuspendedDoc r=smaug
2016-08-10 11:39:54 +01:00
Nicholas Nethercote
e7f10a07fd
Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
...
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.
As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.
--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +10:00
Michael Layzell
2513a13f51
Bug 1291741 - Relax setTimeout throttling in background tabs when an AudioContext is present, rather than only when audio is playing, r=bkelly
2016-08-04 16:53:58 -04:00
Boris Zbarsky
599897e926
Bug 1291142. Ensure that we don't return gray objects when getting child windows by name or index. r=bholley
2016-08-02 11:06:25 -07:00
Ben Tian
be60817f4b
Bug 1262930 - Skip ShouldShowFocusRing check during TabChild::Init() if no inner window is available. r=khuey
2016-07-29 10:28:50 +08:00
Boris Zbarsky
61e3a83a14
Bug 1290264. Update handling of '/' target origin of postMessage to spec change to use the incumbent global. r=bholley
2016-07-30 00:59:54 -04:00
Nicolas Silva
48805c9b3e
Bug 1284837 - Disallow implicit conversions from float to integer when creating IntPoint and IntSize objects. r=botond
2016-07-26 16:48:30 +02:00
Carsten "Tomcat" Book
a3904e8a8a
Merge mozilla-central to mozilla-inbound
2016-07-25 15:59:01 +02:00
Carsten "Tomcat" Book
b9a6c687fa
merge mozilla-inbound to mozilla-central a=merge
2016-07-25 15:50:41 +02:00
John Dai
7f2bb4c2c9
Bug 1275833 - Add window.customElements and CustomElementsRegistry interface for custom element v1. r=smaug, wchen
...
--HG--
extra : rebase_source : 5bed500eee0d4902703e4e2159e291779ff69ab5
2016-07-24 23:38:00 +02:00
Boris Zbarsky
c0fdb1ba69
Bug 1157127. When reusing the global of an initial about:blank for a new document, clear out its XBL scope when we change the global's principal. r=bholley
2016-07-22 16:19:52 -04:00
Mike Conley
688f1f9516
Bug 1261842 - Factor out logic for creating windows for content processes from nsWindowWatcher::OpenWindowInternal. r=smaug
...
MozReview-Commit-ID: 1dhGthT8bmu
--HG--
extra : rebase_source : 34d321ebd3c27f414c63c72908c72d23aabb5396
extra : source : 0f8b603781817f58c4664a33429325bc316598e9
2016-07-05 12:00:07 -04:00
Chris Peterson
d634a99cad
Bug 1277106 - Part 4: Remove MOZ_UTF16() macro. r=Waldo
2016-07-19 21:07:53 -07:00
Chris Peterson
b175c9fdd5
Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo
2016-07-20 22:03:25 -07:00
Wes Kocher
d95537ea88
Backed out changeset ca723ddedfe5 (bug 1262930) for being the likely cause of android m(3) crashes CLOSED TREE
2016-07-20 11:56:59 -07:00
Ben Tian
42107aad39
Bug 1262930 - Remove "no inner window" warning during TabChild::Init() by skipping ShouldShowFocusRing check. r=khuey
2016-07-20 11:47:27 +08:00
Carsten "Tomcat" Book
d8b9227dbe
Backed out 25 changesets (bug 1261842, bug 1278985) breaking firefox-ui tests
...
Backed out changeset bb6c6889b802 (bug 1261842)
Backed out changeset c14ccfac7b4b (bug 1261842)
Backed out changeset d6ffc9db5346 (bug 1261842)
Backed out changeset 2a1acfd17baf (bug 1261842)
Backed out changeset 968e7b3b73fb (bug 1261842)
Backed out changeset 8d708922e47a (bug 1261842)
Backed out changeset 0a08398b5087 (bug 1261842)
Backed out changeset b2e910bb1d72 (bug 1261842)
Backed out changeset f6062f113911 (bug 1261842)
Backed out changeset 07b259eb7121 (bug 1261842)
Backed out changeset 970cbbb3a658 (bug 1261842)
Backed out changeset b6f7395d2bbf (bug 1261842)
Backed out changeset 20eb3987a721 (bug 1261842)
Backed out changeset 6eaa642a93e1 (bug 1261842)
Backed out changeset 855931929739 (bug 1261842)
Backed out changeset 1240345f5624 (bug 1261842)
Backed out changeset ce46ebf231c1 (bug 1261842)
Backed out changeset 8d34b61fbfb3 (bug 1261842)
Backed out changeset 9d8a382c5b1d (bug 1261842)
Backed out changeset e2472a4cc209 (bug 1261842)
Backed out changeset e91913cd64b8 (bug 1261842)
Backed out changeset 4cf843a05a68 (bug 1261842)
Backed out changeset cbdc0deb92bd (bug 1261842)
Backed out changeset a94e6a85c931 (bug 1261842)
Backed out changeset 3b5b92f04ea5 (bug 1278985)
2016-07-19 09:12:58 +02:00
Mike Conley
45326e6d87
Bug 1261842 - Factor out logic for creating windows for content processes from nsWindowWatcher::OpenWindowInternal. r=smaug
...
MozReview-Commit-ID: 1dhGthT8bmu
--HG--
extra : rebase_source : 9da164c9647d6e69894d8e8e49bdd400e786bb81
extra : source : 0f8b603781817f58c4664a33429325bc316598e9
2016-07-05 12:00:07 -04:00
Chris Peterson
43c2748f66
Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj
2016-07-08 14:39:53 -07:00
Boris Zbarsky
3b1ead601a
Bug 1282150 part 5. Kill off all the unused GetJSContextForEventHandlers cruft. r=bholley
2016-07-07 20:08:26 -04:00
Jan de Mooij
c1ed92b71b
Bug 1283855
part 3 - Make some callback setters take JSContext instead of JSRuntime. r=efaust
2016-07-06 11:40:20 +02:00
Ben Kelly
498431cc2a
Bug 1281730 Restore timeouts before thawing workers to avoid running script on frozen timers. r=khuey
2016-07-04 06:49:29 -07:00
Andrea Marchesini
163825f4a6
Bug 1281793 - Remove some non-used telemetry IDs - part 4 - random things (2), r=chutten
2016-06-28 19:30:37 +02:00
Carsten "Tomcat" Book
0f88d840e4
Backed out changeset 27b1dd843116 (bug 1281793)
2016-06-28 17:04:49 +02:00
Andrea Marchesini
430a14cd11
Bug 1281793 - Remove some non-used telemetry IDs - part 4 - random things (2), r=chutten
2016-06-28 16:44:42 +02:00
Chih-Yi Leu
42a49e9e8c
Bug 1221730 - Move gamepad API to PBackground. r=qdot, r=baku
...
--HG--
extra : rebase_source : 5ad6d31a770d0d7b1b10d6aebf693ed24fc956ca
2016-06-28 00:25:00 +02:00
Arthur Edelstein
54c8149d55
Bug 1281949 - When resisting fingerprinting, spoof screen.orientation
...
When privacy.resistFingerprinting is enabled, make sure that
screen.orientation.angle -> 0 and
screen.orientation.type -> "landscape-primary"
Also refactors screen.mozOrientation.
Based on https://trac.torproject.org/18958
2016-06-24 09:53:00 -07:00
Masayuki Nakano
13d4f396fe
Bug 1185307 part.2 Replace upcast from nsISelection to mozilla::dom::Selection with nsISelection::AsSelection() r=smaug
...
MozReview-Commit-ID: Gs3oiAgJFG9
--HG--
extra : rebase_source : a136405d99ff3361a595157986b3a33026bcd5f5
2016-06-17 22:32:49 +09:00
Andrea Marchesini
82f92bee37
Bug 1279453 - Remove separate worker binding for ServiceWorkerRegistration API, r=bkelly
2016-06-12 16:26:51 +02:00
Masayuki Nakano
d960ef26d5
Bug 1278014 part.5 Rename SelectionType::SELECTION_NORMAL to SelectionType::eNormal r=smaug
...
MozReview-Commit-ID: AAdxTTKEvrk
--HG--
extra : rebase_source : 82e10db6b8b17d4f571625e34bb3c8f1905ef58a
2016-06-09 18:35:22 +09:00
Masayuki Nakano
00591135a4
Bug 1278014 part.2 Define mozilla::SelectionType as an enum class and use it instead of RawSelectionType as far as possible r=smaug
...
This patch defines mozilla::SelectionType as an enum class. This is safer than nsISelectionController::SELECTION_* since setting illegal value to its variable is checked at build time. So, as far as possible, this should be used everywhere (but of course, this isn't available in scriptable interfaces).
And also this implements some useful methods for managing SelectionType and RawSelectionType which are implemented in layout/nsSelection.cpp because nsISelectionController is implemented by both PresShell and nsTextEditorState. Therefore, implementing one of them may make hard to find them. On the other hand, nsSelection.cpp is a better file name to look for them.
Note that this patch creates mozilla::Selection::RawType() for binding. Native code should keep using Selection::Type() but the binding code needs to use RawType() due to impossible to convert from SelectionType to RawSelectionType without explicit cast.
MozReview-Commit-ID: 81vX7A0hHQN
--HG--
extra : rebase_source : d9f88e217c713c60d1c2578ce6421c73ccba8650
2016-06-11 11:06:37 +09:00
Jonathan Watt
b15368cfcb
Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky
2016-06-07 21:10:18 +01:00
Andrea Marchesini
64734bf74c
Bug 1278838
- Remove separate worker binding for Performance API, r=smaug
...
--HG--
rename : dom/performance/nsPerformance.cpp => dom/performance/Performance.cpp
rename : dom/performance/nsPerformance.h => dom/performance/Performance.h
rename : dom/workers/Performance.cpp => dom/performance/PerformanceWorker.cpp
rename : dom/workers/Performance.h => dom/performance/PerformanceWorker.h
2016-06-09 19:04:42 +02:00
Neil Deakin
ea192c61f5
Bug 1174798, propagate keyboard indicator state down to child processes, r=smaug
2016-06-09 07:59:31 -04:00
Michael Layzell
b0efb7ddb3
Bug 1181073
- Relax setTimeout throttling for background tabs using web audio, r=bkelly
2016-06-07 18:05:55 -04:00
Mike Conley
99143b5309
Bug 1266799 - Increase DOM fullscreen timeout length to 1000ms. r=xidorn
...
According to the Telemetry probes added in Bug 1271160, 1000ms should
account for ~94% of fullscreen transitions. The remaining ~6% tail is where
users might see the transition end and then content re-organize itself.
I think this is a big improvement over the original 500ms, which covers only
about ~80% of cases, according to Telemetry.
MozReview-Commit-ID: 3Vb9qQ7yDx5
--HG--
extra : rebase_source : 6f7a2db037bcd1ef21e59aca70b08078ab4f290d
2016-06-02 14:49:56 -04:00
Masatoshi Kimura
7f91a2f04a
Bug 1277691 - Allow security.turn_off_all_security_so_that_viruses_can_take_over_this_computer only if MOZ_DISABLE_NONLOCAL_CONNECTIONS is set. r=mrbkap
2016-06-03 07:40:16 +09:00
Boris Zbarsky
f02f5d431d
Bug 1276276 part 3. Eliminate nsIScriptContext::GetNativeContext. r=smaug
2016-06-02 10:34:39 -04:00
Boris Zbarsky
43a4676066
Bug 1276276 part 2. Change AutoEntryScript to always use the safe jscontext instead of trying to find a global-specific one. r=smaug
2016-06-02 10:34:39 -04:00
Kaku Kuo
95661ad394
Bug 1141979 - part12 - export to nsGlobalWindow; r=jrmuizel
...
MozReview-Commit-ID: 6DRMDrSXIiu
--HG--
extra : transplant_source : %A7N%F0%25%29%D7%B7%C3%FA%26%EB%ABY%9B%94F%EC%AF%FE%3D
2016-04-27 11:47:22 +08:00
Kaku Kuo
ec2d98e4c3
Bug 1141979 - part1 - WebIDL for native implementation; r=jrmuizel, r=smaug
...
MozReview-Commit-ID: 9gC0rxhsOLm
--HG--
extra : transplant_source : %7D%9A%C8%05%99%17Y%1E1%404%A7%14%BE%8B%AC%F0b%A2%5B
2015-11-18 16:57:38 +08:00
Nicholas Nethercote
2fda0872c8
Bug 1267551 (part 10) - Use MOZ_MUST_USE in AutoVectorRooterBase. r=terrence.
...
This patch fixes numerous unchecked calls.
--HG--
extra : rebase_source : 566f2ca9fba1c8b18fa7ec1753168dbae9cf70d1
2016-06-01 15:49:04 +10:00
Boris Zbarsky
36091e04a0
Bug 1276133 part 2. Remove the now-unused aJSCallerContext argument of nsGlobalWindow::OpenInternal. r=smaug
2016-05-27 20:26:56 -04:00
Boris Zbarsky
e68ced4bf3
Bug 1276133 part 1. Stop using GetDefaultScopeFromJSContext in nsGlobalWindow::OpenInternal. Instead, use the entry global's outer window (if the entry global is a window), which should correspond to the stack-top JSContext in all web-visible cases right now. r=smaug
...
Note that the change in the condition is ok because we have the invariant that
aCalledNoScript != bool(aJSCallerContext), though we never actually clearly
assert that in this method (we instead assert that at least one has to be false,
but it turns out they can't _both_ be false either.
2016-05-27 20:26:56 -04:00
Boris Zbarsky
84b2945de3
Bug 1276309 part 2. Stop depending on the exact value of nsIScriptContext::GetNativeContext in nsGlobalWindow::FinalClose. r=smaug
2016-05-27 20:26:56 -04:00
Wes Kocher
9f7d2279d9
Backed out changeset e96398029a1c (bug 1181073
) for failing the test it added CLOSED TREE
2016-05-19 10:17:55 -07:00
Michael Layzell
6274f21dc8
Bug 1181073
- Relax setTimeout throttling for background tabs using web audio, r=bkelly
2016-05-19 09:34:01 -04:00
Xidorn Quan
cbf6f73785
Bug 1271160 - Add telemetry items for fullscreen transition. r=smaug data-review=bsmedberg
...
MozReview-Commit-ID: EvmLvE5VWOu
--HG--
extra : source : ad09f13328a7455e5b3ae9610fb1b4c9b1baa4bf
2016-05-16 11:30:36 +10:00
David Keeler
3a4d7b486c
bug 883718 - remove nsIEntropyCollector and implementation r=mgoodwin,mrbkap
...
The rationale behind nsIEntropyCollector was to supplement NSS' source of
entropy with randomness from mouse move events. This obviously doesn't work on
platforms without a mouse (e.g. mobile platforms). Furthermore, as NSS seeds its
random number generator with robust randomness from the operating system, this
is unnecessary anyway. The primary concern is that initialization of the random
number generator must happen after forking, which is exactly what we do with the
child process in e10s mode.
MozReview-Commit-ID: GYQDElSCZy0
--HG--
extra : rebase_source : 6273a78203121c4d4ddf3ed97451f393ceef4b88
2016-05-10 16:24:44 -07:00
Boris Zbarsky
08254285a1
Bug 1190641
part 2. Add the sandboxed modals flag to iframe sandboxing. r=ckerschb
...
Automated testing for this seems rather difficult; I've done manual testing.
2016-05-06 13:56:36 -04:00
Boris Zbarsky
b84ac31e14
Bug 1271521. Add a sane way of temporarily disabling dialogs on a window. r=smaug
...
What we have right now is not very usable, because you can only enable/disable
on the scriptable top of the window, but it's not at all obvious that this is
the case when using the API.
2016-05-10 20:57:29 -04:00
Peter Van der Beken
5c9bb43e9d
Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
...
--HG--
extra : rebase_source : 073ec0857b63df3e2ecef43ef3b982f2e1be2d24
2016-05-09 17:08:31 +02:00
Carsten "Tomcat" Book
98f0a3271a
Backed out changeset d385df62c0e7 (bug 1267186) for hazard failures
2016-05-09 13:40:01 +02:00
Peter Van der Beken
b6c1e074c2
Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
...
--HG--
extra : rebase_source : 324cf124544c0ffe2ad2ceccbed397d5069d1435
2016-03-09 15:48:12 +01:00
Wes Kocher
462fc252b3
Backed out 3 changesets (bug 1190641
) for failures in test_dialogArguments.html and test_iframe_sandbox_modal.html
...
Backed out changeset ef1d1a433415 (bug 1190641
)
Backed out changeset b037f2642082 (bug 1190641
)
Backed out changeset 733eacd2ed13 (bug 1190641
)
--HG--
extra : rebase_source : 218cf6d49e6f71742da7c69cf42b0a6a355e1863
2016-05-06 12:54:16 -07:00
Boris Zbarsky
f3092cff84
Bug 1190641
part 2. Add the sandboxed modals flag to iframe sandboxing. r=ckerschb
...
Automated testing for this seems rather difficult; I've done manual testing.
2016-05-06 13:56:36 -04:00
Sebastian Hengst
faffe478f6
Backed out changeset f9d3ea58c195 (bug 1267186) for static bustage in WebIDLGlobalNameHash.cpp. r=backout
2016-05-06 18:11:03 +02:00
Peter Van der Beken
827ee394ba
Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
...
--HG--
extra : rebase_source : 5578057666186f58e434767af84fbfeac0cbdc3c
2016-03-09 15:48:12 +01:00
Kyle Huey
941ab1f522
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-05-05 01:45:00 -07:00
Neil Deakin
fd43d35e0e
Bug 1263330, only initialize focus ring state for non-top-level windows, r=smaug
2016-05-04 10:07:37 -04:00
Alastor Wu
30466d68e1
Bug 1242874 - part3 : implement different suspended methods. r=baku, r=jwwang
...
MozReview-Commit-ID: HHYX29gbLwk
--HG--
extra : rebase_source : d774e1338c6e0cd2ce8b4329b28ad9650011a7e5
2016-05-03 09:52:38 +08:00
Alastor Wu
60f0aad68a
Bug 1242874 - part2 : window's suspend attribute. r=baku, r=ehsan
...
MozReview-Commit-ID: 2GZMjsaQWHC
--HG--
extra : rebase_source : 7840bda5c5e7e59d27fede1fce03a6b52760e798
2016-05-03 09:51:22 +08:00
Jeff Walden
e69489250b
Bug 1263778 - Rename a bunch of low-level [[Prototype]] access methods to make their interactions with statically-known and dynamically-computed [[Prototype]]s clearer. r=efaust
...
--HG--
extra : rebase_source : 8c1cf4b354f6e1170da08920df5517888936d28f
2016-03-18 16:45:31 -07:00
Xidorn Quan
2bb1280ba1
Bug 1267568 part 4 - Replace InFullscreenChange flag of PresShell with IsResizeSuppressed flag in RefreshDriver. r=smaug
...
MozReview-Commit-ID: FB3vGXwKZ9O
--HG--
extra : source : 84878dbedf8c2efe2221d7562fd69a7c4cf20971
2016-05-03 17:58:57 +10:00
Xidorn Quan
2ae314ff8f
Bug 1267568 part 1 - Add a weak ptr to nsGlobalChromeWindow to remember the pres shell we set the fullscreen change flag. r=smaug
...
This addresses the review comment from bug 1177155 comment 16 so that
the assertion and code to avoid breaking assertion in valid path are no
longer needed.
MozReview-Commit-ID: GHIYQwyoejC
--HG--
extra : source : 3a7d540381d12f58b6b1b150528312150e0c8893
2016-05-03 17:58:57 +10:00
Xidorn Quan
95f7be2962
Bug 1267530 part 2 - Add ASCII art explaination of flow of fullscreen transition. r=smaug
...
MozReview-Commit-ID: D5vZSPBGyHN
--HG--
extra : source : 0b7fd82dd69f77731c05ba6d2e9585c5f8297242
2016-05-03 17:58:57 +10:00
Xidorn Quan
5003029401
Bug 1267530 part 1 - Add some profiler marker for fullscreen transition. r=smaug,BenWa
...
MozReview-Commit-ID: CeFdBO9uz8C
--HG--
extra : source : ca6459b594f0dcfd46066bbab29ce068d4de6200
2016-05-03 17:58:57 +10:00