Commit Graph

20354 Commits

Author SHA1 Message Date
Bob Silverberg
8f848ff9df Bug 1381992 - Add some reader mode support to the tabs API, r=mixedpuppy
This adds two properties to the Tab object:

- isArticle indicates whether the document in the tab is likely able to be
  rendered in reader mode.
- isInReaderMode indicates if the document in the tab is being rendered in
  reader mode.

It also adds a toggleReaderMode() which toggles a tab into and out of reader mode.

There is also a new case in which tabs.onUpdated will fire. When the isArticle
status of a tab changes, an onUpdated event will fire with data {isArticle: boolean}.

MozReview-Commit-ID: AaAQ0V5qm2Z

--HG--
extra : rebase_source : f9cbed6dff56781ecd86281cb46f23f0ec8aecf6
2017-09-08 17:00:27 -04:00
Wes Kocher
7bf1b49628 Merge inbound to central, a=merge
MozReview-Commit-ID: 7EzhCCVVn7n
2017-09-25 16:41:34 -07:00
Gabriele Svelto
554fd69bd2 Bug 1401339 - Look for libcurl under platform-specific paths; r=Dexter
MozReview-Commit-ID: 6wijqLsar56

--HG--
extra : rebase_source : b91e486f996c0d77cc87919468417c2b428eef2c
extra : amend_source : 4a1af35b3bf927737cd2b35c849da9a220297fcc
2017-09-22 15:06:22 +02:00
Marco Bonardo
2b38551c52 Bug 1399879 - The Places hash SQL function is expensive on large urls. r=adw
This patch limits the amount of chars we hash and avoids some string copies.

MozReview-Commit-ID: AAcLtTzrYlb

--HG--
extra : rebase_source : 760c0899da9cd5bc5c640be030de20865a45ca98
2017-09-18 10:31:20 +02:00
Nicholas Nethercote
3aa25724fe Bug 1402255 - Change nsIBaseWindow::title from wstring to AString. r=janv.
Because nsAString is nicer to work with than char16_t*. The patch relatedly
changes nsIEmbeddingSiteWindow::title and nsIWindowMediator::updateWindowTitle
as well.

--HG--
extra : rebase_source : 0bf332dec3e09af6c39c676f8795b368768a6046
2017-09-25 13:10:51 +10:00
Thomas Nguyen
1b29ddae7a Bug 1401066 - Add poison canary to check for errors. r=francois
MozReview-Commit-ID: GpTDMR5Ni3e
2017-09-25 10:57:20 +08:00
Chris Peterson
5698729243 Bug 870698 - Part 10: Replace Append(NS_LITERAL_STRING("")) with AppendLiteral(u""). r=erahm
The NS_LITERAL_STRING macro creates a temporary nsLiteralString to encapsulate the char16_t string literal and its length, but AssignLiteral() can determine the char16_t string literal's length at compile-time without nsLiteralString.

MozReview-Commit-ID: H9I6vNDMdIr

--HG--
extra : rebase_source : cf537a1f65af003c6c4f8919b925b0f305c1dd4d
extra : source : 13b89ce4e6a66c840f82a335c71f5a12938aba22
2017-09-07 18:32:54 -07:00
Chris Peterson
1ca3d5aa46 Bug 870698 - Part 8: Replace Equals(NS_LITERAL_CSTRING("")) with EqualsLiteral(""). r=erahm
The NS_LITERAL_CSTRING macro creates a temporary nsLiteralCString to encapsulate the string literal and its length, but AssignLiteral() can determine the string literal's length at compile-time without nsLiteralCString.

MozReview-Commit-ID: B5Y8KyExPQ8

--HG--
extra : rebase_source : e27b266c145daa5acd887e998c6d5b408101e1db
extra : source : 33f49977a33cbdb1c7127871b940eefccc018f65
2017-09-06 15:00:31 -07:00
Chris Peterson
a6a56ed916 Bug 870698 - Part 6: Replace Append(NS_LITERAL_CSTRING("")) with AppendLiteral(""). r=erahm
The NS_LITERAL_CSTRING macro creates a temporary nsLiteralCString to encapsulate the string literal and its length, but AssignLiteral() can determine the string literal's length at compile-time without nsLiteralCString.

MozReview-Commit-ID: F750v6NN81s

--HG--
extra : rebase_source : 714dd78df0f4c33e23e5b117615bd8fd561674c5
extra : source : 742bda9e6b1ddaf34d09894204ad18ce798b79b7
2017-09-07 18:25:25 -07:00
Chris Peterson
47e9fa9ec2 Bug 870698 - Part 5: Replace Assign(NS_LITERAL_CSTRING("")) with AssignLiteral(""). r=erahm
The NS_LITERAL_CSTRING macro creates a temporary nsLiteralCString to encapsulate the string literal and its length, but AssignLiteral() can determine the string literal's length at compile-time without nsLiteralCString.

MozReview-Commit-ID: KXJM13VRTB7

--HG--
extra : rebase_source : 3e50b1b3f23248d668d15310554559c39ff792f7
extra : source : 74f5e05877d50a79ec1e5330c227d2ce576a2d90
2017-09-06 01:35:56 -07:00
Chris Peterson
a0c8081df4 Bug 870698 - Part 4: Replace Equals("") with EqualsLiteral(""). r=erahm
MozReview-Commit-ID: G1GhyvD29WK

--HG--
extra : rebase_source : 115842c37a40041bdca7b4e1ff0a5680b02ced15
extra : source : 90bfff9c01d80086cdc17637f310e898fea295ea
2017-09-06 01:13:45 -07:00
Chris Peterson
45aa2a8e8e Bug 870698 - Part 2: Replace Append("") with AppendLiteral(""). r=erahm
MozReview-Commit-ID: CrkIP4iHP1U

--HG--
extra : rebase_source : 5dc4e91a3f1860773c199f1abf3f66479218834a
extra : intermediate-source : ba51cc79847f2b43ba616f4a5d2bbc6958ca9f6d
extra : source : 1fda2fa990cc918c748ffa14fcc5dbe13fe3bdc3
2017-09-03 22:14:11 -07:00
Nils Ohlmeier [:drno]
093afd78ca Bug 1402221: add Telemetry probe to find out rtcp-mux usage. r=bwc,francois
MozReview-Commit-ID: 1XmPbpSmAb1

--HG--
extra : rebase_source : b3ad189b8eec13ce1b75873c36008d371b10797c
2017-09-22 00:09:52 -07:00
Matthew Noorenberghe
e522b6fb84 Bug 1402210 - Add payment UI documentation and do minor code cleanup. r=marcosc
MozReview-Commit-ID: Cpn5mKcEZGo

--HG--
extra : rebase_source : d65efac187f631e0097c300bf0e8fa6f9a78c540
2017-09-21 21:35:24 -07:00
Andrea Marchesini
b49b5f31c9 Bug 1397151 - Remove the support for moz-chunk-text type in XHR, r=smaug 2017-09-22 07:18:49 +02:00
Andrea Marchesini
2071ba4680 Bug 1397145 - Remove the support for moz-blob type in XHR, r=smaug 2017-09-22 07:18:14 +02:00
Nicholas Nethercote
e3c9cbb969 Bug 1401813 - Rename Null[C]String() as Void[C]String(). r=erahm.
XPCOM's string API doesn't have the notion of a "null string". But it does have
the notion of a "void string" (or "voided string"), and that's what these
functions are returning. So the names should reflect that.

--HG--
extra : rebase_source : 4e3f982e0873877174a08a25413595ff66f7d20e
2017-09-22 14:35:46 +10:00
Phil Ringnalda
9728bc3636 Merge m-c to m-i
MozReview-Commit-ID: LQmIsTRxble
2017-09-21 20:49:43 -07:00
Andrea Marchesini
b7cd7c515d Bug 1047098 - "Clear Recent History" must clean up all the ServiceWorkers, r=bkelly
This includes minor shutdown fixes by :asuth as discussed on
https://bugzilla.mozilla.org/show_bug.cgi?id=1047098#c56 and c57.

--HG--
extra : rebase_source : d1a230cc005b2a6a71f16ef84a55851ee2f4f66e
extra : source : e89d2565799b4b02d5ee2c56da8d44dc0067f26a
2017-09-21 21:32:00 +02:00
Wes Kocher
733c3896f8 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 9mZaPGxxjXd
2017-09-21 17:04:03 -07:00
Wes Kocher
a7fe048680 Merge inbound to central, a=merge
MozReview-Commit-ID: E7k4xViLm4V
2017-09-21 17:03:29 -07:00
Kershaw Chang
3ccf2143f7 Bug 1247843 - Part 2: Set request context ID for the channel used to load favicon. r=mak
This patch covers two cases when loading a favicon:
1. Get the request context ID of the document load group, when <link rel="icon"> is found in the page.
2. Use the top level document's request context ID when using the default favicon.
2017-09-20 20:09:00 -04:00
Sebastian Hengst
7eec7a0a11 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: mr7OYuaLKE
2017-09-21 15:23:43 +02:00
Dragana Damjanovic
1210a1f081 Bug 1401509 - Extend the TLS early-data telemetry. r=mcmanus 2017-09-21 10:04:24 +02:00
Wes Kocher
5d514ba8e9 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 2XyrMOdIWok
2017-09-20 17:39:08 -07:00
Wes Kocher
a6b8d9e91b Merge inbound to central, a=merge
MozReview-Commit-ID: JpqY5uEi1nf
2017-09-20 17:18:21 -07:00
Michael Layzell
eb8ee79616 Bug 1401685 - Don't skip sending BHR ping if it is empty, r=froydnj 2017-09-20 17:07:02 -04:00
Rob Wu
0b80fc3ee8 Bug 1401511 - Don't mutate return value of FindProxyForURL r=mixedpuppy
MozReview-Commit-ID: 38A1Afzvfqd

--HG--
extra : rebase_source : 0f2da231e3c54cffeed560098961d2e6756a2fb9
2017-09-20 14:47:15 +02:00
Jonathan Guillotte-Blouin
bb5119d167 Bug 1382388 - Make the Payments Dialog unprivileged & add "abort" support. r=MattN
MozReview-Commit-ID: IXexL4ju2Fj

--HG--
rename : toolkit/components/payments/content/paymentRequest.css => toolkit/components/payments/res/paymentRequest.css
rename : toolkit/components/payments/content/paymentRequest.js => toolkit/components/payments/res/paymentRequest.js
rename : toolkit/components/payments/content/paymentRequest.xhtml => toolkit/components/payments/res/paymentRequest.xhtml
extra : rebase_source : 6ebcb9811099cfdedb670e990451e8b844dd7d24
2017-09-21 13:49:41 -07:00
Wes Kocher
640a5d3c46 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IsEMW5gXG3W
2017-09-21 17:04:36 -07:00
Nicholas Nethercote
1aef116268 Bug 1401100 - Remove nsIMemoryReporterCallback. r=erahm.
nsIHandleReportCallback, typedef of nsIMemoryReporterCallback, has been the
preferred name for a long time and is used in most places. This patch removes
nsIMemoryReporterCallback.

--HG--
extra : rebase_source : c675076b4f98d93d96235dad890e31e0b0e6c277
2017-09-22 08:09:29 +10:00
Wes Kocher
6bc8986bc1 Backed out changeset e89d2565799b (bug 1047098) for xpcshell bustage a=backout
MozReview-Commit-ID: FRFALkRxDxl
2017-09-21 13:48:10 -07:00
Andrea Marchesini
ebcdb2c6b8 Bug 1047098 - "Clear Recent History" must clean up all the ServiceWorkers, r=bkelly 2017-09-21 21:32:00 +02:00
Geoff Brown
81c675f7bc Bug 1397615 - Skip some long-running mochitests on Android Debug only; r=snorp 2017-09-21 12:39:35 -06:00
Kris Maglione
dc5b40508d Bug 1379148: Part 4 - Add tests for document.write() with document_start content script present. r=mixedpuppy
MozReview-Commit-ID: 5yxgpur1tvf

--HG--
extra : rebase_source : c85d0d6c0cb71316957621f25cbea303850208a5
2017-09-20 17:01:33 -07:00
Kris Maglione
152d99b50d Bug 1379148: Part 3 - Inject scripts synchronously if they're already available. r=mixedpuppy
MozReview-Commit-ID: J6vheuxsqJR

--HG--
extra : rebase_source : 94f44806e5eb4e0eebc0dd465ab1c0c4ef2c14e0
2017-09-20 17:00:44 -07:00
Kris Maglione
73b35e74b6 Bug 1379148: Part 2 - Don't block script-created parsers when executing content scripts. r=mixedpuppy
MozReview-Commit-ID: GsqsaOVob4B

--HG--
extra : rebase_source : f82bcf302a486d2e796cfa895af46c8fb2781dc7
2017-09-20 16:13:03 -07:00
Tom Tromey
fc652f4718 Bug 1388789 - make va_list nsTextFormatter private; r=froydnj
The runtime type-checking rewrite of nsTextFormatter will not support
va_list uses.  So, make these functions private and fix the sole user.

MozReview-Commit-ID: IBWALVzIcHC

--HG--
extra : rebase_source : a822697c81c1a054359fc2ecd894d51f95686548
2017-08-31 15:21:37 -06:00
Luca Greco
2e366395e2 Bug 1401293 - Remove unneeded special handling for the devtools panel from extension-process-script.js. r=kmag
MozReview-Commit-ID: 3pjuoqjULAB

--HG--
extra : rebase_source : 173db3de84203c1834eee3527ab1db1093818d8f
2017-09-19 20:28:56 +02:00
Chris H-C
4ee635be2a Bug 1391531 - Make TelemetrySession idle callbacks cancellable. r=Dexter
TelemetrySession schedules some activities on idle, to avoid hogging resources.
Sometimes we're forced to handle these situations on a more rigid timeline than
"wait for idle". In those cases we should cancel the idle timeout so it doesn't
double-perform the operations.

Unfortunately idleDispatchToMainThread doesn't have a cancel mechanism, so we
need to bolt one over it.

MozReview-Commit-ID: JpUfb9rK2Od

--HG--
extra : rebase_source : 61489afa749e8b7fe038495ab5bc0d7d70bd6a0e
2017-09-13 13:24:31 -04:00
Alessio Placitelli
0ba0ff04be Bug 1400870 - Keep the attribution code on environment changes. r=chutten
This patch makes sure |_updateSettings| carries over the attribution code,
if present. Without this patch the whole "environment.settings" section
is replaced and the attribution code disppears after the first environment
change/subsession split.

MozReview-Commit-ID: 8bxjVOl2mUp

--HG--
extra : rebase_source : c611d9148fc734ac5cb751fee8b86bad4550f11b
2017-09-21 09:34:58 +02:00
Tooru Fujisawa
008437c43d Bug 1396398 - Fix comment for MAGIC_NUMBER. r=Yoric 2017-09-20 18:43:01 +09:00
Wes Kocher
3baa8a7e6e Merge inbound to central, a=merge
MozReview-Commit-ID: 5B5W6AHKcCb
2017-09-19 14:49:11 -07:00
Sebastian Hengst
18a3ca206d merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-19 11:15:12 +02:00
Ehsan Akhgari
fecb44a276 Bug 1401028 - Remove the content-contextmenu observer notification; r=kmag
This was used by the add-on SDK.
2017-09-19 00:35:08 -04:00
Wes Kocher
519bb0922b Merge inbound to central, a=merge
MozReview-Commit-ID: EK8iFR1hSRp
2017-09-18 16:21:01 -07:00
Adam Gashlin
a120916e3e Bug 1393601 - Add telemetry for MOZ_UPDATER. r=Dexter, r=rweiss 2017-09-18 09:50:10 -07:00
Sebastian Hengst
ae2ccaa725 Backed out changeset 1c9f780c4e9c (bug 1397229) 2017-09-18 19:41:53 +02:00
Shawn Huang
a99c46071a Bug 1360567 - Add telemetry probes for Indexeddb storage types, r=janv, datareview=francois 2017-09-18 17:00:37 +08:00
Ryan VanderMeulen
4c83e7ec07 Merge inbound to m-c. a=merge 2017-09-16 23:13:36 -04:00