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

Unified Diff: testing/resources/bug_572871.in

Issue 1569663002: Invalidate IPWL_FocusHandler and IPWL_Provider on destruction. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fpdfsdk/src/pdfwindow/PWL_Wnd.cpp ('k') | testing/resources/bug_572871.pdf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/resources/bug_572871.in
diff --git a/testing/resources/bug_507316.in b/testing/resources/bug_572871.in
similarity index 61%
copy from testing/resources/bug_507316.in
copy to testing/resources/bug_572871.in
index 87dd5c31c0210e0d332ab1450275df8ff2d40728..20cb94394e6d56e80e65edd83728095551f87b8a 100644
--- a/testing/resources/bug_507316.in
+++ b/testing/resources/bug_572871.in
@@ -2,124 +2,94 @@
{{object 1 0}} <<
/Type /Catalog
/Pages 2 0 R
- /OpenAction 4 0 R
/AcroForm 3 0 R
+ /AA 11 0 R
>>
endobj
{{object 2 0}} <<
/Type /Pages
/Count 3
- /Kids [6 0 R 7 0 R 8 0 R ]
+ /Kids [4 0 R 5 0 R 6 0 R ]
>>
endobj
{{object 3 0}} <<
- /CO [11 0 R]
- /Fields [11 0 R 9 0 R]
+ /CO [9 0 R]
+ /Fields [9 0 R 7 0 R]
>>
endobj
{{object 4 0}} <<
- /Type /Action
- /S /JavaScript
- /JS 5 0 R
->>
-endobj
-{{object 5 0}} <<>>
-stream
-var i = 0;
-function run()
-{
- t = this.getField('txtName1');
- t2 = this.getField('txtName2');
- t2.setFocus();
- t.setFocus();
- t.value='G';
-}
-
-function remove(){
- if (i==1){
- this.removeField('txtName2');
- }
- i++;
-}
-
-app.setTimeOut('run()',2000);
-endstream
-endobj
-{{object 6 0}} <<
/Type /Page
/Parent 2 0 R
/MediaBox [0 0 612 792]
/Resources <<>>
>>
endobj
-{{object 7 0}} <<
+{{object 5 0}} <<
/Type /Page
/Parent 2 0 R
/MediaBox [0 0 612 792]
/Resources <<>>
>>
endobj
-{{object 8 0}} <<
+{{object 6 0}} <<
/Type /Page
/Parent 2 0 R
/MediaBox [0 0 612 792]
/Resources <<>>
- /Annots [9 0 R 11 0 R]
+ /Annots [7 0 R 9 0 R]
>>
endobj
-{{object 9 0}} <<
+{{object 7 0}} <<
/FT /Tx
/Type /Annot
/Subtype /Widget
/T (txtName2)
/F 4
- /AP <</N 10 0 R>>
+ /AP <</N 8 0 R>>
/Rect [20 20 400 60]
>>
endobj
-{{object 10 0}} <<
+{{object 8 0}} <<
/Type /XObject
/Subtype /Form
/FormType 1
>>
endobj
-{{object 11 0}} <<
+{{object 9 0}} <<
/FT /Tx
/Type /Annot
/Subtype /Widget
/T (txtName1)
/F 4
- /AP <</N 12 0 R>>
+ /AP <</N 10 0 R>>
/Rect [200 200 400 260]
- /AA 13 0 R
>>
endobj
-{{object 12 0}} <<
+{{object 10 0}} <<
/Type /XObject
/Subtype /Form
/FormType 1
>>
endobj
-{{object 13 0}} <<
- /C 14 0 R
+{{object 11 0}} <<
+ /WC 12 0 R
>>
endobj
-{{object 14 0}} <<
+{{object 12 0}} <<
/Type /Action
/S /JavaScript
- /JS 15 0 R
+ /JS 13 0 R
>>
endobj
-{{object 15 0}} <<>>
+{{object 13 0}} <<>>
stream
-this.getField('txtName2').value='B';
-this.pageNum=1;
-remove();
+t = this.getField('txtName2');
+t.setFocus();
endstream
endobj
{{xref}}
trailer <<
- /Size 16
+ /Size 14
/Root 1 0 R
>>
{{startxref}}
« no previous file with comments | « fpdfsdk/src/pdfwindow/PWL_Wnd.cpp ('k') | testing/resources/bug_572871.pdf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698