• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{{header}}
2{{object 1 0}} <<
3  /Type /Catalog
4  /Pages 2 0 R
5  /OpenAction 10 0 R
6>>
7endobj
8{{object 2 0}} <<
9  /Type /Pages
10  /Count 1
11  /Kids [
12    3 0 R
13  ]
14>>
15endobj
16% Page number 0.
17{{object 3 0}} <<
18  /Type /Page
19  /Parent 2 0 R
20  /MediaBox [0 0 612 792]
21>>
22% OpenAction action
23{{object 10 0}} <<
24  /Type /Action
25  /S /JavaScript
26  /JS 11 0 R
27>>
28endobj
29% JS program to exexute
30{{object 11 0}} <<
31  {{streamlen}}
32>>
33stream
34function expectUnsupportedDangerousFeature(what) {
35  try {
36    var result = eval("typeof " + what);
37    if (result == "undefined") {
38      app.alert('PASS: ' + what + ' is not implemented');
39    } else {
40      app.alert('FAIL: ' + what + ' is implemented, probably a bad idea.');
41      app.alert('FAIL: see https://crbug.com/853237');
42    }
43  } catch (e) {
44    app.alert('Unexpected error ' + e.toString());
45  }
46}
47
48try {
49  expectUnsupportedDangerousFeature("ADBC");
50  expectUnsupportedDangerousFeature("Directory");
51  expectUnsupportedDangerousFeature("Net");
52  expectUnsupportedDangerousFeature("dbg");
53  expectUnsupportedDangerousFeature("security");
54} catch (e) {
55  app.alert('Truly unexpected error: ' + e);
56}
57endstream
58endobj
59{{xref}}
60{{trailer}}
61{{startxref}}
62%%EOF
63