554145 Commits

Author SHA1 Message Date
Jed Davis
11d8d1c88e Backed out 3 changesets (bug 1380701, bug 1384804)
Backed out changeset afdd35ed8902 (bug 1384804)
Backed out changeset 9fb892c41a9e (bug 1380701)
Backed out changeset 0d56979a6efa (bug 1380701)
2017-08-24 15:02:48 -06:00
Michael Layzell
e3a6c83f03 Bug 1390585 - Check the state of BHRTelemetryService in test_BHRObserver.js, r=froydnj 2017-08-24 16:58:27 -04:00
Kris Maglione
3d16325eaf Bug 1391405: Part 6 - Use native helper for extracting enumerable properties. r=zombie
MozReview-Commit-ID: JqSrGUVVauE

--HG--
extra : rebase_source : 1ffb3fdc2688052d768264f105492199e3ced598
extra : histedit_source : cdb9ea7630b674c9e446e28def08a0fc204b99b6
2017-08-17 16:06:15 -07:00
Kris Maglione
13e61f79f9 Bug 1391405: Part 5 - Add helper for retrieving the enumerable value properties of a cross-compartment object. r=gabor,qdot
As part of the normalization process for WebExtension API calls, we need to
extract and validate the full set of value properties (including properties
X-rays would normally deny access to) from cross-compartment objects. This
currently involves waiving X-rays, enumerating property descriptors, and
unwaiving X-rays - all through X-ray wrappers and waivers - and generating a
lot of expensive and short-lived wrappers in-between.

This helper reads out the list of safe properties from within the object's
compartment, and then copies them over to an object in the target compartment,
without any X-ray overhead, or any unnecessary intermediate wrappers or
compartment switches. It cuts about 40% off the overhead of our normalization
code.

MozReview-Commit-ID: H582oAYocaX

--HG--
extra : rebase_source : 7f7d5df605bc6544cb7f1c0c7e224d81b211e09c
extra : histedit_source : f980a03413b5e65fc6fa272c012a769d2764d89b
2017-08-24 13:33:40 -07:00
Kris Maglione
8d30fc2d2c Bug 1391405: Part 4 - Avoid easily-avoidable regexp. r=zombie
MozReview-Commit-ID: 6xAr5hGxm2r

--HG--
extra : rebase_source : eef7eb12615faaf6fa9adc87685ef74be9413a0c
extra : histedit_source : 0c1eb852ea025f8eb9c75dc15706da6f88cb475b
2017-08-17 14:45:30 -07:00
Kris Maglione
cbddab6266 Bug 1391405: Part 3b - Speed up schema normalization for choices types some more. r=zombie
Like part a, but for `choices` messages rather than error messages.

MozReview-Commit-ID: 7dJ0NL2fUh5

--HG--
extra : rebase_source : 477f1364c0904bde78d54eae083bdb8e49ee5732
extra : histedit_source : 38c336b3a59481b6f2523798367159fb757c6485
2017-08-24 13:03:42 -07:00
Kris Maglione
7325526f5a Bug 1391405: Part 3a - Speed up schema normalization for choices types. r=zombie
For choices types, when one choice fails, we don't need the original error
string, since another choice may succeed, and we generate the final error
based on all of the options. Nevertheless, we spend a lot of time generating
JSON strings for the failed inputs in those cases, which adds up to about 12%
of the remaining overhead at this point.

MozReview-Commit-ID: 6nXBAv2W20V

--HG--
extra : rebase_source : 5894bc4b9e8d64ac9505f27240ea4fabfcb5f02f
extra : histedit_source : 0e8b5e0315abd672a57a60420453a1e0681c9df6
2017-08-18 11:49:13 -07:00
Kris Maglione
d727073568 Bug 1391405: Part 2 - Speed up base type normalization. r=zombie
The Array and ArrayBuffer type checks we do in getBaseType add up to a
significant amount of overhead given the number of times we call them,
especially when X-ray overhead comes into play. These changes allow us to
avoid X-ray overhead altogether.

MozReview-Commit-ID: KlRuxeElIfp

--HG--
extra : rebase_source : c7f00fb8c35965476e7c7b888b6af36714c1323f
extra : histedit_source : fc559e665e60e9bbb688eebe6c6e6da5dacec748
2017-08-17 14:23:15 -07:00
Kris Maglione
85754fb12a Bug 1391405: Part 1 - Add WebIDL versions of much used Components.utils helpers. r=gabor,qdot
In the code that I'm profiling, the XPC WrappedNative overhead of calling
these functions adds up to about a quarter of the time spent executing the
code. The overhead of the WebIDL versions is negligible.

MozReview-Commit-ID: 30qJy5RtP9d

--HG--
extra : rebase_source : 4fe73f4b9bde052a0eadf7d5634f792e16ca1c94
extra : histedit_source : ec61152a0181f3b0e28023c951e7181c43216d2f
2017-08-18 11:10:10 -07:00
Christoph Kerschbaumer
be9d9ede6d Bug 1393350: Convert talos/tests/tpaint/tpaint.html to comply with new data: URI inheritance model. r=smaug 2017-08-24 11:53:55 +02:00
Christoph Kerschbaumer
1ab0a5253e Bug 1324406 - Treat 'data:' documents as unique, opaque origins. r=smaug 2017-08-23 12:58:16 +02:00
Alexander Surkov
50b1424be4 Bug 1391733 - get back missing IAccessible2 interface query, r=aklotz 2017-08-24 15:29:27 -04:00
"dragan.mladjenovic"
3ed2a32282 Bug 1391248 - Add asynchronous wasm interrupt/trap support to mips32 simulator. r=bbouvier 2017-08-24 10:48:00 -04:00
"dragan.mladjenovic"
58189919c8 Bug 1391248 - Crash mips32 simulator on instructions whose result is undefined under FR=0 mode. r=bbouvier 2017-08-24 10:48:00 -04:00
"dragan.mladjenovic"
9e2b82a2da Bug 1391248 - Add mov*.s instruction support and missing redirection signatures to mips32 simulator. r=bbouvier 2017-08-24 10:47:00 -04:00
"dragan.mladjenovic"
1a372bbec1 Bug 1391248 - Add ll,sc,sync instruction support to mips32 simulator. r=lth 2017-08-24 10:47:00 -04:00
"dragan.mladjenovic"
2d55550d11 Bug 1391248 - Use AutoEnterOOMUnsafeRegion in mips32 simulator. r=bbouvier 2017-08-24 10:46:00 -04:00
Simon Lindholm
0c65735985 Bug 1393483 - Correctly pass cancel token to _onResultRow. r=mak 2017-08-24 08:20:00 -04:00
Eitan Isaacson
d96b3aa550 Bug 1392757 - Be more resilient for data values we get in Android object navigation. r=yzen 2017-08-22 13:04:00 -04:00
Honza Bambas
b0e6a5e1a5 Bug 1392382 - Don't assume request order in test_bug1053321.html. r=bkelly 2017-08-24 07:47:00 -04:00
Ryan VanderMeulen
4febc79b28 Bug 1393526 - Upgrade to SQLite 3.20.1. r=mak 2017-08-24 14:50:48 -04:00
Mason Chang
7620bec375 Bug 1393142 - Don't reset transform if RotatedBuffer didn't set it. r=bas 2017-08-24 11:03:16 -07:00
Aaron Klotz
bbcb22aba6 Bug 1383501: Use HKEY_LOCAL_MACHINE\SOFTWARE\Classes for resolving COM registration instead of HKEY_CLASSES_ROOT; r=eeejay
MozReview-Commit-ID: 4kMWNKEpejh
2017-08-21 12:55:55 -06:00
Aaron Klotz
bd05dcbb61 Bug 1392681: Move IStream creation out of mscom::ProxyStream into its own utility functions; r=jimm
MozReview-Commit-ID: EucWtw0YeBI
2017-08-22 10:48:12 -06:00
Aaron Klotz
e72586e7f4 Bug 1392666: Unconditionally initialize e10s-specific variables in Win32 a11y::PlatformInit; r=eeejay
MozReview-Commit-ID: 6aqnbt9Qytp
2017-08-22 10:02:30 -06:00
Joel Maher
15675feae0 Bug 1383315 - Disable browser/base/content/test/tabcrashed/browser_noPermanentKey.js for linux32/debug. r=mconley 2017-08-24 13:14:47 -04:00
Sebastian Hengst
cb6cf95f70 Backed out changeset d2a4fa2a4005 (bug 1139913) for failing browser-chrome's browser_downloads_panel_height.js. r=backout 2017-08-24 18:55:43 +02:00
Tristan Bourvon
ba0998ae31 Bug 1380423 - Add static-analysis to enforce strict rules on functions which can run scripts. r=mystor
MozReview-Commit-ID: GGSyq0z5msB
2017-08-08 19:48:53 +03:00
David Bolter
279b9baff2 Bug 1391733 - Update telemetry to provide information about e10s incompatible jaws usage. r=surkov 2017-08-24 11:00:08 -04:00
Makoto Kato
dd679562b1 Bug 1391628 - Use fallback locale on nsICollation if locale is invalid. r=emk
Original issue is that Microsoft Dynamics CRM uses invalid lang attribute in <xsl:sort>.

<xsl:sort order="descending"
          select="@displayname[$sortColumnName='displayname'] |
                  @name[$sortColumnName='name'] |
                  exslt:node-set($FriendlyTypeNames)/types/type[@xmlName=current()/@datatype and $sortColumnName='datatype']"
          lang="$languageName"/>

Our XSLT implementation detects "$languageName" as locale name, then use it to nsICollation.

Until Gecko 54 for Windows, even if using invalid locale name for nsICollation, it uses platform locale as fallback.  But from 55, we use same implementation as macOS's to use ICU.  So this issue occurs.  ICU implementation doesn't use fallback locale if it is invalid.

We should use fallback locale if locale is invalid.  Most code for fallback locale such as FallbackEncoding uses application locale, so use it.

MozReview-Commit-ID: EKYkZG7Hnz0

--HG--
extra : rebase_source : fec89c67317d7df041f3b237122fb7e20e32fe1b
2017-08-24 23:13:42 +09:00
Paolo Amadini
e9f7da41fa Bug 1393418 - Fix initialization of the Downloads Indicator on startup. r=mak
MozReview-Commit-ID: GEQZoak5MFl

--HG--
extra : rebase_source : d06fdd9e0a07e70cf3d3143c3ecefd0e3365a350
2017-08-24 13:34:08 +01:00
Nick Fox
27ff4d1faf Bug 1289157 - remove eSurvivingInUpdate flag from Accessible class, r=surkov 2017-08-24 10:22:55 -04:00
Jon Coppeard
da09c8bd3a Bug 1393432 - Renable some module instantiation tests that now pass r=jgraham 2017-08-24 14:22:30 +01:00
Johann Hofmann
c5c5b0af8e Bug 1139913 - Downloads with partial data should still keep the placeholder on disk. r=mak
This prevents naming conflicts if a paused or blocked download is retried from the original page.

MozReview-Commit-ID: 4rFZ5rP8saJ

--HG--
extra : rebase_source : c392fc62cb33b2c2d70a1c3a8a975ddf93d394ea
2017-08-24 14:13:56 +01:00
André Bargull
93a579fe80 Bug 1393053 - Directly get built-in %PromisePrototype% instead of going through GetPrototypeFromConstructor. r=till 2017-08-23 16:54:05 +02:00
Vanessa Gutierrez
1d300dacd5 Bug 1386186 - Added firstPaint scalar, timestamps scalar section, and tests. r=gfritzsche
--HG--
extra : amend_source : eb7102df741b51926407fd7e7f16e3f36a7d6b19
2017-08-22 11:01:00 -04:00
André Bargull
1994bec3b0 Bug 1368313 - Use error reporter to report missing module exports. r=jonco 2017-08-23 22:06:10 +02:00
Miran.Karic
1fa73ac17c Bug 1392606 - Fix MIPS64 simulator build compilation failures. r=bbouvier 2017-08-24 04:25:00 -04:00
André Bargull
c2c9b64535 Bug 1391773 - Update [[DefineOwnProperty]] for module namespace objects per ES2018 draft. r=jonco 2017-08-23 18:56:10 +02:00
Jory A. Pratt
e59d72ca8a Bug 1320560 - Use C99 math isfinite, finite has been depreciated and all modern libc implementations use isfinite. r=froydnj 2017-01-08 11:34:00 -05:00
Nevin Chen
ef0cc18c44 Bug 1356596 - Add warning when entering full screen mode. r=sebastian
MozReview-Commit-ID: 2QZFylS2Ry3

--HG--
extra : amend_source : c5a6d1fe000b7461bfe1d1b4ebe1cc120a473247
2017-08-24 08:39:19 -04:00
Sebastian Hengst
3d306e2f50 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-08-24 13:31:12 +02:00
Sebastian Hengst
aeacc34883 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 6TGQRm8SSk0
2017-08-24 13:28:57 +02:00
Olli Pettay
045eeefaaa Bug 1390402, add a faster variant of TextEditor::GetDocumentIsEmpty(), r=masayuki
--HG--
extra : rebase_source : 3238aec96be5b0393c395ce8cce9a0489d2e671d
2017-08-24 13:53:34 +03:00
Joel Maher
a6c517d732 Bug 1391507 - requestLongerTimeout for browser_search_subdialogs_within_preferences. r=timdream 2017-08-24 06:32:37 -04:00
Yoshi Huang
c4f9380675 Bug 1373780 - Part 4: remove imageset.https.sub.html.ini. r=annevk 2017-08-24 18:11:06 +08:00
Yoshi Huang
df6bad1c1e Bug 1373780 - Part 3: add isImgSet argument. r=jdm
Per mixed-content-blocked spec, [1], <img srcset> and <picture> should
be blocked. However we still fetch <img srcset> and <picture> in image
preload, because they are fetched with contentPolicyType
TYPE_INTERNAL_IMAGE_PRELOAD and won't be rejected by nsMixedContentBlocker.cpp.

So I updated the image preloading code, and use the type TYPE_IMAGESET
if the image request is for <picture> or <img srcset>, otherwise for
normal image load we still use TYPE_INTERNAL_IMAGE_PRELOAD.

[1]: https://w3c.github.io/webappsec-mixed-content/#should-block-fetch
  4. Return allowed if one or more of the following conditions are met:
     request’s type is "image", and initiator is not "imageset".
  5. Return blocked.
2017-08-24 18:10:54 +08:00
Yoshi Huang
e63d45332e Bug 1373780 - Part 2: remove calling nsContentUtils::CanLoadImage(). r=jdm
As we already do security check in asyncOpen2 in bug 1206961, also
we've removed calling nsContentUtils::CanLoadImage() in bug 1267075, so
here we do the same thing for nsDocument.
2017-08-24 18:10:47 +08:00
Yoshi Huang
5e0c3d88be Bug 1373780 - Part 1: Added smiley.png.headers. r=annevk
For web-platform-tests imageset.https.sub,html [1], it will fetch smiley.png
and use window.performace to query the download size to determine the image is
actually downloaded or not. [2]

However this test is a mixed-content-blocked test, (https: document to
load some images from http:), and performace API only allows pages with
different origin to use this API if the HTTP header 'Timing-Allow-Origin' is
specified. [3]

So we added a smiley.png.header to specifiy 'Timing-Allow-Origin'.

[1]: http://searchfox.org/mozilla-central/rev/b258e6864ee3e809d40982bc5d0d5aff66a20780/testing/web-platform/tests/mixed-content/imageset.https.sub.html
[2]: http://searchfox.org/mozilla-central/rev/b258e6864ee3e809d40982bc5d0d5aff66a20780/testing/web-platform/tests/preload/resources/preload_helper.js#13
[3]: https://www.w3.org/TR/resource-timing-1/#timing-allow-origin
2017-08-24 18:10:39 +08:00
Andreas Farre
c38df01a71 Bug 1391602 - Clamp execution budget to a minimum value. r=bkelly 2017-08-24 10:35:45 +02:00