Commit Graph

607627 Commits

Author SHA1 Message Date
Bryce Van Dyk
79b52e379f Bug 1404977 - Tests P1: Add test to ensure multiple, concurrent gUM calls in separate iframes succeed. r=pehrsons
MozReview-Commit-ID: Iyr2A0R1rMd

--HG--
extra : rebase_source : ace5852d924a582d7ad2567f86365641b120d3be
2018-07-10 15:09:50 +02:00
Andreas Pehrson
7803237bca Bug 1404977 - Exit NotifyInputData early if there's no input listener. r=achronop
MozReview-Commit-ID: KMy01D2VjLi

--HG--
extra : rebase_source : 3975d92084815cbc44b3d8bd437f6b838fd1f541
2018-08-03 14:14:36 +02:00
Steve Fink
c2cd71409a Bug 1479672 - Remove --enable-stdcxx-compat option from JS shell being analyzed for hazards, r=jonco
--HG--
extra : topic : gcstats.thresh
extra : rebase_source : abadf20fc240b287d5ff70fe6887e1acdcfb0f9d
2018-07-05 15:25:12 -07:00
Steve Fink
f5faa47091 Bug 1475446 - Use in-tree zlib for msan, r=jonco
--HG--
extra : topic : gcstats.thresh
extra : rebase_source : 5db54943138f3a5b7395cd52faedfa89aa95a872
2018-07-11 17:35:10 -07:00
Gabriele Svelto
50ba13cce4 Bug 1348273 - Convert crash annotations into a machine-readable list of constants; r=ted.mielczarek,njn,dholbert,mak,cpearce,mcmanus,froydnj,Dexter,jrmuizel,jchen,jimm,bz,surkov
This introduces the machinery needed to generate crash annotations from a YAML
file. The relevant functions are updated to take a typed enum (in C++) and an
integer constant (in JavaScript). A JavaScript wrapper around the crash
reporter service is provided to hold the constants. The existing whitelists
and blacklists of annotations are also generated from the YAML file and the
existing duplicate code has been consolidated. Once written out to the .extra
file the annotations are converted in string form and are no different than
the existing ones.

All existing annotations have been included (and some obsolete ones removed)
and all call sites have been updated including tests.

--HG--
extra : rebase_source : b4f0d4bf83c64851028c271d3fab3ebcb6fbcd3e
2018-07-05 15:42:11 +02:00
Ting-Yu Lin
437e39a5b5 No bug - Correct a bug number in nsFrameStateBits.h. rs=emilio
One frame state bit might be needed in bug 1465474 when simplifying our
::first-line implementation.

DONTBUILD because it's a comment-only change.
2018-08-03 12:59:08 -07:00
Nika Layzell
051eb6dcbd Bug 1480624 - Part 2: Add a DestructValue method to XPConnect to run XPT Type destructors, r=mccr8
Summary:
DestructValue acts a lot like CleanupValue, however in addition to normal
cleanup work, it invokes the destructor of complex data types. This is important
to ensure that constructors and destructors are matched for these complex data
types.

CleanupValue is also used to clean up a value without destructing it, so cannot
be modified in-place.

Depends On D2689

Reviewers: mccr8!

Tags: #secure-revision

Bug #: 1480624

Differential Revision: https://phabricator.services.mozilla.com/D2690
2018-08-03 15:55:13 -04:00
Nika Layzell
f1902ff595 Bug 1480624 - Part 1: Add XPT_FOR_EACH_*_TYPE macros to xptinfo.h, r=mccr8
Summary:
This macro simplifies code which allows performing an operation on or
extracting information from a particular nsXPTType's native representation.

It is also used in part 2 to implement xpc::DestructValue.

Reviewers: mccr8!

Tags: #secure-revision

Bug #: 1480624

Differential Revision: https://phabricator.services.mozilla.com/D2689
2018-08-03 15:55:13 -04:00
Coroiu Cristina
1ba19a32ac Backed out changeset 86471a18672f (bug 1348273) for ESlint failure at toolkit/modules/WebNavigationChild.jsm
--HG--
extra : rebase_source : e0c94f49ddc1f1b119b72c06fccc1b4363b9d340
2018-08-03 22:48:51 +03:00
Masatoshi Kimura
2661405f4c Bug 1479779 - Reduce clang-cl warnings from ipc/mscom/. r=aklotz
--HG--
extra : source : cc62c7bb49ef7261bfe261a7c88a52728d7889ea
extra : intermediate-source : 13d3cca02ea72befac4d306722eaae2d0ab1a90c
2018-07-31 22:04:58 +09:00
Gabriele Svelto
eff24befbd Bug 1348273 - Convert crash annotations into a machine-readable list of constants; r=ted.mielczarek,njn,dholbert,mak,cpearce,mcmanus,froydnj,Dexter,jrmuizel,jchen,jimm,bz,surkov
This introduces the machinery needed to generate crash annotations from a YAML
file. The relevant functions are updated to take a typed enum (in C++) and an
integer constant (in JavaScript). A JavaScript wrapper around the crash
reporter service is provided to hold the constants. The existing whitelists
and blacklists of annotations are also generated from the YAML file and the
existing duplicate code has been consolidated. Once written out to the .extra
file the annotations are converted in string form and are no different than
the existing ones.

All existing annotations have been included (and some obsolete ones removed)
and all call sites have been updated including tests.

--HG--
extra : rebase_source : f0e8d229581ac5c0daa0e0454cb258746108e28d
2018-07-05 15:42:11 +02:00
Boris Zbarsky
e2aafee76f Bug 1479569 part 3. Remove nsIContentFrameMessageManager. r=kmag 2018-08-02 23:49:09 -04:00
Boris Zbarsky
e4b74becff Bug 1479569 part 2. Use the new messageManager getter on docshell. r=kmag
I generally tried to preserve the behavior of consumers where they treated an
exception from getInterface(Ci.nsIContentFrameMessageManager) as a signal to use
some sort of fallback.

I did change the behavior of consumers that walked up to the root same-type
docshell before getting the message manager to just get it directly from the
docshell they have.  Please review those parts carefully, and let me know if you
want me to ask some subject area experts to review those.
2018-08-02 23:49:09 -04:00
Boris Zbarsky
b421d6d7fb Bug 1479569 part 1. Add a ContentFrameMessageManager getter on nsIDocShell. r=kmag 2018-08-02 23:49:09 -04:00
Tom Prince
caf815cd8b Bug 1479506: Fix permissions on taskcluster/taskgraph/transforms/task.py; r=me DONTBUILD
--HG--
extra : rebase_source : ba6ffa417b5ae083ad61a71defeb3cc1719b49dd
extra : amend_source : d1e1d2ce82dbc27a3d0878373da02cb1a88befa4
2018-08-03 11:55:48 -06:00
Matt Howell
3eedff1868 Bug 1473113 - Defer initializing the MAR index until it's needed. r=rstrong
--HG--
extra : source : 6ea6dde8422f745f10dbc004293d1c1bc96e6b8e
2018-07-11 10:12:08 -07:00
Paul Adenot
fc57da928f Bug 1404977 - Part 17 - Re-implement the workaround for the lack of input device enumeration on Android. r=pehrsons
MozReview-Commit-ID: 5EiQ6a3OaIR

--HG--
extra : rebase_source : d39706b5c09438f55ef1d26b3e0fb127ac05cfa6
2018-07-04 18:00:57 +02:00
Mark Banner
d0d3486293 Bug 1475004 - Enable ESLint for dom/presentation - manual fixes. r=mccr8
MozReview-Commit-ID: 8UGertZYKk

--HG--
extra : rebase_source : ca00ad17ef23739d62e8e9e1336cb0fe07a7c379
2018-07-03 16:25:27 +01:00
Mark Banner
a0026662dd Bug 1475004 - Enable ESLint for dom/presentation - automatic fixes. r=mccr8
This is based on the same rules as for the majority of the rest of mozilla-central.

MozReview-Commit-ID: 2O1jH8cNXIj

--HG--
extra : rebase_source : b6788a231f70521398ef8783bebce99384a344d9
2018-07-03 16:19:05 +01:00
Sebastian Hengst
f1b93a05ce Bug 1480434 - set browser.tabs.multiselect to true in browser_multiselect_tabs_reorder.js. r=jaws
MozReview-Commit-ID: GRk8K0k6Ttk

--HG--
extra : rebase_source : 923855315d88db4def88f63eecbb8e3566772ff7
2018-08-02 18:23:46 +03:00
Rob Wu
49b6bca477 Bug 1477688 - Enable test_ext_contexts_gc on Android r=rpl
MozReview-Commit-ID: 2q8FkeCl4Ay

--HG--
extra : rebase_source : b7640092c67cfe3c218be9592195a36e98545c6a
2018-08-01 16:35:16 +02:00
Rob Wu
0360fe3b9c Bug 1398542 - Add test coverage for video/audio context menus r=mixedpuppy
MozReview-Commit-ID: 22VB0Jltj56

--HG--
extra : rebase_source : 98d56e06c4e217816116f1f9e8e47f00d5189677
2018-08-01 18:20:17 +02:00
Kartikaya Gupta
3bf383c2cd Bug 1474885 - Re-enable crashtests that are now passing. r=nical
MozReview-Commit-ID: 334GLtdSzF5

--HG--
extra : rebase_source : 015277f17a77b571ed50e10a5207957e4a0f2bb7
2018-08-02 10:28:15 -04:00
Julian Descottes
92987d7581 Bug 1480384 - Remove unused theme option for autocomplete-popup;r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D2666

--HG--
extra : moz-landing-system : lando
2018-08-02 15:05:50 +00:00
Petru Lingurar
9174e20795 Bug 1349522 - Provide alternative adaptive-icon with Android SDK O; r=jchen
Used the provided foreground layers and background color for the icons of
Release and Nightly.
Used the old icon and the provided background color for the icons of Beta and
Dev builds. Proper icons for them will be added in bug 1479724.

Added support for round icons which as per
https://developer.android.com/about/versions/nougat/android-7.1#circular-icons
can be required by certain launchers.

The old icons - /drawable/icon.png are still kept because they are used as
logos and also by SiteIdentityPopup.java.

MozReview-Commit-ID: EA9pojukhmw

--HG--
extra : rebase_source : d960bb0785b329a91493d9fe2c126549a5641189
2018-08-02 15:06:24 +03:00
Luca Greco
ceee91f76f Bug 1473920 - Fix browser_ext_themes_ntp_colors_perwindow failures when running on Linux. r=mixedpuppy
MozReview-Commit-ID: LxlmZ7xx06s

--HG--
extra : rebase_source : 4d440ccb0fb638a544ff6241557d7592c23588e4
2018-07-30 21:40:35 +02:00
Kartikaya Gupta
157d196498 Bug 1479432 - Update Cargo lockfiles and re-vendor rust dependencies. r=jrmuizel
MozReview-Commit-ID: BhLXnUXBZpq

--HG--
extra : rebase_source : dc44ec6d19d96071567937a8d5258e4b380a5136
2018-08-02 10:20:54 -04:00
Kartikaya Gupta
83d156a753 Bug 1479432 - Update webrender to commit 7a1b919e37d6cd0155077aa90f98cfcdf9fa5bae. r=jrmuizel
MozReview-Commit-ID: 1SJgRWEp2qf

--HG--
extra : rebase_source : ec6ffe0686f8ef0bf8149347fcfd48e3870bc316
2018-08-02 10:20:04 -04:00
Henrik Skupin
cad8bf3a7e Bug 1479850 - [wdspec] Add remaining unhandled prompt behavior tests to existent user prompt tests. r=ato
MozReview-Commit-ID: ALsDccEyRsq

--HG--
extra : rebase_source : 8547383082e55c93e5e20f6edfa10cfc2d1cd609
2018-07-31 16:15:19 +02:00
Simon Fraser
bfb9512d42 Bug 733530 Use tar instead of unzip in periodic updates r=catlee
Replace 'unzip -q' with 'tar -xvf' for tests .tar.gz

Differential Revision: https://phabricator.services.mozilla.com/D1939

--HG--
extra : moz-landing-system : lando
2018-07-23 20:46:32 +00:00
Martin Stransky
505c25cbf9 Bug 1480409 - [Linux/Gtk] Don't hardcode mHasAlphaVisual to true when WenRender is used, r=jhorak
Original patch author is Sotaro Ikeda [:sotaro] <sotaro.ikeda.g@gmail.com>

MozReview-Commit-ID: AVtDvWFqsxT

--HG--
extra : rebase_source : be77c1a7df0036b454c8795a56a20acc785a548e
2018-08-02 15:18:51 +02:00
Dan Banner
ba2daaeae2 Bug 1450923 - Update favicons for default bookmarks in Firefox Nightly. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D2645

--HG--
extra : moz-landing-system : lando
2018-08-02 13:00:41 +00:00
Alexandre Poirot
2b5681f94c Bug 1444132 - Always wait for full Connector setup in getHarExportConnector. r=jdescottes
MozReview-Commit-ID: 2k18TK78fk8

--HG--
extra : rebase_source : 4bbe481d3724dc7bb3e26eb79bfa8351c22bcf32
2018-08-01 09:47:20 -07:00
Alexandre Poirot
d41a01a8c9 Bug 1444132 - Fix the order of requests done by html_cause-test-page.html test. r=jdescottes
MozReview-Commit-ID: IY8TLzqjrnT

--HG--
extra : rebase_source : b01a5cd462d920fe52eadb6b4ba8222d08898972
2018-07-31 07:33:04 -07:00
Alexandre Poirot
57ca676e5a Bug 1444132 - Prevent race in browser_net_view_source-debugger.js if the stack button is lazily created. r=jryans
MozReview-Commit-ID: 6nM786CYyp7

--HG--
extra : rebase_source : e412a689110afd3021f65cdab335c94268f6d1e6
2018-07-17 10:49:53 -07:00
Alexandre Poirot
cfe9ef4cae Bug 1444132 - Fetch stacks from content process only on-demand. r=jryans
MozReview-Commit-ID: 727tzsqkkEp

--HG--
extra : rebase_source : daad7d90a5d37145f9c17b1d98dfe2dc1b2c7c23
2018-07-17 08:21:35 -07:00
Alexandre Poirot
1d8dac53fb Bug 1444132 - Fix sendHTTPRequest with the new setup. r=jryans
MozReview-Commit-ID: GCZWd47ICLH

--HG--
extra : rebase_source : 2930cfb226684529e9a01de8c1b1a1eb7b83b0e2
2018-07-17 07:36:39 -07:00
Alexandre Poirot
817c8826cf Bug 1444132 - Fix netmonitor preferences with the new setup. r=jryans
MozReview-Commit-ID: ESP8cctwN8r

--HG--
extra : rebase_source : 032c9d07ca39a8dd57a84d2437fd69283f134a06
2018-07-17 03:43:24 -07:00
Alexandre Poirot
91c15e3f3f Bug 1444132 - Remove the old proxy code. r=jryans
MozReview-Commit-ID: 33LcN5c5o4D

--HG--
extra : rebase_source : 5286e8465932127b3c2643636761a6570974608b
2018-07-17 02:23:49 -07:00
Alexandre Poirot
1547bc9607 Bug 1444132 - Fix stylesheet retrieval from network monitor with the new setup. r=jryans
MozReview-Commit-ID: 3pNu1zeuSwz

--HG--
extra : rebase_source : a5435699f6d7871591b6d801dfba389105457c39
2018-07-16 09:48:29 -07:00
Alexandre Poirot
213dcb3ad6 Bug 1444132 - HSTS redirections now have stack traces. r=jryans
MozReview-Commit-ID: K3CmO15cvKA

--HG--
extra : rebase_source : e2c61ae97c8847de598a09e592b7b98ed56829f0
2018-07-16 09:00:38 -07:00
Alexandre Poirot
c060f7dcf0 Bug 1444132 - Fix stacktrace support with the new setup. r=jryans
MozReview-Commit-ID: 1g5TU9yoj0E

--HG--
extra : rebase_source : ae5f3a8ba4aad8bc1d35a3570bf8856de17e6b02
2018-07-16 10:05:22 -07:00
Paul Adenot
c270650bfe Bug 1404977 - Part 16 - Unit test CubebDeviceEnumerator. r=pehrsons
This is done by implementing a fake cubeb backend that implements the subset of
operations we need, while offering an API to be able to control what this
backend is doing.

Because we're reimplementing the private cubeb API, it is necessary to copy
part of a cubeb internal header, and mimick exactly how the vtable mechanism to
do the dynamic dispatch to the diffferent backends in cubeb works. This is not
ideal but works.

When the cubeb API functions are called (from deep in the Gecko process), we
re-bind the call to the mock cubeb backend object and behave exactly like a
normal backend (calling various callbacks and returning fake objects).

Finally, we inject this mock cubeb backend to the running Gecko process (in lieu
of the real one that would have been picked) by setting the global sCubebBackend
variable via a private API exposed only in the test in CubebUtils.h.

MozReview-Commit-ID: 8ZbJhl7pZ2t

--HG--
extra : rebase_source : 922a03fa84803ed04aed633795a54b8d2a305e15
2018-06-22 11:55:31 +02:00
Paul Adenot
ce1884c2eb Bug 1404977 - Part 15 - Invalidate the device cache before re-enumerating devices when the cubeb backend does not support dynamic device collection invalidation. r=pehrsons
Also, clear the array that's been passed in before appending the new devices.

MozReview-Commit-ID: BTnwzyKBrb5

--HG--
extra : rebase_source : 23dbd11720804a30188389bc4408be4b40ad70b2
2018-06-22 11:47:06 +02:00
Paul Adenot
7ca1aba8c1 Bug 1404977 - Part 14 - Add a way to set the global cubeb* singleton at runtime, from a test. r=pehrsons
This is for testing purposes only. Defining ENABLE_SET_CUBEB_BACKEND before
including CubebUtils.h will expose the function. This is not to be set outside
of test files.

MozReview-Commit-ID: D0V8oLj9xo6

--HG--
extra : rebase_source : e80d4c01ff3b28c300de1e6819477ea732c2f157
2018-06-22 11:45:31 +02:00
Paul Adenot
a1777772d7 Bug 1404977 - Part 13 - Remove useless mutex, and assert why they were useless, in WebRTCAudioDataListeners. r=pehrsons
MozReview-Commit-ID: 2Mb5WZXbYgS

--HG--
extra : rebase_source : c4a7c8874919901eb11327cfb5f86d6b185be388
2018-05-31 16:44:00 +02:00
Paul Adenot
ff9c7304e1 Bug 1404977 - Part 12 - Make DeviceChanged() notification thread safe by using the MSG message queue. r=pehrsons
This is slightly slower, especially if the main thread is busy, but it's cleaner
and actually safe.

MozReview-Commit-ID: 4C2FalxmE3L

--HG--
extra : rebase_source : 3f1341397bede31fcc35dab5a0cbf59b893f9b81
2018-05-31 16:42:24 +02:00
Paul Adenot
0bf09992fd Bug 1404977 - Part 11 - Make sure the default device is the first element in the list. r=pehrsons
MozReview-Commit-ID: LTJErFTm1wN

--HG--
extra : rebase_source : 5abdb58774a0011a2990d1f71c733181eed3c656
2018-05-29 15:20:47 +02:00
Steve Fink
d9a51f4b8a Bug 1469965 - Display trigger threshold exceeded in MOZ_GCTIMER output, r=pbone
--HG--
extra : topic : gcstats.thresh
extra : rebase_source : b41ce4f5dd8a9e78df0ea582078eedba3673c187
2018-05-16 16:15:12 -07:00
Masatoshi Kimura
8b236812bd Bug 1479777 - Reduce clang-cl warnings from mozglue/misc/interceptor/. r=aklotz
--HG--
extra : source : 8b3d7161cbc7e582c79b3b28f961972af104a4f8
extra : intermediate-source : d434b3e9de5d973b031d685cfd7a2e8f8f3f8303
2018-07-31 22:03:43 +09:00