Граф коммитов

464893 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky 8db444c416 Bug 1254393. Take ownership of error reporting on the AutoEntryScript in nsXPCWrappedJSClass::CallMethod. r=bholley
There are several cases to consider in terms of where exceptions might come from
here:

1)  We could have an exception on the JSContext already when we set up the
AutoEntryScript.  In practice this does not happen, and once this change is made
we will add an assert to that effect in AutoJSAPI::InitInternal.  See bug 1112920.

2)  We could have an exception thrown by the XPCCallContext constructor, but it
never does that when initialized, as here, without a JSObject*.

3)  We can have an exception thrown by CallMethod itself, if the callee method
wants a JSContext or optional argc.  This patch switches that to using
CheckForException, which means it will behave exactly like exceptions thrown
from the actual implementation of the method we're calling in terms of how it's
reported and whether it's rethrown to callers, if any.

4)  We can have exceptions thrown various places (e.g. during argument and
retval/outparam conversions) after this point, but those are all under the scope
of the AutoScriptEvaluate, whose destructor will restore the JSContext state to whatever it
was when the AutoScriptEvaluate was created.  Since the AutoScriptEvaluate goes
out of scope before the AutoEntryScript does, there will be no dangling
exception on the JSContext at that point.

5)  We can have exceptions thrown by the actual method call.  Those are
reported, as needed, via CheckForException, and will continue to be so reported.

So in general there are two behavior changes here:

* We now treat the "callee wants JSContext or argc" case as the same as an
  exception from the callee, which is not what we used to do.

* If the object we're calling comes from an inner window whose outer window has
  been torn down, we will now correctly report the exception against that inner
  window.  Before this patch, what happend is that we would init the
  AutoEntryScript with the inner window, but FindJSContext would not find an
  nsIScriptContext on it (since its outer has been torn down), so we would use
  the safe JS context.  Then in xpc::SystemErrorReporter we would check for a
  window associated with the JSContext, not find one, check for an addon sandbox
  current compartment, see we're not in one, and then use the privileged junk
  scope for its error reporting.  The new setup in AutoJSAPI::ReportError checks
  for the current compartent being a window, which of course it is.
2016-03-08 17:21:40 -05:00
Boris Zbarsky 3e5ab54341 Bug 1254230 kinda-fix. Make sure to never send script errors with stacks attached to the console service if the associated windows have already had FreeInnerObjects called on them. r=bholley 2016-03-08 17:21:40 -05:00
Boris Zbarsky 2e2d6cac3d Bug 1254380 part 3. Skip firing error events for mainthread out of memory exceptions via AutoJSAPI::ReportException. r=bholley 2016-03-08 17:21:40 -05:00
Boris Zbarsky 81b9b7ac71 Bug 1254380 part 2. Go ahead and log the stack from our exception in AutoJSAPI::ReportException even if we don't have a window. r=bholley 2016-03-08 17:21:40 -05:00
Boris Zbarsky 5b4134a282 Bug 1254380 part 1. Find the relevant window when the compartment we've got is an addon sandbox compartment in AutoJSAPI exception/warning reporting code. r=bholley 2016-03-08 17:21:40 -05:00
Boris Zbarsky 3d39097c61 Bug 1254293. Fix dom::GetArrayIndexFromId to actually follow the spec for large indices (i.e. ones that don't fit in in int32_t). r=peterv 2016-03-08 17:21:40 -05:00
Boris Zbarsky d29c2409f0 Bug 1253591. HTMLAllCollection should be rooted at the document, not the root element, so it can find the root element. r=peterv 2016-03-08 17:21:40 -05:00
Mike Hommey 3c61c287f2 Bug 1254451 - Better document toolchain versions in tooltool manifests. r=froydnj
linux32/asan.manifest is removed because the file is not in tooltool
(anymore?).
2016-03-09 09:23:27 +09:00
Mike Hommey 564de8ea0e Bug 1254410 - Include app-specific configure files according to --enable-application/--enable-project. r=chmanchester
Because --enable-application is the current way to do things, transpose
it to configure.py, but since --enable-application=js doesn't make
sense, make it an alias of a new --enable-project option.

This only partially moves --enable-application out of old-configure.in
because there are a lot of other things intertwined with it.
2016-03-09 09:23:27 +09:00
Wes Kocher 9a43697d65 Backed out changeset 6358a64e4f15 (bug 1236112) for windows video wpt failures
MozReview-Commit-ID: 6tovOHlvyak
2016-03-08 16:23:04 -08:00
Randell Jesup fc6187d378 Bug 1224029: ensure video elements that may be disabled (black) are scaled r=mattwoodrow
disabled video elements may be 1x1 black images

MozReview-Commit-ID: 6xTm8Eq1Tjs
2016-03-08 19:21:40 -05:00
Mason Chang ac058cacc5 Bug 1230366. Render CG font with black on white on skia. r=lsalzman 2016-03-08 08:27:25 -08:00
Wes Kocher 2048d9f4a0 Merge m-c to inbound, a=merge CLOSED TREE
MozReview-Commit-ID: 4SEUTTY9jRn
2016-03-08 16:08:08 -08:00
Wes Kocher 71aa3b8d31 Backed out changeset e7e01671e85f (bug 1253977) for windows reftest failures in focusring-1.html CLOSED TREE
MozReview-Commit-ID: 8j0fD5taR6z

--HG--
extra : histedit_source : 61897e005185864102170fe7a1c1f950eb88a379%2C36fe84b9a97141d65b1b282ca2b5c205b33f499b
2016-03-08 16:07:00 -08:00
Wes Kocher 0fbf6c1476 merge inbound to m-c a=merge
MozReview-Commit-ID: BHxDQF6gIe3
2016-03-08 16:00:45 -08:00
Wes Kocher be3094d2b6 Merge fx-team to central, a=merge
MozReview-Commit-ID: LEywWhbwbwl
2016-03-08 15:00:01 -08:00
Markus Stange 836fcb72ef Bug 1248913 - Make nsDisplayBlendContainer active or inactive based on its contents. r=mattwoodrow
MozReview-Commit-ID: GN0084Rrmlm

--HG--
extra : rebase_source : e11f0bd9385244d01a824c3ed327653495020df7
2016-03-08 14:39:07 -05:00
Markus Stange 46dbf6fc7d Bug 1248913 - Remove mCanBeActive and second nsDisplayBlendContainer constructor. r=mattwoodrow
MozReview-Commit-ID: Jcrip22bW5k

--HG--
extra : rebase_source : a2601fd33f6ec7cafa6902abb2ece13d4b0a9428
2016-03-08 14:38:22 -05:00
Markus Stange 08e56286e7 Bug 1248913 - Build nsDisplayBlendMode items for background-blend-mode. r=mattwoodrow
MozReview-Commit-ID: 72IzlcgHFtd

--HG--
extra : rebase_source : fdc3fd31176e1177e04b224c9206858437ef7806
2016-03-08 14:22:36 -05:00
Markus Stange 623ad9afd8 Bug 1248913 - Let nsDisplayBackgroundImage specify the background blend mode. r=mattwoodrow
This is needed because blending for nsDisplayBackgroundImage items will soon
happen outside of nsDisplayBackgroundImage::Paint, it will be done by an
nsDisplayBlendMode item that wraps the nsDisplayBackgroundImage item.

MozReview-Commit-ID: 20cILOGVFEG

--HG--
extra : rebase_source : 306725c99a1cd8d450149482817b8b51bc660908
2016-03-08 16:54:09 -05:00
Andreas Tolfsen 42c25b995a Bug 1254521 - Add return type docs for element.inViewport; r=automatedtester
MozReview-Commit-ID: Budv7EapTfo

--HG--
extra : rebase_source : 98d9684610b3f594a66a01228473b1a8d602024a
2016-03-08 13:53:00 +00:00
Andreas Tolfsen 26578b425f Bug 1254521 - Add return type docs for element.isVisible; r=automatedtester
MozReview-Commit-ID: 9tjnHPmYSdq

--HG--
extra : rebase_source : d51af3dd9760149f0b0a175b6daaf562bddb582d
2016-03-08 13:52:38 +00:00
Andreas Tolfsen fedd17bd6b Bug 1251763 - Reduce repetition in test_findelement.py; r=automatedtester
MozReview-Commit-ID: utpbgMlajl

--HG--
extra : rebase_source : 6ad9ca035943b3165ae01d1a4acdb8cfe9cabbe7
2016-03-08 16:44:41 +00:00
Andreas Tolfsen a9b5a85fc1 Bug 1251763 - Correct type check on singular returned elements; r=automatedtester
The return values from the different element search functions in searchFn
have inconsistent return types, and a null check is usually not what
we want.  In order to have findElement consistently return a no such
element error, we need to do a loose false test.

This bug has affected the findElement command when using the tag
name, name, class name, link text, and partial link text selectors.
Other selectors were unaffected.

MozReview-Commit-ID: C26R3YrqKyf

--HG--
extra : rebase_source : dc723ae147b9208b4274ffc4a5338f0107ddd0ed
2016-03-08 16:23:50 +00:00
Carsten "Tomcat" Book 5f63041330 merge fx-team to mozilla-central a=merge 2016-03-08 11:41:34 +01:00
Rail Aliiev da94a314aa Bug 1254422 - Do not try to set S3 ACLs r=jlund a=release
MozReview-Commit-ID: 1RyB48KhFvD

--HG--
extra : source : d5370c00e1eb31a2f9de7750a0cb1747c277e1ed
2016-03-08 00:49:24 -05:00
ffxbld 727d7d0948 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2016-03-07 09:23:22 -05:00
ffxbld 96cff3ecbf No bug - Tagging mozilla-central 68d3781deda0d4d58ec9877862830db89669b3a5 with FIREFOX_AURORA_47_BASE a=release DONTBUILD CLOSED TREE 2016-03-07 09:21:14 -05:00
Carsten "Tomcat" Book 4f4ec17aeb merge mozilla-inbound to mozilla-central a=merge 2016-03-07 11:34:06 +01:00
Nick Alexander 31beca1f33 Bug 1253876 - Back out PushService integration to not burn aurora. r=me
Sadly, this needs to be conditional to not burn builds where
MOZ_ANDROID_GCM is not defined -- such as aurora.  As uplift is soon,
this will have to be relanded behind a conditional abstraction (just
like Adjust).

MozReview-Commit-ID: 80gBojadDic
2016-03-06 20:43:22 -08:00
Kris Maglione 00f1d01219 Bug 1236949: Split up browser_ext_tab_move_window.js. r=me
MozReview-Commit-ID: 5WEdXucSFKa

--HG--
extra : amend_source : f0780333c54467fa2216ef28be6942b2c7d521b0
2016-03-06 17:52:56 -08:00
Mark Hammond 452154b074 Bug 1253120 followup2 - comment-only changes to clarify how UITour-lib validates URL params. r=me 2016-03-07 10:07:13 +11:00
Ryan VanderMeulen b4bb7fb97d Merge fx-team to m-c. a=merge 2016-03-06 15:03:19 -05:00
Ryan VanderMeulen 34d8629eea Bug 1253935 - Skip browser_styleeditor_fetch-from-cache.js on Windows debug e10s for frequent failures depending which chunk it runs in. 2016-03-06 13:22:36 -05:00
Jonathan Kew 8101739122 Bug 1252974 - Convert screen's available dimensions to CSS-pixel units in nsWindowWatcher. r=emk 2016-03-06 13:37:27 +00:00
Giorgio Maone 92558f57d8 Bug 1232849 - Better chrome compatibility + binaryValue support + serious header manipulation tests + nits r=kmag
MozReview-Commit-ID: G8mgtVLFfoD

--HG--
extra : rebase_source : 68135fffd8470462066aa77d5e8097ae1607a09a
2016-03-06 09:02:06 +01:00
Mark Capella f3821e32c6 Bug 1253534 - Suspicious code with probably reversed parms in call to IsSingleLineTextControl, r=mounir 2016-03-05 22:04:41 -05:00
Ryan VanderMeulen 54367e83bf Merge fx-team to m-c. a=merge 2016-03-05 19:22:45 -05:00
Ryan VanderMeulen 4a074fc4a6 No bug - Add guards to tests that use TypedObject. r=me, a=bustage 2016-03-05 19:19:25 -05:00
Ryan VanderMeulen cbdddb04cd Merge inbound to m-c. a=merge 2016-03-05 19:12:44 -05:00
Markus Stange 5485807971 Bug 1248913 - Rename nsDisplayMixBlendMode to nsDisplayBlendMode. r=mattwoodrow
We're going to use it both for background-blend-mode and for mix-blend-mode.

MozReview-Commit-ID: 6zKCDSkLspc

--HG--
extra : rebase_source : 81b4691d2b74e56c634bdf08f85636ba2abbf486
2016-03-05 17:04:02 -05:00
Markus Stange 14975d0ba1 Bug 1248913 - Add a constructor argument to nsDisplayMixBlendMode that lets you specify the blend mode. r=mattwoodrow
MozReview-Commit-ID: 9MqjLKjRmeh

--HG--
extra : rebase_source : 11ebc2d8fa1939ba079bdf09e916d3da1e68d6d7
2016-03-05 16:39:25 -05:00
Bob Owen ddc3b95f28 Bug 1253247: Return an error when trying to Init an nsDeviceContextSpecProxy without a RemotePrintJob. r=jimm 2016-03-05 18:25:14 +00:00
Markus Stange cd7fa4800f Bug 1248913 - nsDisplayListBuilder doesn't need to know what blend modes it contains, just whether it contains any. r=mattwoodrow
MozReview-Commit-ID: 5yQcGnXBKKp

--HG--
extra : rebase_source : 176c96a0b5d67a539e8f7e0c72e4ee541cbf1686
2016-03-05 12:46:14 -05:00
Masatoshi Kimura e9c1221a17 Bug 1254306 - Do not check the fallback limit version for the RC4 fallback. r=keeler 2016-03-09 07:38:43 +09:00
Randall Barker 24f338ba5d Bug 1254252 - Have Axis::ClampOriginToScrollableRect just return the original value if it falls with in the page bounds. r=kats 2016-03-08 14:10:35 -08:00
Randall Barker 565a35d4d5 Bug 1250213 - Ensure the scroll offset does not go outside the page bounds when going full screen r=kats 2016-03-08 14:10:35 -08:00
Birunthan Mohanathas ec65f12dd8 Bug 623183 - Build dump_syms on Windows when using VS2015; r=ted
MozReview-Commit-ID: LCvipO5FXdR

--HG--
extra : source : e68a8c608182025bac53dcbb48b0c0d474931f90
extra : amend_source : 3113865fb4be93db6b51ce55514cd2a55e577df9
2016-03-08 14:07:28 -08:00
Mats Palmgren 35503fb698 Bug 1254000 - [css-grid] Enable Grid container properties in UA sheets to avoid warnings in the console. r=dholbert 2016-03-08 23:03:26 +01:00
Mats Palmgren 195015a265 Bug 1253977 part 2 - Reftests. 2016-03-08 23:03:26 +01:00