Commit Graph

727 Commits

Author SHA1 Message Date
Jared Wein
8e35a61454 Bug 1370528 - Remove gramatically incorrect 'size' from CompositorAnimationWarningContentTooLargeArea string. r=flod
MozReview-Commit-ID: CufsKyWezU8

--HG--
extra : rebase_source : 99f68432905e483f786994d00983c505bcb58928
2017-06-06 09:49:56 -04:00
Jared Wein
6e57031fc1 Bug 1364221 - Allow frames to be prerendered as long as the area of the frame is less than the area of the relative limit and the dimensions are less than the absolute limit. r=mattwoodrow,mstange
MozReview-Commit-ID: C3QLjaCRbzE

--HG--
extra : rebase_source : 1c9ad6b7c04d65b8b71f5112b7f4c91415aa70d9
2017-06-05 17:01:19 -04:00
Paul Adenot
a0dc092018 Bug 1369698 - Fix the key for the URL.createObjectURL(MediaStream) deprecation string. r=smaug
MozReview-Commit-ID: DHH256Qdbv3

--HG--
extra : rebase_source : ea178e2ad9cc2dd60674def06b712832a6e136da
2017-06-02 12:32:30 +01:00
Mike Hommey
810afe2b69 Bug 1365419 - Rename global-platform/gtk back to global-platform/unix. r=bsmedberg
In case some legacy third-party things were relying on those files being
under a unix/ directory, revert the part of changeset c94e87a18096 that
renamed global-platform/unix to global-platform/gtk.

--HG--
extra : rebase_source : c0f9e96592822fe2c87e837a27becfde87a76a0c
2017-05-26 10:24:20 +09:00
Wes Kocher
9782406dd8 Backed out 4 changesets (bug 1365419) for android mochitest failures in test_bug583533.html a=backout
Backed out changeset d82aa6aec2c1 (bug 1365419)
Backed out changeset 9aafdd1ca0bd (bug 1365419)
Backed out changeset 261eecf8497f (bug 1365419)
Backed out changeset 1d9b50fadc05 (bug 1365419)

MozReview-Commit-ID: HkhXf1Dkkbk
2017-06-01 18:39:21 -07:00
Mike Hommey
643e3d3ea9 Bug 1365419 - Rename global-platform/gtk back to global-platform/unix. r=bsmedberg
In case some legacy third-party things were relying on those files being
under a unix/ directory, revert the part of changeset c94e87a18096 that
renamed global-platform/unix to global-platform/gtk.

--HG--
extra : rebase_source : bb78b309fe59ee5f76f276e54539e157eb019e69
2017-05-26 10:24:20 +09:00
Chris Pearce
29bb4271d4 Bug 1368583 - Adjust MediaEMENoCodecsDeprecatedWarning string to make it clearer. r=flod
MozReview-Commit-ID: Gm6CtEq2LVC

--HG--
extra : rebase_source : c9818b52926cb9d2eb47905c333e79eb96dd518a
2017-06-01 08:12:24 +12:00
Ryan VanderMeulen
8fc010c25c Bug 1368583 - Use proper Unicode double-quotes in the MediaEMENoCodecsDeprecatedWarning key.
CLOSED TREE
2017-05-30 20:23:51 -04:00
Chris Pearce
29420a59c0 Bug 1368583 - Add deprecation warning for MediaKeySystemConfiguration properties no longer supported by the EME spec. r=gerald
As per Bug 1355252, the EME spec requires our
navigator.requestMediaKeySystemAccess() function to reject request for
configurations which don't contain at least one MediaKeySystemCapabilities
(audioCapabilities or videoCapabilities).

That's step 15 of this algorithm:
https://w3c.github.io/encrypted-media/#get-supported-configuration-and-consent

We also shouldn't be assuming that WebM and MP4 normatively imply a specific
set of codecs and codec constraints, as that violates step 10 of the "Get
Supported Capabilities for Audio/Video Type" algorithm.

https://w3c.github.io/encrypted-media/#get-supported-capabilities-for-audio-video-type

Making this change has the effect of causing us to reject configurations with
MediaKeySystemCapabilities where those capabilities don't specify a codec
string.

This patch adds a deprecation warning to encourage authors to make their sites
spec compliant.

MozReview-Commit-ID: 6kM9LATDfy6

--HG--
extra : rebase_source : 96763bd49cbebb81ac565a8862cb0ad97838181f
extra : source : 9df49a410082d68041377dabbbebfb458a580041
2017-05-30 21:33:03 +12:00
Ryan VanderMeulen
c2e6a4f474 Backed out changeset bb1542b364f2 (bug 1364221) for Android 4.2 x86 test_animation_performance_warning.html failures on a CLOSED TREE. 2017-05-26 15:37:14 -04:00
Jared Wein
bc9c4a158e Bug 1364221 - Allow frames to be prerendered as long as the area of the frame is less than the area of the relative limit and the dimensions are less than the absolute limit. r=mattwoodrow,mstange
MozReview-Commit-ID: C3QLjaCRbzE

--HG--
extra : rebase_source : 71907fe872ad6347ea30f1af441a3a3bd0724366
2017-05-23 17:41:06 -04:00
Jan-Ivar Bruaroey
85b8864f71 Bug 1366415: Unprefix mozAutoGainControl and mozNoiseSuppression w/deprecation warnings. r=jesup,smaug
MozReview-Commit-ID: EdWjSsIhtIM

--HG--
extra : rebase_source : 373bf802ae7a0f957770f2f6ec18fa4cc6c736da
2017-05-19 20:57:44 -04:00
Wes Kocher
f8ee017832 Backed out changeset f8c14563b37d (bug 1364221) for m(c1) failures in test_animation_performance_warning.html a=backout
MozReview-Commit-ID: 9vwi69eAZ5r

--HG--
extra : rebase_source : 5cba4d42b12447f6734b4cf1c1f4d9956bc1ace3
2017-05-19 14:01:47 -07:00
Jared Wein
d075979256 Bug 1364221 - Allow frames to be prerendered as long as the area of the frame is less than the area of the relative limit and the dimensions are less than the absolute limit. r=mattwoodrow
MozReview-Commit-ID: C3QLjaCRbzE

--HG--
extra : rebase_source : 3561397fbebcc4a994831cdc4782772307b37d30
2017-05-18 14:52:31 -04:00
Mike Hommey
a8b3b97bc4 Bug 780562 - Stop relying on the "platform" chrome flag for global-platform. r=bsmedberg
The "platform" chrome flag requires an irrelevant "content" chrome
manifest entry, while it's only used for locales. It only has exactly
one use, which can actually be replaced by uses of the "os" flag.

Note, we're doing something similar with the "os" flag for skins in
e.g. browser/extensions/pocket/jar.mn.

Unfortunately, for determinism reasons, the chrome manifest entries from
jar.mn are sorted (per bug 982075), so keeping global-platform/unix
would leave it appearing after /mac, and would override it on mac
because of the lack of "os" flag on the /unix entry (we can't put "os"
flags on that entry because we can't do something like os!=Darwin &&
os!=WINNT). So we move it to /gtk such that it always comes before /mac.

--HG--
extra : rebase_source : aaace8147ea54f74aef8a7b2314ad022e9f9be23
2017-04-14 20:44:35 +09:00
Chris Pearce
f1df5dbbbd Bug 1361000 - Log a deprecation warning to the web console upon use of EME in an insecure context. r=bz
Preliminary telemetry indicated 15% of users of EME are in an insecure
context. We'd better log a warning to the web console to inform authors
that their sites will stop working, rather than just breaking them!

MozReview-Commit-ID: CZasdbcC1jS

--HG--
extra : rebase_source : 008b9669d06a77bb133459df6479625ed47249a0
2017-05-01 16:55:03 +12:00
Phil Ringnalda
e73e622373 Backed out changeset c733f9dbec85 (bug 1361000) for -werror bustage
CLOSED TREE

MozReview-Commit-ID: 9pHl3OuzOTs
2017-05-01 23:02:40 -07:00
Chris Pearce
20ae51f46a Bug 1361000 - Log a deprecation warning to the web console upon use of EME in an insecure context. r=bz
Preliminary telemetry indicated 15% of users of EME are in an insecure
context. We'd better log a warning to the web console to inform authors
that their sites will stop working, rather than just breaking them!

MozReview-Commit-ID: CZasdbcC1jS

--HG--
extra : rebase_source : 685a36be1601215aff4e962fd206d1332abbff79
2017-05-01 16:55:03 +12:00
Aryeh Gregor
af57d2df0f Bug 1251198 - Remove various obsolete events from document.createEvent r=smaug
Other browsers do not support any of these (IIRC), telemetry reports
essentially zero usage, and supporting them is contrary to the DOM spec.

Notes on specific events:

CommandEvent and SimpleGestureEvent: These are not supposed to be
web-exposed APIs, so I hid the interfaces from web content too
(necessary to avoid test_all_synthetic_events.html failures).

DataContainerEvent: This was a non-standard substitute for CustomEvent
that seemed to have only one user, so I removed it entirely and switched
the user (MozillaFileLogger.js) to CustomEvent.

ScrollAreaEvent: This is entirely non-standard, but we apparently expose
it deliberately to web content, so I didn't see any reason to remove it
from createEvent.

SimpleGestureEvent and XULCommandEvent: Can still be created from
createEvent(), but not by content.

TimeEvent: This is still in because it has no constructor, so there's no
other way to create it.  Ideally we'd update the SMIL spec to add a
constructor.  I did remove TimeEvents.

MozReview-Commit-ID: 7Yi2oCl9SM2

--HG--
extra : rebase_source : 199ab921acfc531b8b85e77f90fcd799b03c887b
2017-04-20 15:45:37 +03:00
Gerald Squelart
0f15d1198f Bug 1343442 - MediaDecodeError/Warning user notification messages - r=jya
These messages will be displayed in the Decoder Doctor drop-down notification
bar.
The message ids are also used internally to identify corresponding issues.

MozReview-Commit-ID: MmKxCEoTok

--HG--
extra : rebase_source : 8bc15e16e48f137db17892604d9f1257e8485612
2017-03-24 16:47:23 +11:00
Jonathan Watt
78209c36d4 Bug 1349388, part 1 - Make AutoReferenceLimiter report long reference chains and reference loops to the console. r=longsonr 2017-02-16 10:26:39 +00:00
Jessica Jong
3c909e1184 Bug 1344642 - Part 1: Cleanup dom.forms.datepicker related code. r=smaug
This patch basically reverts Bug 825294.

--HG--
extra : rebase_source : 58b235bfddb5acd1ec0cf1afd8f34cbb8c4e09c1
2017-03-17 11:01:57 +08:00
Kerem KAT
0d9b07ec14 Bug 247996 - Add JS console warnings for every script element with an src that fails to load/execute it. r=bzbarsky
MozReview-Commit-ID: 4fH6UFqUhfY
2017-03-09 19:54:26 +03:00
Joel Maher
f297f17181 Bug 1339232 - annotate more dom/* moz.build files with BUG_COMPONENT. r=overholt
MozReview-Commit-ID: 2HbPxGkrVfv
2017-03-01 08:20:25 -05:00
Jamie Nicol
f06e779e2d Bug 1339578 - Remove min active layer size for animations; r=mattwoodrow
Even for very small layers we want to avoid doing work on the main
thread.

At the same time, however, increase the minimum active layer size for
animations which come from restyles. These involve the main thread
anyway, so there is less to be gained from using an active
layer. Since switching items between active and inactive can have
large knock-on effects, we want to make sure it really is worth making
the layer active.

MozReview-Commit-ID: 8N6xlVW4Dp3

--HG--
extra : rebase_source : bd9a97899faaf187e5e148126711bb0ff5a29ee6
2017-02-09 18:00:32 +00:00
Xidorn Quan
fc22390de5 Bug 1340926 part 3 - Deprecate usage of xml:base. r=Ehsan,francois
MozReview-Commit-ID: EpuKLrCj0qc

--HG--
extra : rebase_source : 051f300371d27d4dcdbcb8e70b54c3196155780e
2017-02-20 12:41:11 +11:00
Wes Kocher
672c83ed65 Merge inbound to central, a=merge
MozReview-Commit-ID: 5H1ZxSV0XuM
2017-02-07 16:33:31 -08:00
Sebastian Hengst
0264cdf6be Bug 1336311 - Change code comments with http://hg.mozilla.org to https://. r=gps
For components also referencing it in code, see the blockers of bug 1336311.

MozReview-Commit-ID: 4tUZ24HKBWy

--HG--
extra : rebase_source : ec16149f525b9b7eaca7f96f1369929d21497121
2017-02-07 17:52:56 +01:00
Andrea Marchesini
16bc4a8d06 Bug 1334564 - Deprecate URL.createObjectURL(mediastream), r=smaug, r=rjesup 2017-02-07 08:58:35 +01:00
Michael Layzell
dbacf5d9f5 Bug 1331087 - Part 2: Add a new string console message for non-win32 large allocation loads, r=ehsan
MozReview-Commit-ID: J4Zyt8Ygnfb
2017-01-31 14:08:20 -05:00
Michelangelo De Simone
a011917b2b Bug 1269531 - Make the Geolocation test suite secure-context aware. r=jdm
MozReview-Commit-ID: 4WPUsGAO7xF

--HG--
extra : rebase_source : a0616dff53d547ab6c5b5d9f9b4e965e60b862b5
2017-01-26 15:38:16 -07:00
Chris Pearce
009952ed23 Bug 1329543 - Rename eme-adobe_description string to cdm_description. r=spohl
The Adobe CDM is being removed, leaving only the Widevine CDM. So it doesn't make
sense to have the string refer to Adobe.

MozReview-Commit-ID: 6jjI6Q7BwWX

--HG--
extra : rebase_source : f1aa42bbb8e55b97cac88295ba54780378ba8dfa
2017-01-14 16:39:30 +08:00
Chris Pearce
fffddbdfce Bug 1329543 - Remove 'adobe' from GMP download code. r=spohl
MozReview-Commit-ID: HXcl2xNDgEo

--HG--
extra : rebase_source : 934855aee2eefbb7e2a13c360456cac118342b5e
2017-01-14 16:37:59 +08:00
Michael Layzell
f2c6e39bb7 Bug 1328620 - Rename LargeAllocationRelatedBrowsingContexts to reflect new content, r=smaug
MozReview-Commit-ID: AQVqIFKObsI
2017-01-06 16:48:47 -05:00
Michael Layzell
f24af1792b Bug 1324359 - Rename and simplify the DocShell ProcessLock concept, r=smaug
MozReview-Commit-ID: JTp8Q2mWqpN
2017-01-03 17:00:25 -05:00
Catalin Badea
82cfe6ab4d Bug 1181127 - Don't run service workers for fetch events if no fetch handlers were added during script's evaluation. r=bkelly
Display a warning when event listeners are added after the script's evaluation.
2016-12-19 04:38:53 +02:00
Chris Peterson
95b4fcca5f Bug 1324183 - Part 2: Remove MediaUnsupportedBeforeWindowsVista console message. r=gerald
--HG--
extra : histedit_source : cc1d8955d533bda2edab8044bf7d0cb6d4fcee7c
2016-12-17 13:13:11 -08:00
Botond Ballo
d806f521fb Bug 1321412 - Allow controlling the size of the prerendered area via prefs. r=birtles,flod,mattwoodrow
Note that the default values of the prefs are chosen so as to preserve
existing behaviour.

The patch also updates a user-visible warning message, which was
already out of date as of bug 1274991.

MozReview-Commit-ID: AqBBoIucShT

--HG--
extra : rebase_source : 010aa55255d49e4875cb6870f309649a9ca762d5
2016-12-09 20:23:42 -05:00
Brian Birtles
b34ecd0f35 Bug 1301305 - Add a performance warning type for transform animations that should be synchronized with geometric animations; r=hiro, r=flod
This patch adds a new performance warning type for the case when we start
a transform animation at the same time as an animation that includes a
geometric property. In that case we run the transform animation on the main
thread so that it is synchronized with the geometric animation (which we can
only run on the main thread).

This differs from CompositorAnimationWarningTransformWithGeometricProperties
in that this applies across different elements whilst the existing warning
only covers the case when the same animation animates both transform and
geometric properties.

MozReview-Commit-ID: EcOMo4VDAYY

--HG--
extra : rebase_source : b4bbc3e4ffa69d0d741fe6d67aba0349b9325b3e
extra : histedit_source : 9fd1b33e8776e270241cde40f1905e74fdfcb630
2016-12-02 10:00:51 +09:00
Benjamin Smedberg
df53257c80 Bug 1311420 - Add a notice to the addon manager and about:plugins about NPAPI deprecation, r=felipe
MozReview-Commit-ID: HuHbCASJiux

--HG--
extra : rebase_source : 6a0d07abd71939c078843b90662a7ed73dd4e9fd
2016-11-22 15:36:32 -05:00
Chris Peterson
fc2e7c9a1f Bug 1318833 - Part 3: Remove unused Silverlight checks from Decoder Doctor. r=gerald 2016-11-21 21:11:04 -08:00
Christoph Kerschbaumer
611dfdf9b7 Bug 1299483 - CSP: Implement 'strict-dynamic', parser changes. r=dveditz,freddyb 2016-11-08 13:08:33 +01:00
Michael Layzell
209fba3a7f Bug 1304140 - Part 1: Implement support for the Large-Allocation header behind the dom.largeAllocationHeader.enabled pref, r=smaug
MozReview-Commit-ID: 5KBIu6Fc3Ea
2016-10-31 16:38:54 -04:00
JerryShih
158cde6c2f Bug 1295456 - Support <angle> value for hue component in CSS hsl() color function. r=dholbert
MozReview-Commit-ID: EYhbAEOlpLm

--HG--
extra : rebase_source : 3b898452000ea5f0f0f1819dac2d93d0a6d1c426
extra : histedit_source : a929cf0e25b0035218c4ea61abfc9135a05def15
2016-10-16 03:15:36 +08:00
JerryShih
a0a437f47c Bug 1295456 - Support percentage opacity value in CSS color functions. r=dholbert
--HG--
extra : rebase_source : 79bf692da80a5ea861482e9bc021834f60b6d81a
extra : histedit_source : 384f41d812fecf511be8b319d91a687e9c02673d
2016-10-16 03:15:35 +08:00
Gerald Squelart
d86c5be6f3 Bug 1263665 - DecDoc handling of libavcodec linking issues - r=jya, r=smaug
If libavcodec is present but cannot be used, Decoder Doctor sends a distinct
notification to better help the user find the issue.

MozReview-Commit-ID: IGXPIY1b8AS

--HG--
extra : rebase_source : e2884e442f611464bd995e0b2d8b32bec05a148a
2016-09-22 00:06:45 -07:00
Carsten "Tomcat" Book
6c0aec63b8 Merge mozilla-central to mozilla-inbound 2016-10-12 12:03:34 +02:00
Morris Tseng
caefbd2d51 Bug 1304767 - Deprecated ImageBitmapRenderingContext.transferImageBitmap. r=Ehsan
Deprecated ImageBitmapRenderingContext.transferImageBitmap and replaced
it with ImageBitmapRenderingContext.transferFromImageBitmap.

MozReview-Commit-ID: BbNgKrluhT7

--HG--
extra : rebase_source : 2aa3dbfc3acc5d8b1e451111ddbb2cac63f40433
2016-10-07 17:14:34 +08:00
Thomas Wisniewski
a8940b87e6 Bug 1305928 - Part 2: Only allow <svg>, <math>, XUL, and HTML elements to requestFullscreen. r=smaug 2016-10-11 12:04:59 -04:00
Kit Cambridge
e1271e1b81 Bug 1308590 - Link to references in the Push encryption error strings. r=flod
MozReview-Commit-ID: 9NPmNHoytrc

--HG--
extra : rebase_source : 1d0b8b075d178aab98941190b7177a66442d12ee
2016-10-07 11:48:58 -07:00
Kit Cambridge
a69ba96059 Bug 1301469 - Add localized decryption errors for invalid headers and padding. r=mt
Web Crypto returns an unhelpful "operation failed for an
operation-specific reason" error if the actual decryption fails, but
we can report more useful errors for missing and invalid header
values.

MozReview-Commit-ID: JRdGHBUodmb

--HG--
extra : rebase_source : 8f1b047b6f01c89a852aefbb1349a608f1178ab8
2016-10-05 08:57:52 -07:00
Samriddhi Jain
40e1a53f35 Bug 1303682 - Add deprecation warning before removing 'referrer' directive from CSP. r=ckerschb 2016-09-28 20:17:18 +05:30
Gerald Squelart
7368a3ff17 Bug 1247056 - Handle PulseAudio init error in DecDoc - r=jwwang
MozReview-Commit-ID: 8qa0MO35mRD

--HG--
extra : rebase_source : b557992bb78c0d6c776adf83740bbc07b831c898
2016-09-18 19:41:36 -07:00
Thomas Wisniewski
e6afa43d92 Bug 812701 - Drop the prefixed version of the Visibility API. r=bz
--HG--
extra : rebase_source : 2d989414b2ccbb9c712e711c8373bdca6f87fc4b
2016-09-13 09:56:14 -04:00
Thomas Wisniewski
95c459ec9a Bug 768072 - Implement imageSmoothingEnabled and deprecate mozImageSmoothingEnabled. r=pbro,adw,bas,bz 2016-09-01 20:49:54 -04:00
Jared Wein
b2e0fdce56 Bug 1297993 - Include the ID of the offending <key> element in the key conflict message. r=masayuki
MozReview-Commit-ID: 7hZLCZqfHAy
2016-08-31 12:53:24 -04:00
Thomas Wisniewski
f69944c26d Bug 289714 - Make console XML Parsing notices more informative. r=jst
--HG--
extra : rebase_source : a3d4cce2ebdf91eda7581dccc565f5607381f448
2016-07-20 14:46:32 -04:00
Olli Pettay
f684a31ad3 Bug 1295914, improve the label of the button of folder picker, r=baku,mstange,karlt,jimm
--HG--
extra : rebase_source : 17d97b01d1e7d27b37369f46a6ea8854f9384f54
2016-08-24 02:07:21 +03:00
Olli Pettay
dacd5c3661 Bug 1295914, improve the title of the folder picker a bit, r=baku
--HG--
extra : rebase_source : 2866f08c670897dad99f54f0c66ae81e2699630e
2016-08-24 02:06:08 +03:00
Christoph Kerschbaumer
3976be42ff Bug 1288361 - Return a network error for requests whose type is script and response has a MIME type that starts with image. r=dveditz 2016-08-22 08:55:35 +02:00
Thomas Wisniewski
b6193832b6 Bug 1295128 - Log attempts to use SetRequestHeader to set a forbidden header to the web console. r=mrbkap
--HG--
extra : rebase_source : 9d135eeac085afa8568e2ec00882ba4f691436e9
2016-08-16 11:32:49 -04:00
Thomas Wisniewski
fe6139c017 Bug 932755 - Add support for input/textarea minLength and tooShort. r=mrbkap
--HG--
extra : rebase_source : 064985cbb241ef8705dcec28f60db9f4caf65ae4
2016-08-17 00:11:24 -04:00
Sebastian Hengst
7fb9314ebd Bug 1210985 - More specific error message for "useCredentials" and wildcard allowing origin. r=browser-chrome-fix 2016-08-10 14:10:45 +02:00
Henry Chang
4d24f3fb3f Bug 1210985 - More specific error message for "useCredentials" and wildcard allowing origin. r=ckerschb
MozReview-Commit-ID: 9MvrhZk4sPI

--HG--
extra : rebase_source : de7999c6573e7e5670eab63699851c550ebe8af0
extra : source : 26506044f7650db6f2b27c3c496ba44ddf927723
2016-08-05 11:46:33 +08:00
Matt Woodrow
0a403df2cb Bug 1282312 - Part 2: Disable async animations when we have rendering observers. r=bbirtles 2016-07-29 17:58:32 +12:00
Sylvestre Ledru
264ead6793 Bug 1289135 - Fix typos in the properties files r=Ehsan
MozReview-Commit-ID: 5n2mCxzkDch

--HG--
extra : rebase_source : d2837bb8928d355ea109aedcde4a37c056ddcb95
2016-07-25 16:34:38 +02:00
Gerald Squelart
17e3c87114 Bug 1288585 - Clarify console message about WinXP unsupported formats - r=cpearce
On Windows XP (and others before Vista), if WMF is required to play a format,
the console message should not refer to Microsoft software as it is not
available there.

MozReview-Commit-ID: LaERcaOfePe

--HG--
extra : rebase_source : 72b6e24683be4eb2c21c9ccff039f326cf5647a7
2016-07-22 13:12:15 +10:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Christoph Kerschbaumer
9ec95d3d9d Bug 471020 - Implement X-Content-Type-Options: nosniff. r=dveditz,bz,mcmanus 2016-07-20 12:22:27 +02:00
Wes Kocher
c9783f64cb Backed out 4 changesets (bug 471020) for frequent Windows w(2) failures CLOSED TREE a=merge
Backed out changeset d9675ab3d203 (bug 471020)
Backed out changeset 3ee328c56de0 (bug 471020)
Backed out changeset 000576e264bd (bug 471020)
Backed out changeset ffe60708c457 (bug 471020)
2016-07-18 16:07:28 -07:00
Christoph Kerschbaumer
1b211bd9c2 Bug 471020: Follow up, update quotes within security.properties. r=me 2016-07-18 17:19:29 +02:00
Christoph Kerschbaumer
f897b7df7e Bug 471020 - Implement X-Content-Type-Options: nosniff. r=dveditz,bz,mcmanus 2016-07-18 14:47:48 +02:00
Xidorn Quan
a392f65064 Bug 1284785 part 2 - Report reason to console if a pointer lock request is denied. r=smaug
MozReview-Commit-ID: 9kSYxDQYGLz

--HG--
extra : rebase_source : 7577d56c1cb774fe8c556957dc3822fc33cded62
extra : source : 7c8410f8b164791d50c7369ede66d31c608e51d4
2016-07-13 10:28:28 +10:00
Yoshi Huang
e24cc195d9 Bug 1274893 - remove -forbid- list from SafeBrowsing. r=francois 2016-07-11 16:11:32 +08:00
Andrew Sutherland
7cf501d883 Bug 1167553 - Timeout-related Service Worker shutdowns should be reported. r=bkelly
Log a message when shutting down a service worker with pending promises.
Looks like:

Terminating ServiceWorker for scope
‘http://mochi.test:8888/tests/dom/workers/test/serviceworkers/’ with
pending waitUntil/respondWith promises because of grace timeout.
2016-07-10 22:22:29 -04:00
Andrew Sutherland
6f183de053 Bug 1233798 - report to console when service worker register fails due to mime-type issues. r=bkelly
Log a message to the console when there is no Content-Type received for a
service worker or it's not a JS type.  With test.  Looks like:

Failed to register/update a ServiceWorker: Non-JS Content-Type of ‘text/plain’
received for script
‘http://mochi.test:8888/tests/dom/workers/test/serviceworkers/sw_bad_mime_type.js’.
2016-07-10 22:22:28 -04:00
Andrew Sutherland
d1659931b7 Bug 1267473 - Report to console if service worker script 404s. r=bkelly
Add an error message of the following form for when a register/update job
fails for network reasons:

Failed to register/update a ServiceWorker for scope
‘http://mochi.test:8888/tests/dom/workers/test/serviceworkers/network_error/’:
Load failed with status 404 for script
‘http://mochi.test:8888/tests/dom/workers/test/serviceworkers/404.js’.

A mochitest is added that verifies this.

To simplify the process of logging error messages, ServiceWorkerManager gains
a new LocalizeAndReportToAllClients method that always provides the SW scope as
the first argument to the localized string since all good error messages should
include it.

Its argument list takes an nsTArray<nsString> in order to reduce the potential
for use-after-free scenarios from the char16_t** signature that unfortunately
has rippled outwards from the nsIStringBundle interface.  This potentially
results in more memory allocation and byte shuffling than is strictly
necessary, but we're also talking about rare error logging where it's
better to optimize for easily adding the messages without needing to get hung
up on the life-cycle of temporaries.

nsTArray gained a std::initializer_list in bug 1228641.  It is explicit, so
inline argument usages may take a form along the lines of:
`nsTArray<nsString> { string1, string2, ... }`

This change did necessitate a change to nsContentUtils to add an nsTArray
variant of FormatLocalizedString since the existing public function was
slightly too clever.  It used a template function to statically acquire the
number of arguments at compile time, which is not compatible with the dynamic
nsTArray usage. Since nsTArray may be useful to other consumers as well, I
placed the conversion logic in nsContentUtils.
2016-07-10 22:22:27 -04:00
Michael Layzell
dde888ae28 Bug 906420 - Part 1: Implement DataTransferItem and DataTransferItemList, r=baku 2016-07-04 15:45:45 -04:00
Paul Roberts
ec18fc5ff7 Bug 671389 - Implement CSP sandbox directive. r=ckerschb r=smaug
--HG--
extra : rebase_source : d9c5f5868c2558a3696cd489674da6f243be11ad
2016-06-29 07:48:44 -07:00
Andrea Marchesini
5cddd3946d Bug 1283061 - HTMLInputElement type=file webkitdirectory/directory should show just 1 button, r=smaug 2016-06-29 18:18:42 +02:00
Boris Chiou
03d90dd78b Bug 1244590 - Part 3: Parse spacing. r=birtles
We only support spacing mode from Web Animations API, so add a simple parser and
use it only from the API. In this patch, parse spacing mode from the constructor
and throw TypeError if we have any parse error.

MozReview-Commit-ID: 9H7g80IcZfZ

--HG--
extra : rebase_source : e1bc781ff0f20a1a38c04e672832ec013edc549d
2016-05-13 16:38:25 +08:00
Cykesiopka
313db6b516 Bug 307081 - Clean up nsIClientAuthDialogs.idl and implementations. r=kats,keeler
This fixes the following in the IDL:
1. Misleading or unclear parameter names in the IDL. |cn| in practice is the
   concatenation of the CN of the server cert and the port of the server, and
   |issuer| is the Organization of the issuer cert of the server cert.
2. Use of the |wstring| type. |AString| is generally preferred, and has the
   benefit of letting implementations skip null checks due to the use of
   references.
3. Using an explicit |canceled| outparam instead of just setting a return type.
   There is no need for the outparam if the return type can be used.
4. Using |long| (int32_t) for |selectedIndex|. |unsigned long| (uint32_t) is
   more logical, and paves the way for future changes.

This fixes the following in the Android implementation:
1. Lack of checks to ensure the QueryInterface() call succeeded. In practice,
   the call will always succeed, but it's good practice to check anyways.
2. Setting a variable to an nsIPrefService instance initially, then later
   setting it to a pref branch instance later on. This is confusing and
   unnecessary.

This fixes the following in the desktop implementation:
1. Lack of null pointer checking.
2. Trying to get a parent window ref off a context that doesn't actually support
   doing so.
3. Setting a variable to an nsIPrefService instance initially, then later
   setting it to a pref branch instance later on. This is confusing and
   unnecessary.
4. Abusal of the CAPS bundle.
5. Unnecessary variables.
6. Variables declared far away from where they are used.
7. Variable shadowing.
8. Style issues.
9. Lack of documentation.

This also fixes the following:
1. Lack of localisation notes.

MozReview-Commit-ID: FTc6XecJd6h

--HG--
extra : transplant_source : %ABQ%8F%E6%A3%25%FE%94%E4%D6X%3D%28%2C%05%5E%FB%84.-
2016-06-24 00:12:11 -07:00
Masatoshi Kimura
5979f6931b Bug 1258053 - String changes. r=cpeterson 2016-06-22 21:55:14 +09:00
Blake Kaplan
70d89c7d92 Bug 1259517 - Make dropping images in editors work in e10s. r=baku 2016-06-21 15:17:37 -07:00
Jordan
f35a9b375c Bug 825294 - Add framework for datepicker widgets to input[type=date]. r=smaug
-Add framework for datepicker widgets
-Split date input preference from dom.experimental_forms to dom.forms.date
2016-06-20 15:55:00 +02:00
Christoph Kerschbaumer
4a09f2e308 Bug 1280179 - Fix type on csp.properties . r=arroway 2016-06-15 09:24:16 +01:00
Tooru Fujisawa
6ed032640e Bug 382721 - Part 9: Warn about too large dotted/dashed corner. r=jrmuizel 2016-06-10 13:10:03 +09:00
Carsten "Tomcat" Book
d612b10610 Backed out changeset c3f66208fe85 (bug 382721)
--HG--
extra : rebase_source : 45a93822af369dc9b1c4c2d733fa6a7e81064499
2016-06-10 15:38:30 +02:00
Tooru Fujisawa
5fd0e1df86 Bug 382721 - Part 9: Warn about too large dotted/dashed corner. r=jrmuizel 2016-06-10 13:10:03 +09:00
Carsten "Tomcat" Book
afff301b32 Backed out changeset 5c836acf3197 (bug 906420) on developer request by baku
--HG--
extra : rebase_source : 9f109cdb706feef6d2bcd9a2e71f8c4d3c17ebdf
2016-06-09 15:30:53 +02:00
Dave Huseby
f4337b6262 Bug 1237080 - adds deprecation msg for chrome scripted DOMParser without principal. r=baku
MozReview-Commit-ID: FuolzJOcslX
2016-06-07 18:57:45 -07:00
Michael Layzell
bd973fcaa4 Bug 906420 - Part 1: Implement DataTransferItem and DataTransferItemList, r=baku 2016-06-07 18:05:55 -04:00
Dan Minor
072334bcdb Bug 1265408 - Log biquad channel change warning to console; r=padenot
MozReview-Commit-ID: G16wgfKr4I6

--HG--
extra : rebase_source : d4c205b6d30c9d583e2f9f76cdb06b6b32f1500f
extra : source : 5aa770304f2a519fda0989790b2d059d85a1db58
2016-06-03 14:17:41 -04:00
Dan Minor
399a5ec86f Bug 1265408 - Implement IIRFilterNode; r=padenot
MozReview-Commit-ID: EZvTIwTDVPE

--HG--
extra : rebase_source : 82af34db0b5879020d32e760eb5a99fefd25f835
extra : source : 4bd3f7f5a431f9124b3a7ca6858980c4447cfdd9
2016-06-03 13:42:03 -04:00
Chris Peterson
41ab04a4e2 Bug 1259335 - Part 2: Remove deprecated navigator.battery API and tests. r=baku
--HG--
extra : rebase_source : 82eeaa8964905627803acf250e434bf4036d2d1d
2016-06-06 23:10:44 -07:00
Wes Kocher
44c9e5473a Backed out 13 changesets (bug 1265408) for test_interfaces bustage CLOSED TREE
Backed out changeset 5aa770304f2a (bug 1265408)
Backed out changeset 465412cecc51 (bug 1265408)
Backed out changeset d7d5bbd33e0e (bug 1265408)
Backed out changeset 4dd3a54d766d (bug 1265408)
Backed out changeset 24d271e05ae2 (bug 1265408)
Backed out changeset 56d602e3a9e6 (bug 1265408)
Backed out changeset 4bd3f7f5a431 (bug 1265408)
Backed out changeset 1b0ec5cf4d30 (bug 1265408)
Backed out changeset 784521a9cc94 (bug 1265408)
Backed out changeset 9ab327850c5f (bug 1265408)
Backed out changeset 388a95b05202 (bug 1265408)
Backed out changeset 2d59146a43fe (bug 1265408)
Backed out changeset 84fab8755ac9 (bug 1265408)
2016-06-06 12:09:14 -07:00
Dan Minor
e72edaf704 Bug 1265408 - Log biquad channel change warning to console; r=padenot
MozReview-Commit-ID: G16wgfKr4I6

--HG--
extra : rebase_source : 7c80e41af24a801f80ca9fb0ac389836e455e8c4
2016-06-03 14:17:41 -04:00
Dan Minor
c846a288b4 Bug 1265408 - Implement IIRFilterNode; r=padenot
MozReview-Commit-ID: EZvTIwTDVPE

--HG--
extra : rebase_source : 2dddd4d387bd4ecb58bf5fa7dbd26d916a114c82
2016-06-03 13:42:03 -04:00
Frederik Braun
404a0bbb99 Bug 1265318: add require-sri-for CSP directive. r=ckerschb
MozReview-Commit-ID: 200PAvKtBME
2016-05-31 11:14:00 +02:00
Andrea Marchesini
d466f0aab2 Bug 1048291 - Deprecate File::lastModifiedDate, r=smaug 2016-05-31 17:22:39 +02:00