Commit graph

396 commits

Author SHA1 Message Date
Kris Maglione
80327d3561 Bug 1484496: Part 5a - Convert browser/ nsISimpleEnumerator users to use JS iteration. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3729

--HG--
extra : rebase_source : e187b8e9a6b6db7ebc762adda5e489b25c7a7e43
extra : histedit_source : 868cb99d09954a51d6be321fcb516475ef70eb33
2018-08-18 19:27:33 -07:00
Ryan VanderMeulen
3fbc856a30 Bug 1485014 - Update pdf.js to version 2.0.775. r=bdahl
--HG--
extra : amend_source : 1a0a50252b281f43ecc9aff45f1f693deaa92ea2
2018-08-21 10:10:16 -04:00
Ryan VanderMeulen
f9a01fcd85 Bug 1482901 - Update pdf.js to version 2.0.760. r=bdahl
--HG--
extra : amend_source : c3648bf72c8517538f24eaedc3c4bf2dc855c940
2018-08-13 10:54:39 -04:00
Ryan VanderMeulen
36b1f729cb Bug 1481280 - Update pdf.js to version 2.0.750. r=bdahl
--HG--
extra : amend_source : 42fb56f3a979a71c023af7eb842c2c6ad62eed4d
2018-08-06 14:11:10 -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
Csoregi Natalia
08c950712e Backed out 3 changesets (bug 1479569) for devtools/client/responsive.html failures. CLOSED TREE
Backed out changeset e123d0aa911c (bug 1479569)
Backed out changeset b828a58404e5 (bug 1479569)
Backed out changeset 97041ef8f311 (bug 1479569)
2018-08-03 10:39:12 +03:00
Boris Zbarsky
0197de77c0 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
Kris Maglione
577b96ad55 Bug 1479245: Don't eagerly load any PDF.js scripts in the content process. r=bdahl
MozReview-Commit-ID: GDSmAH9gpnX

--HG--
rename : browser/extensions/pdfjs/content/PdfJsRegistration.jsm => browser/extensions/pdfjs/pdfjs.js
extra : source : f0ccbdcaa8a1e82b43406540c76ebac4236581ee
extra : amend_source : 4efab8deca2fe945ba7cc3434efaf725ea5ee12a
2018-07-28 19:05:22 -07:00
Cosmin Sabou
681a500716 Backed out changeset f0ccbdcaa8a1 (bug 1479245) for causing a spike on timeouts on browser_pdfjs_views.js
--HG--
rename : browser/extensions/pdfjs/pdfjs.js => browser/extensions/pdfjs/content/PdfJsRegistration.jsm
2018-08-02 11:16:01 +03:00
Kris Maglione
0b15b2934b Bug 1479245: Don't eagerly load any PDF.js scripts in the content process. r=bdahl
MozReview-Commit-ID: GDSmAH9gpnX

--HG--
rename : browser/extensions/pdfjs/content/PdfJsRegistration.jsm => browser/extensions/pdfjs/pdfjs.js
extra : rebase_source : b0a5b8131657e198f32fb2f61367c2a713f4ffbe
2018-07-28 19:05:22 -07:00
dvarga
956d57e7f2 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-08-02 01:26:29 +03:00
Ryan VanderMeulen
c49c9c1831 Bug 1480202 - Update pdf.js to version 2.0.719. r=bdahl 2018-08-01 16:25:11 -04:00
Mark Banner
8d235f8e45 Bug 1478305 - Remove unnecessary imports and fix ESLint warnings about unused variables for browser/. r=jaws
MozReview-Commit-ID: 1vHR6ixePkN

--HG--
extra : rebase_source : 8f9a322d1ff075ab56b81f8710df5d841839865b
2018-07-30 10:27:36 +01:00
Boris Zbarsky
4abc5c5a25 Bug 1446940 part 2. Stop getting docshells from windows via getInterface in browser. r=gijs 2018-08-01 13:07:10 -04:00
Kris Maglione
02ba563399 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG

--HG--
extra : source : 0d69b4fb1ed43751cfcbc0b4f2fe3b6a49bc0494
extra : histedit_source : d0ce31513ffaae2fd7f01f6567a97b6d2d96b797%2Cfff837de7a00fa90809d2c3e755097180dfd56d8
2018-05-20 18:10:16 -07:00
Narcis Beleuzu
561ccb2ceb Backed out 2 changesets (bug 1463016, bug 1463291) for geckoview failures
Backed out changeset fcfb99baa0f0 (bug 1463291)
Backed out changeset 0d69b4fb1ed4 (bug 1463016)
2018-07-29 03:55:23 +03:00
Kris Maglione
636f1839e5 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG

--HG--
extra : rebase_source : 36565ef5e74360aad14062005e5bdab2939e888b
2018-05-20 18:10:16 -07:00
Ryan VanderMeulen
c88cff3a25 Bug 1478111 - Update pdf.js to version 2.0.694. r=bdahl 2018-07-24 15:35:11 -04:00
byron jones
f564d84c7f Bug 1476516 - add moz.yaml to vendored pdf.js r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D2218

--HG--
extra : moz-landing-system : lando
2018-07-23 19:31:07 +00:00
Ryan VanderMeulen
93541b3381 Bug 1475878 - Update pdf.js to version 2.0.688. r=bdahl 2018-07-15 15:36:34 -04:00
Ryan VanderMeulen
96d212ecf5 Bug 1474226 - Update pdf.js to version 2.0.673. r=bdahl 2018-07-08 21:11:56 -04:00
Ryan VanderMeulen
9e88581315 Bug 1473118 - Update pdf.js to version 2.0.661. r=bdahl 2018-07-03 15:15:46 -04:00
Ryan VanderMeulen
d143d55d8a Bug 1472312 - Update pdf.js to version 2.0.641. r=bdahl 2018-06-29 17:02:22 -04:00
Ryan VanderMeulen
7815b4e5f6 Bug 1470790 - Update pdf.js to version 2.0.625. r=bdahl 2018-06-24 20:42:59 -04: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
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
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
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
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
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
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
Kris Maglione
a259026c9d Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
Kris Maglione
a7b308c3a2 Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8
These issues were previously ignored due to the nature of our global import
rules. They need to be fixed before that rule can be updated.

MozReview-Commit-ID: DCChktTc5TW

--HG--
extra : rebase_source : cffb1c9762191c579d1397c8169e6e7635d229da
extra : histedit_source : dea59ddd2daaae52069c5faceae9149a4f08dd73
2018-04-24 20:18:09 -07:00
Ryan VanderMeulen
88aaa7b61f Bug 1453838 - Update pdf.js to version 2.0.491. r=bdahl, r=yury 2018-04-12 19:29:03 -04:00
Ryan VanderMeulen
39aad1befa Bug 1451562 - Update pdf.js to version 2.0.480. r=bdahl
--HG--
extra : rebase_source : a5e631e0475f6a7d544f3d6d02e2210b6a3ae494
extra : amend_source : fb964f584ad495bf9a230f019adbd08dd5507ad5
2018-04-04 17:57:32 -04:00
Ryan VanderMeulen
cb8923ace5 Bug 1450369 - Update pdf.js to version 2.0.466. r=bdahl
--HG--
extra : rebase_source : f6e5e722ed8d8f0da023fb37b646b8102a6095ba
extra : amend_source : 62063c4ac1c9f5cf5a80950adc6cfc8f8d49439f
2018-03-30 17:25:35 -04:00
Brendan Dahl
68af882f00 Bug 1444499 - Update pdf.js to version 2.0.447. r=yury
MozReview-Commit-ID: 1gbyxWQyGvK

--HG--
extra : rebase_source : ee52ae517979c650b33f2514a5fcb6b8c33eb159
2018-03-20 16:20:03 -07:00
Brendan Dahl
184bbb151f Bug 1444499 - Remove checks for global PDFJS. r=yury
MozReview-Commit-ID: AU7hQSP2UyN

--HG--
extra : rebase_source : 0d953253ed5bb2897aa97ff605d834d63a0e24de
2018-03-20 16:09:11 -07:00
Tiberius Oros
a4a2be52e8 Merge inbound to mozilla-central. a=merge 2018-03-16 11:53:43 +02:00
Kirk Steuber
e2fad6bc8f Bug 1429160 - Create enterprise policy to disable PDF.js. r=dthayer,felipe 2018-03-07 13:17:07 -08:00
Gijs Kruitbosch
f9427d8b9b Bug 1358815 - update pdfjs for async-created findbar, r=bdahl
MozReview-Commit-ID: Byr5B4yAzfx

--HG--
extra : rebase_source : b97bef0293eda12a0a71e02a6dec8cd6d941ad39
2018-03-13 11:52:56 +00:00
Coroiu Cristina
d7f19c3685 Backed out changeset 7833a7b4a73f (bug 1429160) for browser-chrome failures at enterprisepolicies/tests/browser/browser_policies_sorted_alphabetically.js 2018-03-15 23:35:58 +02:00
Kirk Steuber
c690d6f97d Bug 1429160 - Create enterprise policy to disable PDFjs r=dthayer,Felipe
MozReview-Commit-ID: 4Ir407Qjdoq

--HG--
extra : rebase_source : 3108b7b0a9b4121bbc39ee561542584894143b6f
2018-03-07 13:17:07 -08:00