Commit graph

2411 commits

Author SHA1 Message Date
Ryan VanderMeulen
7815b4e5f6 Bug 1470790 - Update pdf.js to version 2.0.625. r=bdahl 2018-06-24 20:42:59 -04:00
Ed Lee
3652708f31 Bug 1469938 - Add onboarding targeting, welcoming coloring and bug fixes to Activity Stream. r=ursula
MozReview-Commit-ID: LsWKLbghgBE

--HG--
extra : rebase_source : 50dd9b40ff5affc26b93bc0fb84f45f8a924174c
2018-06-21 12:51:33 -07:00
Barry Chen
f4048fce52 Bug 1465581 - Export Screenshots 33.0.0 to Firefox (code excluding translations and Raven update); r=ianbicking,_6a68
MozReview-Commit-ID: FrvoD9G74mJ

--HG--
extra : rebase_source : 4f40cae47c81a53fc94ae451469a4a1b3ed37b03
2018-06-18 11:07:23 -05:00
Barry Chen
f163b42bb3 Bug 1465581 - Export Screenshots 33.0.0 to Firefox (upgrade Raven to 3.25.2); r=ianbicking,_6a68
MozReview-Commit-ID: 67A865KrF3z

--HG--
extra : rebase_source : 62141cbb9f23792aaec1215a247e3fe13d4157ae
2018-06-18 11:01:44 -05:00
Barry Chen
bd26d256d8 Bug 1465581 - Export Screenshots 33.0.0 to Firefox (translations only); r=flod,ianbicking
MozReview-Commit-ID: 2CXjtCJ6xvm

--HG--
extra : rebase_source : e17a3f08e60e1cb20ff0a4afdb77ba066362ad9e
2018-06-18 11:00:17 -05:00
Ryan VanderMeulen
acaad18509 Bug 1469362 - Update pdf.js to version 2.0.602. r=bdahl
--HG--
extra : amend_source : 2022810a867b019e0506497c36c781c31dcdafe8
2018-06-18 15:06:21 -04:00
Mark Banner
b30ac6aacd Bug 1456762 - Remove now unnecessary import-globals-from statements in html files. r=mossop
Depends on D1643

MozReview-Commit-ID: 84M50HDg0wl

Differential Revision: https://phabricator.services.mozilla.com/D1644
2018-06-16 08:21:33 +00:00
Ryan VanderMeulen
74030f5083 Bug 1468991 - Update pdf.js to version 2.0.581. r=bdahl
--HG--
extra : rebase_source : 40b8d336d3902abbb7d83888a8d1379c541a073a
2018-06-15 12:24:14 -04:00
Ed Lee
293a8386dd Bug 1467858 - Add site thumbnail, router html and bug fixes to Activity Stream. r=k88hudson
MozReview-Commit-ID: FCL0cGMubbY

--HG--
rename : browser/extensions/activity-stream/test/unit/lib/init-store.test.js => browser/extensions/activity-stream/test/unit/content-src/lib/init-store.test.js
extra : rebase_source : 296a8e0421037f973c672b0ffc8bb7a39f746e80
2018-06-08 11:51:53 -07:00
Matthew Noorenberghe
8378baa979 Bug 1466720 - Don't reload l10n.js in the PaymentRequest scope on a refresh. r=sfoster
There was an error trying to redefine variables from l10n.js via loadSubScript. We really only need
it loaded once like a frame script but I had to fix the l10n.js code to handle this properly.

MozReview-Commit-ID: EbNrEaRQJbs

--HG--
extra : rebase_source : 6e544dd61798ebe3865ca108e59392a1319d7eeb
2018-06-11 00:03:47 -07:00
Ryan VanderMeulen
fad2f6fec0 Bug 1468331 - Update pdf.js to version 2.0.575. r=bdahl
--HG--
extra : rebase_source : d191d021380acdf5541b3bcfebc18ef9866716be
2018-06-12 09:43:35 -04:00
Joel Maher
50b91c0a14 Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Ryan VanderMeulen
f6891649f8 Bug 1467859 - Update pdf.js to version 2.0.550. r=bdahl
--HG--
extra : rebase_source : 144ad28f6614c5cd09b0701ae41a0ed11eedfb3d
2018-06-08 13:58:45 -04:00
Kris Maglione
7b7264f453 Bug 1464548: Part 3 - Update callers to use defineLazyGlobalGetters. r=mccr8
MozReview-Commit-ID: 9APGewiDDYB

--HG--
extra : rebase_source : 2931dd0eec0e4206414b698a9700fc20d922eb3a
2018-05-25 17:02:29 -07:00
Ed Lee
d7c438fe35 Bug 1440421 part 2. Mirror https://github.com/mozilla/activity-stream repository layout in browser/extensions/activity-stream. r=k88hudson
MozReview-Commit-ID: HyAUvAgOVEV

--HG--
extra : rebase_source : 70cc8d53a3e3051be6a02e9773ae57a5f05f08d1
2018-06-06 10:44:53 -07:00
Ed Lee
1d122eac32 Bug 1466971 - Add Blob images, Jexl targets and bug fixes to Activity Stream. r=ursula
MozReview-Commit-ID: NRTSgzuIzW

--HG--
extra : rebase_source : 4103ffba7c6f6b0c2004245855c1fc67a0dd1843
2018-06-05 14:04:52 -07:00
Jared Wein
23f6d33e60 Bug 1461477 - Create a CreditCard.jsm to consolidate various credit card handling and validation. r=MattN
MozReview-Commit-ID: 3tJdzU3hBvY

--HG--
extra : rebase_source : bf79b4767ed40e792d1523bd262d527061a21a4c
2018-05-15 12:41:35 -04:00
arthur.iakab
fd0ee7c9b8 Merge inbound to mozilla-central a=merge 2018-06-06 00:58:30 +03:00
Tomislav Jovanovic
67a9565d1a Bug 1466349 part 2 - Pass addonData to embedded Screenshots WE, add permissions r=aswan,ianbicking
MozReview-Commit-ID: GLwjp32sj2i

--HG--
extra : rebase_source : 9dbd9cb2800475835110913cf12cb4a3cbc62a37
2018-06-03 00:25:56 +02:00
Jonathan Kingston
7880d71c28 Bug 1465160 - Pass null principal to view image. r=ckerschb, r=Gijs 2018-05-30 00:42:50 +01:00
Ryan VanderMeulen
9e8871e42e Bug 1466519 - Update pdf.js to version 2.0.536. r=bdahl
--HG--
extra : rebase_source : 0762d9b984fcb6f7da4a94ea5135b74ae53ecf04
extra : amend_source : 5874d964ce4ce556ba1c0a909fa6bade451f0b4b
2018-06-04 09:04:46 -04:00
Ed Lee
45c3139928 Bug 1447879 - Cannot customize about:preferences#home content when sync or preference searching is disabled. r=k88hudson
Have the home preferences page notify when it loads instead of relying on findInPage to trigger sync pane to init.

MozReview-Commit-ID: EJlJDfYBHFO

--HG--
extra : rebase_source : ae5104ec18aefca9241be1b61072b786fa9e6815
2018-05-30 17:32:44 -07:00
Mike Conley
777a5d84f8 Bug 1464405 - Register FormAutofill resource URIs before checking if the feature should be enabled. r=MattN
MozReview-Commit-ID: JU93hA0NBgL

--HG--
extra : rebase_source : dca1bef47e7e8dfcf5d059be667020e7bac83033
2018-05-28 09:50:21 -07:00
Andreea Pavel
bce82ccf82 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-05-31 13:05:59 +03:00
Andreea Pavel
5798120b15 Backed out 4 changesets (bug 1351690) for failing browser chrome at e.g. browser/extensions/pdfjs/test/browser_pdfjs_zoom.js
Backed out changeset 8def346f7119 (bug 1351690)
Backed out changeset 64082649b185 (bug 1351690)
Backed out changeset 64d513f3c02b (bug 1351690)
Backed out changeset 4219d3de5e8b (bug 1351690)
2018-05-31 13:03:06 +03:00
Mark Banner
7b90b63d69 Bug 1465385 - Enable ESLint rule require-expected-throws-or-rejects for browser/. r=MattN
MozReview-Commit-ID: GoVFNM7CFDu

--HG--
extra : rebase_source : f1e9bfdaa1396b2ce27ee499fc547f239ca132a9
2018-05-30 11:50:45 +01:00
Andrew McCreight
d637399f88 Bug 1351690, part 4 - Only load the stream converter when we try to view a pdf. r=bdahl
This inlines and simplifies the call to XPCOMUtils._getFactory,
because otherwise passing PdfStreamConverter appears to resolve it
immediately, loading the JSM. (The stream converter prototype does not
have a property _xpcom_factory, so there's no need for the check.)

Once that is done, we can just lazily load the stream converter JSM to
keep it from being loaded on startup.

This patch also checks that the stream converter is not loaded at
startup in the main process or the content process, and that PdfJs.jsm
is not loaded at startup in the content process. It needs to be loaded
in the main process to watch for some prefs.

MozReview-Commit-ID: EA0pSgs4AWH

--HG--
extra : rebase_source : fd79cf660e55a3b4e033b3f112228f36942169ea
2018-05-22 16:13:47 -07:00
Andrew McCreight
b13bcee28c Bug 1351690, part 3 - Move stream converter XPCOM registration constants into the registration file. r=bdahl
As with the last patch, the factory is only used for a single class,
so move the constants closer to where they are used. This will allow
us to register the stream converter without loading the stream
converter JSM.

MozReview-Commit-ID: DRKVtYQOs2J

--HG--
extra : rebase_source : d871033c17a0c42a41b62ad753f4d6221f2118a8
2018-05-22 15:37:58 -07:00
Andrew McCreight
4c81305931 Bug 1351690, part 2 - Specialize Factory into StreamConverterFactory. r=bdahl
Factory is only ever passed PdfStreamConverter, so specialize the
registration method and rename the class.  Also, classID2 is always
non-null for PdfStreamConverter, so drop the check.

MozReview-Commit-ID: Ts295QTmrm

--HG--
extra : rebase_source : 9c89c3959981df76f7f6c6e4d0a2cf89d7bfb777
2018-05-22 15:28:45 -07:00
Andrew McCreight
47ae0fa03b Bug 1351690, part 1 - Split out pdf.js stream registration into another jsm. r=bdahl
The goal of these patches is to load neither PdfJs.jsm nor
PdfStreamConverter.jsm in a content process unless the user is viewing
a PDF, to save memory.

This first patch creates a small stub JSM to do the stream
registration, and calls it directly in the content process, avoiding
one way we load PdfJs.jsm. The existing registration methods are kept
for the main process.

MozReview-Commit-ID: 5GH8tjHXfLb

--HG--
extra : rebase_source : f4819b4ae9a406c95aa7fd6a757b0331c9963946
2018-05-18 16:57:59 -07:00
Ed Lee
dde9a40b77 Bug 1465172 - Add section rows, onboarding messages and bug fixes to Activity Stream. r=ursula
MozReview-Commit-ID: LxtwrSfIMTJ

--HG--
extra : rebase_source : 1f46ddc09268a1642072b91f76acd1b95210fbe4
2018-05-29 12:14:49 -07:00
Barry Chen
fab4bc4a9e Bug 1465544 - Add 'mozillaAddons' permission to Screenshots; r=ianbicking,_6a68
MozReview-Commit-ID: 7CoJJt34wqZ

--HG--
extra : rebase_source : 4dd027b9bc62fa33072d8d910d033865e9643f08
2018-05-30 12:28:23 -05:00
Boris Zbarsky
87340cbda5 Bug 1455676 part 16. Mostly stop using nsIDOMNode in browser/. r=mossop 2018-05-29 22:58:50 -04:00
Ryan VanderMeulen
cfdf0198f9 Bug 1464550 - Update pdf.js to version 2.0.517. r=bdahl
--HG--
extra : rebase_source : f2432702271b3624ad522ce8efe06072e931c236
2018-05-29 12:23:11 -04:00
Ed Lee
e8d4461a55 Bug 1463943 - Add compact highlights, compress images and bug fixes to Activity Stream. r=k88hudson
MozReview-Commit-ID: LKbXq4nHBVS

--HG--
extra : rebase_source : 127374ca6077f547ad6ced91d580399c2e6a2670
2018-05-23 17:43:54 -07:00
Mark Hammond
4270e4fe26 Bug 1463956 - allow Sync to remove all address and credit-card records. r=kitcambridge,MattN
MozReview-Commit-ID: KSeJJfAGmRh

--HG--
extra : rebase_source : c2cc973c94f352d20ca7d37952d91cb6c07aee2e
2018-05-24 12:36:37 +10:00
Andrew McCreight
04611281f8 Bug 1351690, part 4 - Only load the stream converter when we try to view a pdf. r=bdahl
This inlines and simplifies the call to XPCOMUtils._getFactory,
because otherwise passing PdfStreamConverter appears to resolve it
immediately, loading the JSM. (The stream converter prototype does not
have a property _xpcom_factory, so there's no need for the check.)

Once that is done, we can just lazily load the stream converter JSM to
keep it from being loaded on startup.

This patch also checks that the stream converter is not loaded at
startup in the main process or the content process, and that PdfJs.jsm
is not loaded at startup in the content process. It needs to be loaded
in the main process to watch for some prefs.

MozReview-Commit-ID: EA0pSgs4AWH

--HG--
extra : rebase_source : ebc99d6dc5c00cd45192ec0580f887d8970d9dd0
2018-05-22 16:13:47 -07:00
Andrew McCreight
eba0033c3c Bug 1351690, part 3 - Move stream converter XPCOM registration constants into the registration file. r=bdahl
As with the last patch, the factory is only used for a single class,
so move the constants closer to where they are used. This will allow
us to register the stream converter without loading the stream
converter JSM.

MozReview-Commit-ID: DRKVtYQOs2J

--HG--
extra : rebase_source : 09b84838ee31e18db1c70d75d091d3c9f6d95297
2018-05-22 15:37:58 -07:00
Andrew McCreight
8e118c63ef Bug 1351690, part 2 - Specialize Factory into StreamConverterFactory. r=bdahl
Factory is only ever passed PdfStreamConverter, so specialize the
registration method and rename the class.  Also, classID2 is always
non-null for PdfStreamConverter, so drop the check.

MozReview-Commit-ID: Ts295QTmrm

--HG--
extra : rebase_source : 0a944fec22df5fb243fbfa65aa4eba91a63e2793
2018-05-22 15:28:45 -07:00
Andrew McCreight
468d88c5e9 Bug 1351690, part 1b - Don't unload the .jsm on unregister. r=bdahl
This patch fixes an intermittent failure in the pdf.js browser chrome
Mochitests, where it runs code inside PdfStreamConverter.jsm and gets
the error "TypeError: getBoolPref is not a function". getBoolPref is a
top-level function inside the JSM.

I couldn't reproduce this, but I suspect that defineModuleGetter would
run, and give us a reference to the PdfStreamConverter converter
object in the JSM. Eventually, we would unload this JSM, and somehow
clear out the top level scope. However, the registration JSM still had
its reference to the Converter object. Eventually we would try to
convert again, using the old JSM, but the scope was cleared out, so it
couldn't find the top level function in the converter JSM.

While I could probably work around this somehow by clearing the global
reference to the old JSM and setting up a new thunk, I think it is
better to simply not do the unload. Unloading a JSM is a weird
operation that we don't use much, and I think the only drawback for
not doing so is that a user that disables PDF.js will continue using a
little more memory during that session.

MozReview-Commit-ID: Lx3QZza5qCM

--HG--
extra : rebase_source : cbcf5bc285fa91b5631d388f7ac45fbabaccd34a
2018-06-01 11:16:38 -07:00
Andrew McCreight
ee4f1dff1a Bug 1351690, part 1 - Split out pdf.js stream registration into another jsm. r=bdahl
The goal of these patches is to load neither PdfJs.jsm nor
PdfStreamConverter.jsm in a content process unless the user is viewing
a PDF, to save memory.

This first patch creates a small stub JSM to do the stream
registration, and calls it directly in the content process, avoiding
one way we load PdfJs.jsm. The existing registration methods are kept
for the main process.

MozReview-Commit-ID: 5GH8tjHXfLb

--HG--
extra : rebase_source : f89b184bf96f2a55c1ee688538f2d5965ffdc660
2018-05-18 16:57:59 -07:00
Dorel Luca
dc6d856805 Merge mozilla-inbound to mozilla-central. a=merge 2018-05-23 12:51:22 +03:00
Jared Wein
d9f3ec17f2 Bug 1429180 - Option to use a new billing address when adding a new payment method. r=MattN
MozReview-Commit-ID: 5LrpUw1LdT3

--HG--
extra : rebase_source : a2266d92902800af60978011ccd34bdc7a06b7f5
2018-05-10 15:12:01 -04:00
Matthew Noorenberghe
5490760c38 Bug 1463292 - Use form autofill's l10n.js in the PaymentRequest dialog. r=sfoster
MozReview-Commit-ID: GUX3Gia293X

--HG--
extra : rebase_source : 73887f40c0a6b45896ece2aab5918cb8089b9df3
2018-05-22 10:37:54 -07:00
Csoregi Natalia
acd92af57e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-23 01:02:30 +03:00
Kris Maglione
6b12d08f7d Bug 1462937: Update callers to use nsIFile::GetDirectoryEntries as a nsIDirectoryEnumerator. r=froydnj
MozReview-Commit-ID: Iv4T1MVAF5

--HG--
extra : rebase_source : 1c518883d082884db7f9323a5acc20361228c26b
extra : histedit_source : 70a73c23d1199d3bfbb5379c78930401166c094b
2018-05-19 20:17:45 -07:00
Ryan VanderMeulen
73c7e4680f Bug 1459248 - Update pdf.js to version 2.0.506. r=bdahl
--HG--
extra : rebase_source : 5e183d6dc5fdc9fc84d83a4e54b7da79bda7e2eb
2018-05-20 15:50:46 -04:00
anthony
864820068f Bug 1451840 - Add button to Pocket doorhanger to request mobile app r=Gijs
By showing users an upsell, positioned as a feature, as part of the save confirmation and make it easy for users to get the mobile app, more users will understand the value of the Pocket mobile and start using the mobile app.

The initial experiment will target existing logged in English users only.

We've added flags to the server response on the save request that:
- Set whether the user has the mobile app
- Which variant of the experiment the user should be enrolled in

If the user has an account, but they've never installed the Android or iOS app, we will display a new button inline in the current panel that will email a link to the mobile application to the user.

MozReview-Commit-ID: 2xtPv5GPVbL
***
Bug 1451840 - Add button to Pocket doorhanger to request mobile app
- Specified default color on buttons
- Removed unnecessary css styles
- Resized icon display size
- Made RTL friendly
- Simplified SVGs
- Updated buttons to be html buttons for screen readers

MozReview-Commit-ID: HdTi1CZbXdc

--HG--
extra : rebase_source : ac259ac308d7a08dcbddb43b9420f7f997f57e23
2018-05-17 14:12:02 -07:00
Noemi Erli
29e0a7e555 Backed out changeset f5cbef593cc1 (bug 1451840) for failures in browser/base/content/test/static/browser_parsable_css.js on a CLOSED TREE 2018-05-21 20:43:31 +03:00
anthony
876eddddaa Bug 1451840 - Add button to Pocket doorhanger to request mobile app r=Gijs
By showing users an upsell, positioned as a feature, as part of the save confirmation and make it easy for users to get the mobile app, more users will understand the value of the Pocket mobile and start using the mobile app.

The initial experiment will target existing logged in English users only.

We've added flags to the server response on the save request that:
- Set whether the user has the mobile app
- Which variant of the experiment the user should be enrolled in

If the user has an account, but they've never installed the Android or iOS app, we will display a new button inline in the current panel that will email a link to the mobile application to the user.

MozReview-Commit-ID: 2xtPv5GPVbL
***
Bug 1451840 - Add button to Pocket doorhanger to request mobile app
- Specified default color on buttons
- Removed unnecessary css styles
- Resized icon display size
- Made RTL friendly
- Simplified SVGs
- Updated buttons to be html buttons for screen readers

MozReview-Commit-ID: HdTi1CZbXdc

--HG--
extra : rebase_source : e26cac9dc9cd8cc6cfc5c86a768eec9505594812
2018-05-17 14:12:02 -07:00