Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(573)

Side by Side Diff: testing/resources/javascript/bug_679642.in

Issue 2624933002: Annotation deleted while retriveing it in JS (Closed)
Patch Set: rebase, another case. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/javascript/Field.cpp ('k') | testing/resources/javascript/bug_679642_expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 {{header}}
2 {{object 1 0}} <<
3 /Type /Catalog
4 /Pages 2 0 R
5 /AcroForm 4 0 R
6 /OpenAction 10 0 R
7 >>
8 endobj
9 {{object 2 0}} <<
10 /Type /Pages
11 /Count 1
12 /Kids [
13 3 0 R
14 ]
15 >>
16 endobj
17 % Page number 0.
18 {{object 3 0}} <<
19 /Type /Page
20 /Parent 2 0 R
21 /Resources <<
22 /Font <</F1 15 0 R>>
23 >>
24 /Contents [21 0 R]
25 /MediaBox [0 0 612 792]
26 /Annots [7 0 R 8 0 R 9 0 R]
27 >>
28 endobj
29 % Forms
30 {{object 4 0}} <<
31 /XFA [
32 (xdp:xdp) 23 0 R
33 (form) 29 0 R
34 (</xdp:xdp>) 30 0 R
35 ]
36 /Fields [
37 5 0 R
38 ]
39 >>
40 endobj
41 % Fields
42 {{object 5 0}} <<
43 /T (MyField)
44 /Kids [
45 6 0 R
46 ]
47 /Rect [100 100 400 400]
48 >>
49 endobj
50 {{object 6 0}} <<
51 /Parent 5 0 R
52 /FT /Btn
53 /Kids [
54 7 0 R
55 8 0 R
56 9 0 R
57 ]
58 /Rect [200 200 220 220]
59 >>
60 endobj
61 {{object 7 0}} <<
62 /Parent 6 0 R
63 /Type /Annot
64 /Subtype /Widget
65 /Rect [220 220 240 240]
66 >>
67 endobj
68 {{object 8 0}} <<
69 /Parent 6 0 R
70 /Type /Annot
71 /Subtype /Widget
72 /Rect [240 240 260 260]
73 >>
74 endobj
75 {{object 9 0}} <<
76 /Parent 6 0 R
77 /Type /Annot
78 /Subtype /Widget
79 /Rect [240 240 260 260]
80 >>
81 endobj
82 % OpenAction action
83 {{object 10 0}} <<
84 /Type /Action
85 /S /JavaScript
86 /JS 11 0 R
87 >>
88 endobj
89 % JS program to exexute
90 {{object 11 0}} <<
91 >>
92 stream
93 var theName = "MyField";
94 function Mangles() {
95 app.alert('Starting ...');
96 try {
97 var f = this.getField(theName);
98 Object.defineProperty(Array.prototype, 1, {
99 get: () => {
100 return this[1];
101 },
102 set: (v) => {
103 app.alert('Firing ...');
104 this.removeField(theName);
105 gc();
106 return false;
107 },
108 enumerable: true
109 });
110 f.page;
111 } catch (e) {
112 app.alert("failed: " + e);
113 }
114 }
115 Mangles();
116 endstream
117 endobj
118 {{object 23 0}} <<
119 >>stream
120 <?xml version="1.0" encoding="UTF-8"?>
121 <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">
122 endstream
123 endobj
124 {{object 29 0}} <<
125 >>stream
126 <config></config>
127 <template></template>
128 endstream
129 endobj
130 {{object 30 0}} <<
131 >>stream
132 </xdp:xdp>
133 endstream
134 endobj
135 {{xref}}
136 trailer <<
137 /Root 1 0 R
138 >>
139 {{startxref}}
140 %%EOF
OLDNEW
« no previous file with comments | « fpdfsdk/javascript/Field.cpp ('k') | testing/resources/javascript/bug_679642_expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698