Skip to content

Commit

Permalink
Bug 740795 part A - file moves for pdf.js not being shipped as an ext…
Browse files Browse the repository at this point in the history
…ension, r=bsmedberg
  • Loading branch information
Mossop committed May 18, 2012
1 parent eaa2331 commit 97b4cb0
Show file tree
Hide file tree
Showing 34 changed files with 8 additions and 48 deletions.
1 change: 0 additions & 1 deletion browser/app/profile/extensions/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ include $(DEPTH)/config/autoconf.mk

DIRS = \
{972ce4c6-7e08-4474-a285-3208198ce6fd} \
uriloader@pdf.js \
$(NULL)

include $(topsrcdir)/config/rules.mk
Expand Down
30 changes: 0 additions & 30 deletions browser/app/profile/extensions/uriloader@pdf.js/Makefile.in

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions browser/extensions/pdfjs/chrome.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resource pdf.js content/
component {6457a96b-2d68-439a-bcfa-44465fbcdbb1} components/PdfStreamConverter.js
contract @mozilla.org/streamconv;1?from=application/pdf&to=*/* {6457a96b-2d68-439a-bcfa-44465fbcdbb1}
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.

DEPTH = ../../../../../..
DEPTH = ../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
relativesrcdir = browser/app/profile/extensions/uriloader@pdf.js/test
relativesrcdir = browser/features/pdfjs/test

include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/rules.mk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,12 @@
* http://creativecommons.org/publicdomain/zero/1.0/
*/

const RELATIVE_DIR = "browser/app/profile/extensions/uriloader@pdf.js/test/";
const RELATIVE_DIR = "browser/features/pdfjs/test/";
const TESTROOT = "http://example.com/browser/" + RELATIVE_DIR;

function test() {
waitForExplicitFinish();

AddonManager.getAddonByID("uriloader@pdf.js", function(aAddon) {
is(aAddon.userDisabled, true, 'Pdf.js addon must be disabled by default');
aAddon.userDisabled = false;

registerCleanupFunction(function() {
aAddon.userDisabled = true;
});

continueTest();
});
}

function continueTest() {
var tab = gBrowser.addTab(TESTROOT + "file_pdfjs_test.pdf");
var newTabBrowser = gBrowser.getBrowserForTab(tab);
newTabBrowser.addEventListener("load", function onLoad() {
Expand Down
3 changes: 2 additions & 1 deletion browser/installer/package-manifest.in
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,10 @@
; [Browser Chrome Files]
@BINPATH@/chrome/browser@JAREXT@
@BINPATH@/chrome/browser.manifest
+@BINPATH@/chrome/pdfjs/*
+@BINPATH@/chrome/pdfjs.manifest
@BINPATH@/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/install.rdf
@BINPATH@/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/icon.png
@BINPATH@/extensions/uriloader@pdf.js.xpi
#ifdef SHIP_FEEDBACK
@BINPATH@/distribution/extensions/testpilot@labs.mozilla.com.xpi
#endif
Expand Down

0 comments on commit 97b4cb0

Please sign in to comment.