480046 Commits

Author SHA1 Message Date
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
Cykesiopka
1bc7589c72 Bug 307081 - Expose nsNSSCertificate.cpp GetKeyUsagesString() as the keyUsages attribute on nsIX509Cert. r=keeler
This allows nsNSSCertificate::FormatUIStrings() to be reimplemented in JS, which
is a necessary step for making nsIClientAuthDialogs::ChooseCertificate() pass an
nsIArray of nsIX509Certs.

Also removes some deprecated and unused constants.

MozReview-Commit-ID: CJITKVlUEtP

--HG--
extra : transplant_source : %1C%09%B2%B5%F4%C4%28%1A%B2%E5%CFsu%8B%B6W%8El%9Cn
2016-06-24 00:12:06 -07:00
Cykesiopka
a9d0602102 Bug 307081 - Fix buggy Android implementation of nsIClientAuthDialogs::ChooseCertificate(). r=kats
This fixes two issues:
1. Passing a literal 1 as the |length| argument to formatStringFromName(). This
   is obviously incorrect and should instead be the length of the given arg
   list.
2. Directly setting the |selectedIndex| outparam to a number. XPIDL outparams
   on the JS side are actually objects that wrap the true outparam value, which
   must be accessed via |.value|.

MozReview-Commit-ID: BJObQfcV5G7

--HG--
extra : transplant_source : %11%B2TD%F5%C3%84%BD%C1%7B%3B%1Em%EC%CA%CAu%E5%3Dq
2016-06-24 00:12:01 -07:00
Dragana Damjanovic dd.mozilla@gmail.com
638edf0077 Bug 1279440 - Fix prefetch for rel=next. r=smaug 2016-06-23 08:52:00 +02:00
Christoph Kerschbaumer
c291d7493b Bug 1278013 - Remove SEC_FORCE_INHERIT_PRINCIPAL from loadinfo within baseChannel::Redirect. r=bz 2016-06-22 17:15:06 +02:00
Christoph Kerschbaumer
0d99d638ef Bug 1258111 - Fix crash in CheckPolicy. r=billm 2016-06-23 09:40:51 +02:00
Byron Campen [:bwc]
577b657567 Bug 1280215 - Stop using the nsresult in OnProxyAvailable to determine whether the PCM is still interested. r=drno
MozReview-Commit-ID: AIZm4VNZJtV
2016-06-15 13:38:26 +01:00
Byron Campen [:bwc]
208469617b Bug 1280443 - Make a timer assert more aggressive. r=drno 2016-06-20 11:47:10 -05:00
JW Wang
f7267b13db Bug 1274030 - clean VideoFrameContainer when "xpcom-shutdown" event received. r=cpearce
MozReview-Commit-ID: 92zeiNXSkjf
2016-05-22 21:39:55 +08:00
Dragana Damjanovic
50b784266c Bug 1278418 - Add TODO for missing default button when focus is missing. r=dolske 2016-06-23 08:15:42 +02:00
Thomas Nguyen
7bcc37e4d7 Bug 1264165 - Update and add test cases. r=franziskus 2016-06-22 18:28:40 +08:00
Thomas Nguyen
545e22fb16 Bug 1264165 - Implement link referrerPolicy attribute. r=josh, r=khuey
MozReview-Commit-ID: GxMtNB23eD8
2016-06-24 10:38:47 +08:00
Karl Tomlinson
8f6ffacf7d bug 1213313 set mComputedValue for each tick so that SetTarget values are calculated correctly r=padenot
from mLastComputedValue.

MozReview-Commit-ID: 28lYzlarp8U

--HG--
extra : rebase_source : fc8aca3718d9857b75cd835ffac1940d20e9d943
2016-06-21 18:02:06 +12:00
Karl Tomlinson
1ea1e941eb test for bug 1213313 r=padenot
MozReview-Commit-ID: 6CU9AgW8dZx

--HG--
extra : rebase_source : 75ffbade151f1fb232e8e7b6d5239ba3be35e3bb
2016-06-22 10:16:32 +12:00
Karl Tomlinson
470d8c9d1d bug 1257718 replace bailOut variable with more descriptive timeMatchesEventIndex r=padenot
with the new variable matching the loop exit status of interest.

MozReview-Commit-ID: 8xy5ipo4trp

--HG--
extra : rebase_source : e951177af0699a550a4fb56a6192720207e74cb2
2016-06-21 17:48:31 +12:00
Karl Tomlinson
5d244c17fc bug 1257718 look for new events as time advances r=padenot
|bailout| is reset for each aTime, so that the appropriate events for that
time can be found.

The |eventIndex| loop is adjusted so that, when it is re-entered, it keeps
the current set of events if they are appropriate (instead of advancing
every time it is entered).

|previous| and |next| are now advanced even when passing the last event,
removing the special case when past all events.

MozReview-Commit-ID: 8ZSIzKKGQbd

--HG--
extra : rebase_source : bfc899287abaf12d5cdbfbc1b22d6626ab2299dd
2016-06-21 17:01:18 +12:00
Karl Tomlinson
34706466dd test for bug 1257718 r=padenot
MozReview-Commit-ID: 8MkfnpsQBKH

--HG--
extra : rebase_source : f60e8d09969751b76cb6daff66139e3624b076b6
2016-06-22 09:10:31 +12:00
Karl Tomlinson
ba91bfca8e bug 1257718 use is() for comparison with more info on failure than ok() r=padenot
MozReview-Commit-ID: 3XgQCq4Gg0S

--HG--
extra : rebase_source : 35a4c0c8a626350f96ba0d2359b28f557235aae4
2016-06-17 14:28:39 +12:00
Karl Tomlinson
b92cb079fc bug 1257718 introduce function-scope TimeOf() to simplify templated event time getter calls r=padenot
MozReview-Commit-ID: 7uKqlT2BpcS

--HG--
extra : rebase_source : 2670536946bde0e1a6911bacbaa68d1c636e6455
2016-06-17 10:54:54 +12:00
Karl Tomlinson
fc997c1ba1 bug 1257718 rename lastEventId to eventIndex r=padenot
This is not necessarily related to the last event and it is not the
previous event.

MozReview-Commit-ID: 6hhv184BHfg

--HG--
extra : rebase_source : 8013606e27a159bb2598217db40df926539227c6
2016-06-17 09:36:24 +12:00
Karl Tomlinson
9d3453793f bug 1257718 don't export implementation of complex timeline methods r=padenot
This limits recompilation required when modifying the methods, and
makes the public interface easier to read.

MozReview-Commit-ID: Lo2f7xmIdGu

--HG--
rename : dom/media/webaudio/AudioEventTimeline.h => dom/media/webaudio/AudioEventTimeline.cpp
extra : rebase_source : 75586bb320dd2e5606e691919b1c6a7c48c2065f
2016-06-17 05:26:13 +12:00
Karl Tomlinson
6fca9ca1b9 bug 1257718 move comment to within the code path it describes r=padenot
The comment was not necessarily true where it was previously positioned.

MozReview-Commit-ID: FMYkGkmuvVS

--HG--
extra : rebase_source : a6ae6958b9486c92c7830fcc334dac66c643dc29
2016-06-17 03:29:40 +12:00
Cameron McCormack
3265f73629 Bug 1280772 - Part 3: Store Servo-parsed style="" attributes in nsAttrValues. r=bholley 2016-06-24 13:35:12 +10:00
Cameron McCormack
7e0f01ceba Bug 1280772 - Part 2: Rename eCSSDeclaration to eGeckoCSSDeclaration. r=bholley 2016-06-24 13:35:12 +10:00
Cameron McCormack
7e7d15d949 Bug 1280772 - Part 1: Remove explicit numbering of MiscContainer-residing nsAttrValue types. r=bholley 2016-06-24 13:35:12 +10:00
Phil Ringnalda
0c749ef583 Back out 2 changesets (bug 1195477) on suspicion of breaking Mac clobbers in libffi
CLOSED TREE

Backed out changeset 45a6a74c46ea (bug 1195477)
Backed out changeset 4f607b7635fd (bug 1195477)
2016-06-23 19:29:22 -07:00
Sotaro Ikeda
20a765bfb9 Bug 1281169 - Temporarily disable gonk fence handling r=nical 2016-06-23 19:06:40 -07:00
Seth Fowler
f3f1ed4efa Bug 1262549 - Refuse to allocate huge deinterlacing buffers. r=edwin 2016-06-23 18:59:58 -07:00
Nathan Froyd
120cdf42f2 Bug 1281918 - make runcppunittests filter out non-executable files when given a directory; r=chmanchester
When runcppunittest (resp. |mach cppunittest|) is passed a directory, it
attempts to indiscriminately run all the files found in that directory.
This is unhelpful, as directories containing compiled cppunittests also
tend to have other things: Makefiles, object files, etc.  Let's filter
out non-executable files from the directory listing and make the user
experience more pleasant.
2016-06-24 04:02:18 -04:00
Boris Zbarsky
4eb82c0b30 Bug 1281071. Be a bit more careful with our cross-origin-accessible stuff on windows. r=bholley 2016-06-23 19:39:53 -04:00
Benjamin Forehand Jr
1d4d977605 Bug 1237396 - Add safebrowsing test for initial download of files. r=whimboo
More adjustment on the if statement within the base class.

MozReview-Commit-ID: HjifORUSWXo

--HG--
extra : rebase_source : dc0b10274613b8cbae38086571f4ab52750a2266
2016-03-09 17:19:35 -05:00
Chris Manchester
93e4d9f751 Bug 1281603 - Respect --disable-debug even when MOZ_DEBUG is set in the environment. r=glandium
MozReview-Commit-ID: 9zPF9uzhhuM

--HG--
extra : rebase_source : 92745a39f249fb885f282302a653e334c91fb4ff
2016-06-22 14:58:32 -07:00
Randall Barker
1616721bd6 Bug 1280656 - Use Android ViewConfiguration to get max fling velocity. r=kats 2016-06-23 16:27:40 -07:00
Rob Wood
a867555f71 Bug 1276915 - Override all test cycles when profiling; r=jmaher
MozReview-Commit-ID: 86cL0OMhL3a

--HG--
extra : rebase_source : 69601e9b329b02331406b1a15429920f1326c066
2016-06-23 10:07:55 -04:00
Nils Ohlmeier [:drno]
cb71d8fa20 Bug 1281708: remove assert for unknown stun server transports. r=mjf
MozReview-Commit-ID: BNNM12fBV4I

--HG--
extra : rebase_source : a6b01e24d942940ff12fe3d6fd05e03c7bb9b6a6
2016-06-23 12:00:31 +02:00
stefanh@inbox.com
5e50e79d79 Bug 1281028 - Remove run-time Mavericks checks in nsAppShell.mm. r=spohl. 2016-06-20 20:41:18 +02:00
Mike Shal
17d3cc636b Bug 1273579 - Move GenerateCSS2PropertiesWebIDL.py invocation to moz.build; r=ted
MozReview-Commit-ID: 4OdSORktwis
2016-05-16 15:43:56 -04:00
Mike Shal
368c6bdec3 Bug 1273579 - Create main() function in GenerateCSS2PropertiesWebIDL.py; r=ted
MozReview-Commit-ID: 1R4L8Yvuzb2
2016-05-16 15:28:48 -04:00
Mike Shal
b0edca9456 Bug 1272488 - Move GenerateCSSPropsGenerated.py invocation to moz.build; r=ted
MozReview-Commit-ID: FLonTih9d6u
2016-05-10 17:35:56 -04:00
Mike Shal
8cb4dbbdc5 Bug 1272488 - Create a main() function in GenerateCSSPropsGenerated.py; r=ted
MozReview-Commit-ID: 3lGMwYsXV1N
2016-05-10 17:17:15 -04:00
Ralph Giles
f1ddc8e39c Bug 1281298 - Renew media telemetry keys. r=bsmedberg,kinetik
Renew expiring telemetry histograms for media playback work.
We're still using these to track implementation quality and priority.

MozReview-Commit-ID: 6ymTCiOyel5

--HG--
extra : rebase_source : 4a12e4871d532d2ef0c4f10d44899386bcc6f336
2016-06-21 15:01:58 -07:00
Nicholas Hurley
692067a4d1 Bug 1281505 - Only enable predictor prefetch by default on nightly. r=mayhemer
MozReview-Commit-ID: 3IPYGooiUSx
2016-06-23 07:59:45 -07:00
Lee Salzman
1a695a53a7 Bug 1281419 - ignore negative icon size in URI. r=seth 2016-06-23 10:47:36 -04:00
Olli Pettay
fd266b20b2 Bug 1281762 - nsWindowRoot::mPopupNode may keep otherwise closed documents alive, r=enn 2016-06-23 17:14:19 +03:00
Nathan Froyd
449fff0af3 Bug 1195477 - part 2 - pass -no-integrated-as to libffi when building with clang; r=glandium
The ARM assembly sources in libffi don't work well with clang's
integrated assembler, so disable the integrated assembler for libffi.
2016-06-23 17:46:59 -04:00
Nathan Froyd
31c615bd95 Bug 1195477 - part 1 - use -no-integrated-as for clang builds on ARM, moz.build changes; r=glandium
We have a lot of assembly written assuming gas's conventions, which
clang's integrated assembler doesn't support.  Disable the integrated
assembler for those pieces of code.
2016-06-23 17:46:59 -04:00
Martin Stransky
c6f6b7735f Bug 1215104 - Update nsWindow for non-X11 backend. r=karlt 2016-06-22 02:10:00 -04:00
Johann Hofmann
076865739f Bug 1280485 - Don't sort permission list to improve tab load performance. r=Gijs
MozReview-Commit-ID: CIOY5G1v44u

--HG--
extra : transplant_source : %C37%0C%98%E4%ED%E1d%EEH%AC%AB%FA%F5%1A%03/%BE%22%EF
2016-06-17 14:59:01 +01:00
Paul Adenot
59f0db4ad0 Bug 1281193 - Lock when touching tracks in SourceAudioStreams. r=pehrsons
MozReview-Commit-ID: 2aSS8esq5jq
2016-06-22 17:44:46 +02:00
Eugen Sawin
6fe4de35ae Bug 1278574 - [2.2] Instantiate MediaPrefs on Android during AndroidBridge construction. r=jya 2016-06-23 15:26:11 +02:00