Commit Graph

531404 Commits

Author SHA1 Message Date
Matt Woodrow
438790335b Bug 1351412 - Make the ContainerState AGR cache work even for non-async scrollable AGRs. r=mstange
--HG--
extra : rebase_source : 2875fc0c55a4020dbb3979b741fb4fa378a1642d
2017-04-19 15:39:17 +12:00
Matt Woodrow
d2f04fbaa8 Bug 1341496 - Part 3: Make CrossProcessSemaphore allocation fallible. r=billm
--HG--
extra : rebase_source : 318d2c835675547acf667ecfb20bb595ea86e59f
2017-04-19 15:39:11 +12:00
Matt Woodrow
227b55240c Bug 1341496 - Part 2: Don't use a separate ReadLock for the second component alpha texture as they should always be locked/unlocked at the same time. r=nical
--HG--
extra : rebase_source : e329a708f4cad44cba9be01cf209842d6fe30619
2017-04-19 15:16:13 +12:00
Matt Woodrow
9423e9b713 Bug 1341496 - Part 1: Don't try to serialize read locks that aren't valid. r=nical
--HG--
extra : rebase_source : 2d3f5b89db84427199e3056fb893415f6e0e3e20
2017-04-19 15:15:42 +12:00
Brian Birtles
4080557a43 Bug 1357631 - Drop comments about updating the type of target arguments/members in KeyframeEffect(ReadOnly); r=bz DONTBUILD
In bug 1241783 and Github issue #186[1] it was decided to update the WebIDL in
the Web Animations spec so that instead of using a mixin as the type, we instead
use a suitable union type.

This patch removes the comments that indicated that the Gecko WebIDL definition
need to be updated to match the spec, since the spec has now been updated to
match the Gecko WebIDL definition instead.[2]

[1] https://github.com/w3c/web-animations/issues/186
[2] a07f609270
    d0445d2a46
2017-04-19 12:56:25 +09:00
Phil Ringnalda
738ff5ef55 Backed out changeset b8ef6055e88f (bug 1351676) for Windows reftest failures in tree-row-outline-1.xul 2017-04-18 19:51:48 -07:00
Andrea Marchesini
5ba191f3a9 Bug 1357286 - Fix warnings on release builds about unused return values from autoStream->Serialize, r=philor 2017-04-18 07:29:47 -07:00
Michal Novotny
3406185cbc Bug 1350256 - Handle null entry values more gracefully. r=mayhemer
--HG--
extra : rebase_source : 57b10e0a70829d511a816dd9f17ce000f872329f
2017-04-15 04:49:00 -04:00
Boris Zbarsky
0a0d47e4f0 Bug 1356498 followup: fix compiler bustage. 2017-04-18 21:26:43 -04:00
Shu-yu Guo
f4bcbd619a Bug 1356691 - Preserve DeadObjectProxy's IsCallable and IsConstructor values statically with templates. (r=billm) 2017-04-18 18:23:18 -07:00
Shu-yu Guo
8eacb418e2 Bug 1357012 - Use fallible append for compression tasks and use UniquePtrs. (r=jonco) 2017-04-18 18:23:18 -07:00
Boris Zbarsky
c947157599 Bug 1306200 part 2. When a promise is rejected with an object that cannot be securely unwrapped, report the underlying object as an error to its global before replacing the rejection value with a security error placeholder. r=waldo 2017-04-18 20:56:48 -04:00
Boris Zbarsky
0feef7f2d9 Bug 1306200 part 1. Move the "report this error now" machinery from Debugger.cpp to ErrorReporting. r=waldo
This allows other consumers to share this machinery.
2017-04-18 20:56:48 -04:00
Boris Zbarsky
14dfe4c256 Bug 1356498. Change nsDocument's unlink to unbind/remove its kids the same way other places (including FragmentOrElement's unlink) do. r=mystor
This prevents us from trying to re-set the base URI to the href of a <base> element that's being unlinked.
2017-04-18 20:56:45 -04:00
Jim Mathies
ec430f4cb5 Bug 1351676 - Add Windows theme related look and feel values to the content process look and feel cache. r=mconley
MozReview-Commit-ID: FFGLOnH2TQS
2017-04-13 11:13:49 -05:00
David Parks
6a3359a108 Bug 1326084 - Unbind accessible child doc before replacing with new one. r=trevor
We need to update mChildDocs on child document removal.  This also cleans up some code related to setting a new child doc when one is already set -- we now assert that this cannot happen.
2017-04-07 13:26:45 -07:00
Ehsan Akhgari
ce9afcdc80 Bug 1356838 - Reduce the hashtable lookup cost in EnsureGlobalPredictor(); r=nwgh 2017-04-17 23:27:45 -04:00
Shu-yu Guo
cd3756c697 Bug 1216630 - Unskip test262 class toString tests. (r=Yoric) 2017-04-17 19:51:35 -07:00
Shu-yu Guo
1df7352485 Bug 1216630 - Rename preludeStart and postludeEnd to toStringStart and toStringEnd and misc fixes. (r=Yoric) 2017-04-17 19:51:35 -07:00
Shu-yu Guo
159df826fb Bug 1216630 - Print class source when calling toString on the constructor. (r=Yoric)
This is accomplished in the following ways.

LazyScripts and JSScripts now have 4 offsets:

 - Source begin and end for the actual source. This is used for lazy
   parsing.

 - toString begin and end for toString. Some kinds of functions, like
   async, only have a different begin offset. Class constructors have
   different offsets for both begin and end.

For syntactically present (i.e. non-default) constructors, the class
source span is remembered directly on the LazyScript or JSScript. The
toString implementation then splices out the substring directly.

For default constructors, a new SRC_CLASS SrcNote type is added. It's
binary and has as its arguments the begin and end offsets of the class
expression or statement. MakeDefaultConstructor reads the note and
overrides the cloned self-hosted function's source object. This is
probably the least intrusive way to accomplish this.
2017-04-17 19:51:34 -07:00
L. David Baron
1d8b4e0ef0 Bug 1307134 - Rename nsGlobalWindow::EnsureSizeUpToDate to EnsureSizeAndPositionUpToDate. r=tnikkel
This is because it does ensure both, and some of the callers care about
size and some care about position.

MozReview-Commit-ID: 3e8II6Lf72X

--HG--
extra : transplant_source : %EE%5E%87%1D%AA%EB%B9%22%D9%D6%D2%9D6U%C4%2A%CA%A1r%E9
2017-04-18 11:28:52 +09:00
L. David Baron
05bfb6bf19 Bug 1307134 - Only flush in ancestor documents for window.mozInnerScreenX/Y. r=tnikkel
This reduces the amount of flushing we do when these APIs are called on
the root document, but increases the amount of flushing we do (probably
fixing existing bugs) when these APIs are called in a document at depth
three or more (if you consider the root depth one).

I considered the idea of adding a EnsurePositionUpToDate alias, but it
seems that some of the existing users of EnsureSizeUpToDate actually
care about position (e.g.,
nsLayoutUtils::GetDeviceContextForScreenInfo), so I just added a comment
instead.

MozReview-Commit-ID: B3L5DDQ5krc

--HG--
extra : transplant_source : J%05%F1%20M%40%88Wz%F5s_%FB%0D%0C%D6%F2%103%9B
2017-04-18 11:28:50 +09:00
Luke Wagner
c39bb259da Bug 1356631 - Change LargeAllocationCallback to be process-wide (r=mccr8)
This is necessary to allow helper threads to attempt large allocations and recover from fragmentation situations with the LargeAllocationFailureCallback.

MozReview-Commit-ID: AyA3pbXcaYy

--HG--
extra : rebase_source : 7a5feb779b690ec7f123481e76f2390c850dac91
2017-04-17 21:19:54 -05:00
Makoto Kato
0410282e88 Bug 1352882 - Part 3. Cache nsIDocumentEncoder into TextEditor. r=masayuki
All editor code gets nsIDocumentEncoder from TextEditor::GetAndInitDocEncoder(), so we can have a cache into TextEditor, then return cached object.

MozReview-Commit-ID: IEoOvz7BG7T

--HG--
extra : rebase_source : 1b30325c99fbc43dc77453325e97e88b439285e2
2017-04-17 17:29:46 +09:00
Makoto Kato
f711389dd1 Bug 1352882 - Part 2. Add test for RequiresReinitAfterOutput. r=smaug
MozReview-Commit-ID: 97FNGeunmof

--HG--
extra : rebase_source : 19c030fdf567f695a6029a43513e7100ac72424a
2017-04-17 19:02:39 +09:00
Makoto Kato
da147c947a Bug 1352882 - Part 1. Add releasing nsIDocument option to recycle nsIDocumentEncoder. r=smaug
Editor uses weak reference for nsIDocument.  But nsDocumentEncoder has strong reference of nsIDocument. So to recycle nsIDocumentEncoder, editor wants the option that nsIDocumentEncoder releases nsIDocument into nsDocumentEncoder after EncodeTo* is called.

MozReview-Commit-ID: K3E9XhgD8FY

--HG--
extra : rebase_source : d37983705d574a2443c8f7504c7f5e3f35470ef1
2017-04-17 19:49:52 +09:00
Kartikaya Gupta
41e55cb57d No bug - Remove outdated and incorrect comment. r=me and DONTBUILD
MozReview-Commit-ID: Iai8TvtaBUw
2017-04-17 19:41:14 -04:00
Mats Palmgren
b73a39811b Bug 1357092 - Make EnsureWritablePath() always try to create a mPathBuilder, also when we don't have a valid target (i.e. for sErrorTarget). r=mstange
MozReview-Commit-ID: AzyZOpsIdwA
2017-04-18 00:56:34 +02:00
Jan Beich
0422dfb12d Bug 1353558 - Restore "dtrace -G" support after bug 1353259 for Solaris and FreeBSD. r=glandium
MozReview-Commit-ID: JKg5sCbfuzm

--HG--
extra : rebase_source : fb3a320fd79137a63d8fa48196d186111d5bb991
2017-04-05 21:51:26 +00:00
Andreas Tolfsen
53fa70a502 Bug 1352463 - Increase wdspec timeouts; r=jgraham
Increases WPT wdspec timeouts to more realistic values.  Because wdspec
tests interact with the browser from an OOP program, they require more
time to run.  Interactive browser tests are also known for generally
being more expensive to run.

25 seconds for the default timeout and 120 seconds for the long timeout
are values picked out of the air and likely needs to be further refined
in the future.  It is however the current belief that this moves us in
the right direction.

Further improvements to this approach may involve letting wdspec tests
define timeouts on a per-file or a per-test function level through the
use of pytest-timeouts, but this is purely speculative at this point.
It is the current recommendation to adjust the number of tests and the
runtime duration of the tests in a file according to these new defaults.

MozReview-Commit-ID: 4I3Xz9G6lzv

--HG--
extra : rebase_source : 5ec7439e736dc9978828e420bd31195e63130fed
2017-03-31 17:42:26 +01:00
Andreas Tolfsen
6564760558 Bug 1352463 - Define WPT timeouts on the test type level; r=jgraham
Certain test types have a need for other defaults than the
wpttest.DEFAULT_TIMEOUT and wpttest.LONG_TIMEOUT values.  This patch
changes wptrunner to define default- and long timeouts on a test type
level.  This allows a test type to override the default durations defined
in the abstract Test.default_timeout and Test.long_timeout.

Concrete classes, such as ReftestTest and WdspecTest, may override these
class properties.

MozReview-Commit-ID: IS6df5vuIDC

--HG--
extra : rebase_source : a3f37d4524902f2b0d54e14126b57da327f0ec06
2017-03-31 17:38:35 +01:00
Sebastian Hengst
545cdbc891 Backed out changeset e5e754f197cd (bug 1355481) for breaking many tests, r=backout on a CLOSED TREE 2017-04-18 17:47:34 +02:00
Stanford Lockhart
04e80c9397 Bug 1349691: Polish the grid inspector and layout tab. r=jdescottes
MozReview-Commit-ID: DPYqfcDRKcs
2017-03-29 17:31:46 -03:00
Mats Palmgren
a33f36d036 Bug 1350925 part 3 - [css-grid] Reftest.
MozReview-Commit-ID: ITGh6urXXro
2017-04-18 22:35:05 +02:00
Mats Palmgren
9dc89e761d Bug 1350925 part 2 - Assert that we're given clean ReflowOutput overflow areas in ReflowChild. rs=dholbert
MozReview-Commit-ID: 1rRcC76jWxN
2017-04-18 22:35:05 +02:00
Mats Palmgren
5a8f74cd29 Bug 1350925 part 1 - Reset the scrolled frame's ReflowOutput overflow areas before re-using it for another child reflow. r=dholbert
MozReview-Commit-ID: Ct57seTFsaj
2017-04-18 22:35:05 +02:00
Mats Palmgren
5b360db4f2 Bug 1348857 part 4 - [css-grid] Reftests for grid items that stretch with no Automatic Minimum Size.
MozReview-Commit-ID: 2seF05eqC2W
2017-04-18 22:35:04 +02:00
Mats Palmgren
15a9399d44 Bug 1348857 part 3 - [css-grid] Only apply Automatic Minimum Size when the ApplyAutoMinSize bit is set, otherwise the minimum size is zero unless specified. r=dholbert
MozReview-Commit-ID: 40Rgcj0YZMm
2017-04-18 22:35:04 +02:00
Mats Palmgren
c02d9817f3 Bug 1348857 part 2 - [css-grid] Propagate the ApplyAutoMinSize bit to nsFrame::ComputeSize (idempotent patch). r=dholbert
MozReview-Commit-ID: DBU4hDfCAdE
2017-04-18 22:35:04 +02:00
Mats Palmgren
a243aa1c80 Bug 1348857 part 1 - [css-grid] Add a bit on GridItemInfo that says if we should apply Automatic Minimum Size or not (idempotent patch). r=dholbert
This renames ShouldClampMinSize to ShouldApplyAutoMinSize, which is more
accurate, and caches the value on the grid item for later use.
No functional changes other than that.

MozReview-Commit-ID: E1mvBZsMIxh
2017-04-18 22:35:04 +02:00
Mats Palmgren
dc68da3cd9 Bug 1356820 part 2 - [css-grid] Reftests.
MozReview-Commit-ID: 5Q9hmoJhSxH
2017-04-18 22:35:04 +02:00
Mats Palmgren
0612b78b82 Bug 1356820 part 1 - [css-grid] Don't shrink-wrap the inline size when we have an available size when measuring block size. r=dholbert
The COMPUTE_SIZE_SHRINK_WRAP flag inhibits stretching in the inline axis
which means the item won't shrink below its min-content size.  In this
case min-width:0 should allow it to do that and since the column size is
smaller it should shrink, which in turn affects the measured block size.

MozReview-Commit-ID: AxQcMkYrxS5
2017-04-18 22:35:04 +02:00
Andrea Marchesini
dddaf22902 Bug 1357503 - Some additional CX exception checks in Console API code, r=smaug 2017-04-18 22:22:55 +02:00
Andrea Marchesini
c56fc1bd8e Bug 1356580 - Better check of PMemoryStream actor creation in Blob code, r=qdot 2017-04-18 22:16:04 +02:00
Michael Layzell
5649a1dff0 Bug 1354635 - Part 2: Wrap JS line in devtools to satisfy eslint, a=bustage
MozReview-Commit-ID: AJrmTsonET2
2017-04-18 15:28:38 -04:00
Andrea Marchesini
50e007bc26 Bug 1357411 - Use IgnoredErrorResult in dom/events/ContentEventHandler.cpp, r=qdot 2017-04-18 21:11:08 +02:00
Michael Layzell
ab79668929 Bug 1354635 - Send permissions to the content process when debugging service workers, r=catalinb
MozReview-Commit-ID: 8cUh5znQcFN
2017-04-18 14:38:56 -04:00
Andrzej Hunt
aee9d1bfa4 Bug 1261983 - infer: close file input stream in case of GZIP failure r=nechen
This commit also cleans up extraneous stream closes: these streams
are closed in finally, so we don't need to also clean them up in
the main try block body.

MozReview-Commit-ID: EXxlmmtqvyq

--HG--
extra : amend_source : 72ad8cb816202e8e3f234157bae092cea004d34a
2017-04-14 12:10:25 -07:00
Andrea Marchesini
a77567be37 Bug 1351464 - DOM::Security is the bugzilla component for Containers project, r=KWierso 2017-04-18 19:51:57 +02:00
Sebastian Hengst
4b1c4edae2 Backed out changeset d505fbfbd4e2 (bug 1357468) for asserting an e.g. failing js/src/jit-test/tests/arrays/sort-getter-only.js. r=backout 2017-04-18 19:32:49 +02:00