Commit Graph

49546 Commits

Author SHA1 Message Date
Tiberius Oros
d6492ca47e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-07-18 00:59:21 +03:00
Tiberius Oros
d701ae940f Merge inbound to mozilla-central. a=merge 2018-07-18 00:55:33 +03:00
Tim Nguyen
0f271c720b Bug 1474931 - Restore splitter visibility on lightweight themes. r=dao
MozReview-Commit-ID: 9FowKyw9Qgv

--HG--
extra : rebase_source : 9f491ea27c943cb97ab80ef5f72fe212739855f4
2018-07-17 14:02:31 +01:00
Coroiu Cristina
8fe92bdd53 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-07-17 12:47:40 +03:00
Coroiu Cristina
c296d5b239 Merge inbound to mozilla-central a=merge 2018-07-17 12:41:37 +03:00
Marco Bonardo
8f043e9170 Bug 1475500 - Reduce maximum favicon size from 256 to 192px. r=adw
MozReview-Commit-ID: KXeGegF9Pu9

--HG--
extra : rebase_source : 9d12e228ea47b333e046fc1b1040daee3c332758
2018-07-16 17:56:41 +02:00
Dave Townsend
9dd211856e Bug 1474981: Allow newly added search engines to use the tab icon if it is a data uri. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D2123

--HG--
extra : moz-landing-system : lando
2018-07-16 20:51:34 +00:00
Bogdan Tara
1a6ffb9e1e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-07-17 01:02:10 +03:00
Bogdan Tara
a8850882a7 Merge autoland to mozilla-central. a=merge 2018-07-17 00:58:15 +03:00
Julian Descottes
28776da332 Bug 1449968 - Add support for Inspect Element in Shadow DOM;r=bgrins
MozReview-Commit-ID: HhwyDMyZe1k

--HG--
rename : devtools/client/inspector/markup/test/browser_markup_shadowdom_pick_nested.js => devtools/client/inspector/markup/test/browser_markup_shadowdom_nested_pick_inspect.js
extra : rebase_source : 4276e3f88251075fd41d1e7f41a2f229be905f99
2018-07-05 18:48:24 +02:00
Brian Grinstead
e09fd8bb6c Bug 1469339 - Put strings needed for the edit context menu into ftl at toolkit/locales;r=flod
This also registers the locale through the build system and browser glue since
it's the first ftl file in toolkit/.

MozReview-Commit-ID: 7XDqKmVU0vh

--HG--
extra : rebase_source : b179e78554f667fdaf3c3fc32a020a8c176b5021
2018-07-16 08:53:23 -07:00
Stephen A Pohl
b25dbdce5c Bug 1290972: Remove linker flags for macOS that are no longer necessary and cause crashes such as bug 1471366 due to an inability to handle native exceptions when these flags are used. r=froydnj 2018-07-17 10:27:46 -04:00
Coroiu Cristina
f3162b921c Merge mozilla-central to mozilla-inbound a=merge on a CLOSED TREE 2018-07-17 12:48:47 +03:00
Andrea Marchesini
14262bdc7c Bug 1418241 - CSP violation: blockedURI inline/eval, r=ckerschb 2018-07-17 11:13:12 +02:00
Kris Maglione
da381d04b7 Bug 1474155: Part 5 - Null out frame script singleton init methods after they're called. r=mconley
Believe it or not, the memory these references hold alive is significant.
Nulling them out saves 5-10K per process.

MozReview-Commit-ID: JONjE48yE8I

--HG--
extra : rebase_source : 49adc538070eecb9183e6e052e6e43db9c4c7a99
extra : histedit_source : 699f49fad1bfa69b8c511bf96187096e751c8606
2018-07-07 20:49:30 -07:00
Kris Maglione
83fef3fa1e Bug 1474155: Part 2 - Move AutoCompletePopup to a separate JSM. r=mconley
MozReview-Commit-ID: HH2kiS12aEV

--HG--
rename : toolkit/content/browser-content.js => toolkit/modules/AutoCompletePopupContent.jsm
extra : rebase_source : 9b0dffd9c3b675cd8b810a45b0c13d9c71f7952e
extra : histedit_source : 8daf2a49d6f7c0855681b277c612abf98317bb0f
2018-07-10 11:57:47 -07:00
Kris Maglione
5f8dcbabad Bug 1474155: Part 1 - Move PopupBlocking to a separate JSM. r=mconley
MozReview-Commit-ID: FbVGSsmt8C3

--HG--
rename : toolkit/content/browser-content.js => toolkit/modules/PopupBlocking.jsm
extra : rebase_source : 979f6bf273f9f380c80219d24d7aa334d0d0e8a7
extra : histedit_source : 9920049a7129c5ae45c3167a08a596eae22d76ea
2018-07-10 11:57:55 -07:00
Kris Maglione
9604944ae4 Bug 1473631: Part 5 - Replace pref observers with callbacks in RFPService. r=njn
MozReview-Commit-ID: 6rzZNyY8cun

--HG--
extra : rebase_source : 651ba7e475548ab28a678662fbf287faf2dec0aa
2018-07-05 13:49:22 -07:00
Kris Maglione
0bfdb4329f Bug 1473631: Part 0a - Make preference callbacks typesafe. r=njn
I initially tried to avoid this, but decided it was necessary given the number
of times I had to repeat the same pattern of casting a variable to void*, and
then casting it back in a part of code far distant from the original type.

This changes our preference callback registration functions to match the type
of the callback's closure argument to the actual type of the closure pointer
passed, and then casting it to the type of our generic callback function. This
ensures that the callback function always gets an argument of the type it's
actually expecting without adding any additional runtime memory or
QueryInterface overhead for tracking it.

MozReview-Commit-ID: 9tLKBe10ddP

--HG--
extra : rebase_source : 7524fa8dcd5585f5a31fdeb37d95714f1bb94922
2018-07-06 12:24:41 -07:00
Xidorn Quan
823be07d6e Bug 1476128 - Have HIDDEN_VIEWPORT_OVERFLOW_TYPE recorded on main process as well. r=botond
--HG--
extra : source : fdf8a2b9cd052dd192001889149b88ce97c7740e
2018-07-17 08:54:37 +10:00
Petru Lingurar
417a481b63 Bug 1467461 - Migrate CrashReportingService to JobIntentService. r=snorp
Use the fact that a JobIntentService is still a Service to keep most of the
previous implementation and method of starting CrashReportingService.
On 26+ devices it will be called with "start-foreground-service".
This ensures it can be started even from background and the crash reporting
process would work as before but ActivityManager will post an ANR error to
logcat after 5 seconds because we aren't calling Service.startForeground()
(which would mean a user visible notification).

Will use different Job Ids depending on if the app is Firefox Release or
Firefox Beta.
The Job Id will be passed to GeckoThread when first initializing and then be
made available to CrashHandler and nsExceptionHandler.cpp to be sent in the
Intent that starts the CrashReporterService.

MozReview-Commit-ID: GATl6Waa9St

--HG--
extra : amend_source : 70bc130b9411df336181e825ebb3e19bdc5a778c
2018-07-02 17:32:10 +03:00
Shane Caraveo
43b464a409 Bug 1455405 fix intermittent by using real events, r=rpl
This test was testing that files are loaded/executed/etc in the page, but
what we really care about is that the webrequest api works.  Other tests
are responsible for stuff like css and js actually work.  The patch does
maintain (fixed) the js test, but removes the css test for lack of a good
way to properly wait for css to apply.

MozReview-Commit-ID: B2uByaxNeK2

--HG--
extra : rebase_source : 6779116f9f1a4a7ce24cd32c3648d1027343db93
2018-07-16 09:08:30 -03:00
Polly Shaw
226a5beff6 Bug 356831 - Proxy autodiscovery doesn't check DHCP (option 252) r=bagder,valentin
This patch addresses an issue with Firefox's proxy detection on networks which
do not have their a proxy auto-configuration (PAC) file hosted at
http://wpad/wpad.dat, and instead make use of DHCP option 252 for broadcasting
the address of the PAC file. See https://findproxyforurl.com/wpad-introduction/
for an introduction to the protocol.

Prior to this patch, proxy auto-detect missed out the DHCP query stage, and just
 looked for a PAC file at http://wpad/wpad.dat


This patch only addresses the issue for Firefox on Windows, although it defines a
DHCP client interface which could be implemented on other platforms.

The high-level components of this patch are:
 * nsIDHCPClient.idl - this is an interface which has been defined for querying the
   DHCP server.
 * nsPACMan.cpp - where previously when the PAC URL was simply set to a constant of
   http://wpad/wpad.dat, it now dispatches an asynchronous command to the proxy
   thread. The class ExecutePACThreadAction has been augmented to include an
   instruction to 'ConfigureWPAD' (Configure Web-proxy auto-detect), and a new class,
   'ConfigureWPADComplete' has been created to relay the result (the URL of the PAC
   file) back to the nsPACMan object.
 * nsProtocolProxyService.cpp
   Minor changes to reflect the fact that the PAC URL not being set does not always
   mean there is no PAC to be used; instead it could be in the process of being
   detected.
 * TestPACMan.cpp
   This is a new file, and tests only the DHCP auto-detect functionality.
   Some tests use multiple threads, as they test the non-blocking proxy detection.
 * DHCPUtils.cpp
   A class containing the main logic for querying DHCP.
 * WindowsNetworkFunctionsWrapper.cpp
   A very thin wrapper around the Windows API calls needed by DHCPUtils.
   This class was introduced so it could be mocked out in tests.
 * nsWindowsDHCPClient.cpp
 * An implementation of the interface defined in nsIDHCPClient.idl. Fairly thin:
   most logic is implemented in DHCPUtils.
 * TestDHCPUtils.cpp
   Tests for DHCPUtils and nsWindowsDHCPClient

MozReview-Commit-ID: 4xFQz3tOLEx

--HG--
extra : rebase_source : dfd5c588406a8b0d92f91cc8a0038ca722b7140a
2018-06-07 23:07:28 +01:00
Chris Pearce
5d98d9108c Bug 1471485 - Hide autoplay permission doorhanger if user plays video. r=johannh
If we're showing a permission UI prompt for "autoplay-media", the user can
still actually play media without interacting with the doorhanger; if they
click a "play" button in the document, they'll "gesture activate" the document
and unblock autoplay and be able to start playback.

It doesn't make sense to keep showing the permission doorhanger to approve
autoplay when the page is already playing, as playback has already started, and
if they clicked on "block" then the site would receive a promise reject on the
promise returned on the first call to HTMLMediaElement.play() for which we were
showing the permission prompt for, even though the media is actually playing.
This will likely confuse JS video players.

So we should hide the permission prompt when playback in the page starts.

MozReview-Commit-ID: 1XU47AfT6vf

--HG--
extra : rebase_source : 3d5c164527e26ba8f58f0baac3474d5b2d7fb587
2018-07-03 11:17:16 +12:00
Ciure Andrei
14976cd6b3 Merge inbound to mozilla-central. a=merge 2018-07-15 12:52:50 +03:00
Csoregi Natalia
b220f0c0d3 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-07-14 12:45:25 +03:00
Olli Pettay
5adedd4945 Bug 1439153 - try to fix ESlint failures, CLOSED TREE, r=bustage 2018-07-14 06:13:08 +03:00
Olli Pettay
de99e4460b Bug 1439153 - Make WebExtensions work with Shadow DOM/WebComponents, r=kmag
--HG--
extra : rebase_source : 83638cba42eea1523d32d06a2eb14df20cbab404
2018-07-14 05:26:15 +03:00
Drew Willcoxon
cce37bd375 Bug 1475398 - Update "Firefox 63 uses schema version 52" comment in Database.cpp. r=mak
MozReview-Commit-ID: DAkHO1Hubb3

--HG--
extra : rebase_source : 9c5972cf9d15548766da1b6215af855e20ad66a5
2018-07-12 16:39:33 -07:00
Noemi Erli
e9d21cd259 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-07-14 01:22:25 +03:00
Noemi Erli
9793ca2da4 Merge inbound to mozilla-central. a=merge 2018-07-14 00:52:51 +03:00
Brindusan Cristian
a68383b333 Backed out 12 changesets (bug 1471025) for build bustages on dom/ipc/ContentProcess.cpp. CLOSED TREE
Backed out changeset 398ccedc20dc (bug 1471025)
Backed out changeset 599895de063e (bug 1471025)
Backed out changeset dc7ec17179d1 (bug 1471025)
Backed out changeset 5051f15fc200 (bug 1471025)
Backed out changeset faef4df47b20 (bug 1471025)
Backed out changeset d344247b8706 (bug 1471025)
Backed out changeset 83d98ea5ebac (bug 1471025)
Backed out changeset 38f690f30e78 (bug 1471025)
Backed out changeset 4b7a8a35ed95 (bug 1471025)
Backed out changeset e3bbc87b71af (bug 1471025)
Backed out changeset 68bb03c63b3c (bug 1471025)
Backed out changeset 4a8fbb472c91 (bug 1471025)
2018-07-13 22:11:24 +03:00
Paolo Amadini
36a131aadc Bug 1472716 - Part 2 - Convert the listbox in "languages.xul" to "richlistbox". r=jaws,gandalf
Support for "listbox" in preferences is also removed, in preparation for the removal of the "listbox" element and binding.

MozReview-Commit-ID: Bi2VKKi5rdk

--HG--
extra : source : 762819bac1b9efe0e939be07394bd7d293638c40
2018-07-10 15:07:15 +01:00
Kris Maglione
0fb080d242 Bug 1471025: Part 8 - Add tests for shared memory preferences. r=njn
MozReview-Commit-ID: 8452JoTBHCU

--HG--
extra : rebase_source : dadc22ef0909102f93f6de3afb99f5b6e65db2f5
extra : absorb_source : 62a77303c36c3af308ee5529d81c637f81449370
2018-07-03 20:17:15 -07:00
Luca Greco
ede4ac5025 Bug 1474557 - Clear the dbPromise cached by ext-storage when IndexedDB raises an exception while opening the db. r=mixedpuppy
MozReview-Commit-ID: 9qsDYI0wgmI

--HG--
extra : rebase_source : f7ee4469841559d166f0b7c48b49a729ceabdec0
2018-07-02 21:37:58 +02:00
Luca Greco
f49ffe6940 Bug 1474557 - Prevent ExtensionStorageIDB and child/ext-storage from caching a stale or rejected selectBackend promise. r=mixedpuppy
MozReview-Commit-ID: Kgwtm7QXW9o

--HG--
extra : rebase_source : dc28d2f622876a359592d8e44a6cf449237acc30
2018-07-09 22:35:12 +02:00
Mike Conley
ff9485d612 Bug 1456843 - Compute FormLike elements lazily on <form>-less fields. r=MattN
MozReview-Commit-ID: 3blElMxkejf

--HG--
extra : rebase_source : 62a43ecb879bd033fb72436dc3a23d488cf32e52
2018-07-13 12:41:06 -04:00
ahillier
659bda3774 Bug 1475012 - fix ordering of getTopFrecentSites in ActivityStreamProvider r=ursula
MozReview-Commit-ID: Eymz3kAoHuX

--HG--
extra : rebase_source : af84f35c0674679b17a09eacca518cc62793a499
2018-07-11 12:26:39 -07:00
Mike de Boer
d3b8d2bdfe Bug 1463860 - Don't play a beep when the find string is not find when Whole Word matching is enabled; it simply beeps too much. r=Ehsan
MozReview-Commit-ID: S6dvbV5Q5d

--HG--
extra : rebase_source : 5852765bee02e4fae1370050db84b608dea3c0da
2018-07-13 13:25:02 +02:00
Lina Cambridge
699fdba348 Bug 1472963 - Add a totalSyncChanges counter and use it in the bookmarks mirror. r=mak
This patch:

* Exposes a global Sync change counter on `nsINavBookmarksService`.
  This is similar to SQLite's `total_changes()`, but just for changes
  to bookmarks that affect Sync, and accounts for changes from multiple
  threads and connections.
* Adds a SQL function to bump the counter, and extends the
  `moz_bookmarks` triggers to call it.
* Moves merging outside the transaction in the bookmarks mirror, and
  checks that the counters match before applying.

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

--HG--
extra : moz-landing-system : lando
2018-07-13 15:03:40 +00:00
Kris Maglione
6c6960d4c8 Bug 1471025: Part 3c - Also pass the shared preference map handle to Android content processes. r=jld
MozReview-Commit-ID: CTjDzVC9gcD

--HG--
extra : rebase_source : c06aa38ff4bc2bdfa09a4aae359e1f418727ce29
extra : absorb_source : c68cd5f0e8f52980d35432cf21e1fc5552542bf2
2018-07-13 11:06:58 -07:00
Kris Maglione
de31493580 Bug 1471025: Part 3b - Refactor Android shared FD API to require fewer modifications per change. r=jld
Adding or removing an FD from this API currently requires changes in about a
half dozen places. Ignoring the Java side of things. This patch changes the
API to pass a struct, rather than additional arguments for each FD, so that
adding and removing FDs only requires changing one declaration, and the two
call sites that add and consume the FDs.

MozReview-Commit-ID: CToSEVp1oqP

--HG--
extra : rebase_source : 28e8c6075bacf5f610058227a9731aeadb50f320
extra : absorb_source : f63602a163ed19fb65e26640319750fdd9b92ad1
2018-07-02 15:01:25 -07:00
Andrea Marchesini
eb58d7637b Bug 1475236 - Expiration time for the anti-tracking permission should be controllable via pref, r=ehsan 2018-07-13 19:19:26 +02:00
Andrea Marchesini
f1d9bed10f Bug 1473718 - Speculative connection should start using the correct OriginAttributes values, r=mconley 2018-07-13 19:17:58 +02:00
Andrea Marchesini
9fc78a12aa Bug 1475189 - Block storage access in tracking sub-resources when not in iframes - part 3 - image cache, r=ehsan
--HG--
rename : toolkit/components/antitracking/test/browser/script.sjs => toolkit/components/antitracking/test/browser/subResources.sjs
2018-07-13 12:02:19 +02:00
Andrea Marchesini
1892fdf469 Bug 1475189 - Block storage access in tracking sub-resources when not in iframes - part 2 - subresources, r=ehsan 2018-07-13 12:02:19 +02:00
Andrea Marchesini
2df3284f16 Bug 1475189 - Block storage access in tracking sub-resources when not in iframes - part 1 - tests, r=ehsan 2018-07-13 12:02:19 +02:00
Andrea Marchesini
1498612e1b Bug 1474812 - No needs to store granted storage access in nsILoadInfo and in the inner window, r=ehsan 2018-07-13 12:02:19 +02:00
Paolo Amadini
7555809ad6 Bug 1470870 - Load "menu.css" as a document stylesheet. r=bgrins
The specificity of some Windows rules is reduced to match other platforms.

MozReview-Commit-ID: 28oUf7b6vCW

--HG--
extra : source : 3c131dac495ed46d524f4de2f92cfe79049aff8f
extra : intermediate-source : 7c1de225e4ab5dff9443c763ad59f5aecd72a593
2018-07-13 10:20:21 +01:00
Margareta Eliza Balazs
448f792f96 Merge inbound to mozilla-central. a=merge 2018-07-13 11:52:00 +03:00