Commit Graph

618954 Commits

Author SHA1 Message Date
David Parks
564c9860a3 Bug 1488439: Part 2 - Patch GetFileAttributesW for appdata parent folders in sandboxed plugin process (r=bobowen,jmathies)
Flash analyzes the parents of the path to its appdata folder on Windows using GetFileAttributesW.  If it runs into an error, it makes some internal decisions that cause it to break DRM video.  Our new sandbox hardening causes GetFileAttributesW to return an error for some components of the path.  This patch alters the behavior of GetFileAttributesW so that it always reports FILE_ATTRIBUTE_DIRECTORY for any path that both 1) would otherwise return an error and 2) is an ancestor of the appdata folder.  This may not always be 100% accurate (for instance, if the folder is a reparse point) but restores video functionality.

Depends on D7532

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

--HG--
extra : moz-landing-system : lando
2018-10-12 22:36:56 +00:00
Nick Alexander
3c83541616 Bug 1489443 - Set GCC_USE_GNU_LD based on linker kind. r=froydnj
The desired outcome of this change is that we'll set
`-Wl,--version-script` based on linker kind and not on the output of
`$LINKER -v`.

This is a cheap way to address a simple problem that has a complicated
ideal solution.  The underlying issue is that in some situations, when
targeting Android, a macOS system `ld` is interrogated to determine if
a cross-compiling linker "is GNU ld" and a particular linker feature
is set in that situation.  The macOS system `ld` doesn't pass the "is
GNU ld" test, and the linker feature isn't set; that causes link
failures, even though the actual linker has nothing to do with the
system `ld`.

The ideal solution is to test for linker capabilities dynamically.  We
do a lot of that in old-configure.in, and we don't do any of that in
toolchain.configure.  Rather than start testing in
toolchain.configure, we hard-code: a cheap solution to the immediate
problem.

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

--HG--
extra : moz-landing-system : lando
2018-10-12 22:38:44 +00:00
David Parks
99e17d748f Bug 1488439: Part 1 - Replace Windows temp folder in sandboxed plugin process (r=bobowen,erahm)
The sandbox blocks GetTempFileName's prior response, causing the system to end up searching a number of (inaccessible) folders to use as a replacement for the temp folder.  This patch provides a path to a new folder on the command line for the plugin process.  This new temp folder, specific to this plugin process instance, is then communicated to the system via the TEMP/TMP environment variables.  This is similar to what is done for the content process but avoids nsDirectoryService, which doesn't exist in plugin processes.

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

--HG--
extra : moz-landing-system : lando
2018-10-12 22:36:22 +00:00
alwu
710e33671f Bug 1496281 - do not create audio stream if audio has ended. r=jya
We should not init the audio steam when the audio queue is marked as finished.

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

--HG--
extra : moz-landing-system : lando
2018-10-12 22:23:40 +00:00
Ryan VanderMeulen
8d7fac8246 Bug 1498727 - Update pdf.js to version 2.0.928. r=bdahl
--HG--
extra : rebase_source : 10a09946095ad9e3b871a0b016363ae9060d1add
2018-10-12 18:03:02 -04:00
Brian Grinstead
62df0fa1b2 Bug 1498713 - Use .children for context menu test helper instead of .childNodes to fix tests in browser.xhtml;r=bdahl
Differential Revision: https://phabricator.services.mozilla.com/D8604

--HG--
extra : moz-landing-system : lando
2018-10-12 21:12:55 +00:00
Daosheng Mu
56c58b6d06 Bug 1497787 - MacIOSurface should only be access at VRSession thread. r=kip
MozReview-Commit-ID: FmWOuctM3yH

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

--HG--
extra : moz-landing-system : lando
2018-10-12 21:54:09 +00:00
Mike Hommey
148c9de331 Bug 1498450 - Avoid the footgun from @depends-function comparison r=froydnj
While we do have some uses of @depends-function comparison in some
templaces, related to host/target, we ought to be using `is` comparisons
rather than `==` anyways, so we switch those, and prevent other kinds of
comparisons being used at all.

This unveils the one noted in
https://phabricator.services.mozilla.com/D7713?id=21357#inline-30414
(and surprisingly only that one), that we remove entirely since it was
doing nothing in practice. Bug 1492305 will have to add it back in a
proper form.

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

--HG--
extra : moz-landing-system : lando
2018-10-12 13:44:08 +00:00
Hiroyuki Ikezoe
c38ab87983 Bug 1498294 - Watch GUID_DEVINTERFACE_HID device changes instead of GUID_DEVINTERFACE_MOUSE. r=masayuki
It seems some touchscreen devices are recognized as an HID not a mouse, so
for such devices we need to use GUID_DEVINTERFACE_HID instead.

I've confirmed that WM_DEVICECHANGE is received when a mouse is
connected/disconnected on a Thinkpad even if we use GUID_DEVINTERFACE_HID here.

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

--HG--
extra : moz-landing-system : lando
2018-10-12 13:45:24 +00:00
Tim Nguyen
53b1b96828 Bug 1497969 - Add a way to emulate :focus-within pseudo-class. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D8275

--HG--
extra : moz-landing-system : lando
2018-10-12 21:56:44 +00:00
Erica Wright
d3826b0a61 Bug 1495583 - Add a button to restore the default value for network.trr.uri preference. r=flod,jaws
This adds a button to the preferences UI to restore the default value for network.trr.uri preference.

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

--HG--
extra : moz-landing-system : lando
2018-10-12 21:34:50 +00:00
Ed Lee
16de201664 Bug 1498462 - Add Personalization v2, RichText snippets and bug fixes to Activity Stream r=ursula
Differential Revision: https://phabricator.services.mozilla.com/D8588

--HG--
extra : moz-landing-system : lando
2018-10-12 19:13:39 +00:00
Masayuki Nakano
e7eda01d23 Bug 1484126 - part 0: Add automated tests for nsITableEditor.getCellDataAt() r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D8337

--HG--
extra : moz-landing-system : lando
2018-10-12 04:09:19 +00:00
Jeff Walden
def84d6ecb Bug 1498458 - Properly report OOM on failure to allocate ArrayBuffer contents for a fresh ArrayBuffer that can't fit in inline storage. r=nbp
--HG--
extra : rebase_source : 5f1e4672615f03b61120b714b968e8be11a0aa99
2018-10-11 20:32:11 -07:00
Noemi Erli
01f8e056e9 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-10-16 04:30:07 +03:00
Makoto Kato
f6302a7ef3 Bug 1498438 - Use Microsoft JhengHei for zh-TW on all channel. r=jfkthame
--HG--
extra : rebase_source : e01310e83fea1497711666bfb5748d0c530bcddf
2018-10-15 12:38:41 +09:00
Jeff Walden
298234a01c Bug 1498458 - Properly report OOM on failure to allocate ArrayBuffer contents for a fresh ArrayBuffer that can't fit in inline storage. r=nbp
--HG--
extra : rebase_source : 36856db3e9a6ea83b6029500e418a904252be354
2018-10-11 20:32:11 -07:00
Jason Orendorff
d31371e0f4 Bug 1498252 - Remove bogus newlines from ContextChecks crash messages. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D8393

--HG--
extra : moz-landing-system : lando
2018-10-12 00:39:23 +00:00
Brindusan Cristian
25e58a63c5 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-14 12:28:55 +03:00
Noemi Erli
5e9b16a94e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-14 01:31:28 +03:00
Botond Ballo
63264c57f4 Bug 1498767 - Add missing MFBT tests to testing/cppunittest.py. r=froydnj
Also add a comment to mfbt/tests/moz.build to remind people that tests
need to be added to testing/cppunittest.py.

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

--HG--
extra : moz-landing-system : lando
2018-10-13 21:54:27 +00:00
Dorel Luca
3e9ce00f93 Backed out changeset 89f4156c07a5 (bug 1497580) for CL failures in dom/base/test/test_bug166235.html 2018-10-13 23:28:27 +03:00
Kearwood "Kip" Gilbert
e2ae575ca7 Bug 1473399 - Enable VR Service thread by default. r=daoshengmu
--HG--
extra : source : 81c3640eaebc47516247f546b2203ec550fdd37a
extra : amend_source : 5b3cb943e467e35c475cf147b3f7686293a03045
2018-10-11 11:17:52 -07:00
David Major
d6200d9646 Bug 1427808 - Remove the now-unused win64-clang-cl-st-an toolchain. r=froydnj 2018-10-12 07:15:00 -04:00
David Major
1a22e4f876 Bug 1427808 - Static analysis builds no longer need to force the use of link.exe. r=froydnj 2018-10-12 07:14:00 -04:00
David Major
9745eb7dc7 Bug 1427808 - Make static analysis builds use the main win64-clang-cl toolchain. r=froydnj 2018-10-12 07:14:00 -04:00
David Major
56fefe876b Bug 1427808 - Fix libs for clang-plugin build. r=froydnj 2018-10-12 07:14:00 -04:00
Jared Wein
d38a852ff0 Bug 1480532 - Remove 'Reload All Tabs' from tab context menu. r=Felipe
I left off the part about adding Reload Tabs to the All Tabs menu since the specs don't mention how this would appear with the New Container Tab menuitem and the Tab Manager project has been split off from the multiselect tabs project.

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

--HG--
extra : moz-landing-system : lando
2018-10-12 21:16:44 +00:00
Jared Wein
db73173d1f Bug 1496338 - Tab bar context menu should read 'Bookmark Selected Tab...' if only one tab is selected. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D8267

--HG--
extra : moz-landing-system : lando
2018-10-12 21:15:34 +00:00
Sylvestre Ledru
dd5741407b Bug 1498586 - Add clang-format off to avoid the reformatting of the data structures r=Ehsan
Too hard/impossible for the tool to format correctly these structs

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

--HG--
extra : moz-landing-system : lando
2018-10-12 20:48:24 +00:00
Paul Bone
6460cad3b5 Bug 1498095 - Only poison the portion of the nursery we used r=jonco
We have to do this both for sweeping and when setting the current chunk.  We
set the current chunk after sweeping so to have an effect when there's only
one chunk (the main reason for this code) we need to do this correctly then
also.

--HG--
extra : rebase_source : a7b3515588e4b7421d88cc855221b27c5d437038
2018-10-11 16:29:55 +11:00
Tom Ritter
cc01d26509 Bug 1498694 Revert the patch that relaxes the MSVC requirement (1431807) since mingw-clang passes it now r=bobowen 2018-10-12 13:45:49 -05:00
Paul Bone
a53652b589 Bug 1498177 - Use size_t for integer values particularly for comparisons r=sfink
These values were compared as floats, where there was no sagnificant
difference and the assertion failed.

--HG--
extra : rebase_source : 78540e23c113c781c515073f376ed5aa74322a07
2018-10-12 20:17:58 +11:00
Noemi Erli
a52231df87 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-10-16 01:22:27 +03:00
Bogdan Tara
48993ddce1 Backed out 2 changesets (bug 1497301) for /url/failure.html failures CLOSED TREE
Backed out changeset 45ba0943d666 (bug 1497301)
Backed out changeset 0bd7470927d2 (bug 1497301)
2018-10-16 00:30:00 +03:00
Eric Faust
180a06778b Bug 1497796 - Mark with block contents in BinAST as being "in a with". (r=arai)
--HG--
extra : rebase_source : ce5fa6f9cdd8884a191762ef31fb46ccbf8b73b3
2018-10-15 17:17:58 -04:00
Eric Faust
ae0de9dc24 Bug 1497792 - Make arguments objects for more functions in BinAST. (r=arai)
--HG--
extra : rebase_source : 774ac7ef9c638786baa62364bdbeb86504158b35
2018-10-15 17:17:58 -04:00
Eric Faust
6f88a7757b Bug 1496332 - Properly handle { __proto__: foo } in BinAST. (r=arai)
--HG--
extra : rebase_source : d52923bd2f24279f6e4aa497e0f0589cde18aaed
2018-10-15 17:17:58 -04:00
Eric Faust
6b91c1f29f Bug 1496330 - Properly handle dynamic bindings in with blocks in BinAST. (r=arai)
--HG--
extra : rebase_source : 86e216d14b03e07a26434ac03c5a33deb3cc6f4d
2018-10-15 17:17:58 -04:00
Eric Faust
ba7c7167a4 Bug 1496329 - Properly implement shorthand properties in BinAST. (r=arai)
--HG--
extra : rebase_source : 6190555d873462cfd09f0ef2121ba1321d6b6df4
2018-10-15 17:17:58 -04:00
Eric Faust
40d9810f1e Bug 1497791 - Correctly implement toplevel "use strict" in BinAST. (r=arai)
--HG--
extra : rebase_source : 43a384ff60ad972131376e863df6302df9f27302
2018-10-15 17:17:58 -04:00
Bogdan Tara
37c2b65d30 Backed out changeset ffb2909f660d (bug 1497312) for browser_flexbox_highlighter_color_picker_on_RETURN.js failures CLOSED TREE 2018-10-15 23:31:22 +03:00
Michael Kaply
bab6fc0886 Bug 1475989 - add support for loadPath blocking r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D7620

--HG--
rename : toolkit/components/search/tests/xpcshell/data/search_blacklist.json => toolkit/components/search/tests/xpcshell/data/search_ignorelist.json
rename : toolkit/components/search/tests/xpcshell/test_blacklist.js => toolkit/components/search/tests/xpcshell/test_ignorelist.js
rename : toolkit/components/search/tests/xpcshell/test_json_cache_blacklist.js => toolkit/components/search/tests/xpcshell/test_json_cache_ignorelist.js
extra : moz-landing-system : lando
2018-10-10 17:11:37 +00:00
Nicolas Chevobbe
bcd61b77db Bug 1425542 - Move inspectObjectActor away from jsterm; r=bgrins.
Differential Revision: https://phabricator.services.mozilla.com/D8519

--HG--
extra : moz-landing-system : lando
2018-10-15 14:23:51 +00:00
Nicolas Chevobbe
95a682c9a9 Bug 1484989 - Prevent JsTerm to steal focus when reloading a page; r=bgrins.
JsTerm's focus function was called in clearOutput, which
we call when navigating to a new page (if Persist Logs is
not checked).
This means that we were forcing the JsTerm to be focused
each time the user navigated while having the console open.
This behavior, can be annoying, or at worst, if you're
debugging a focus issue in your content page, completely maddening.
The fix is striaghtforward: do not call focus in clearOutput.
A test is added to make sure we don't regress this.

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

--HG--
extra : moz-landing-system : lando
2018-10-15 14:25:10 +00:00
Ehsan Akhgari
4298421581 Bug 1491455 - Update the security and content blocking icons in the control centre r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D8638

--HG--
extra : moz-landing-system : lando
2018-10-15 14:19:41 +00:00
Ursula Sarracini
057fe36fc6 Bug 1498378 - Actually remove the old onboarding add-on's prefs r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D8598

--HG--
extra : moz-landing-system : lando
2018-10-15 14:04:43 +00:00
Jan-Erik Rediger
cb18367fe4 Bug 1481812 - Refactor memory gathering into its own module r=chutten
This avoids loading the remaining parts of TelemetrySession in a content process.
This saves around 10 kb of memory.

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

--HG--
extra : moz-landing-system : lando
2018-10-12 13:51:24 +00:00
Ehsan Akhgari
0324774e90 Bug 1498720 - Ensure that we revoke a subframe's storage access when it is removed from the DOM r=baku
Differential Revision: https://phabricator.services.mozilla.com/D8615

--HG--
extra : moz-landing-system : lando
2018-10-15 10:37:11 +00:00
Ehsan Akhgari
bd4eab0ff0 Bug 1498466 - Ensure that hasStorageAccess() returns a sensible value with cookieBehavior set to accept all cookies r=baku
Differential Revision: https://phabricator.services.mozilla.com/D8584

--HG--
extra : moz-landing-system : lando
2018-10-15 10:36:48 +00:00