[Annotation] A push button can have no action (bug 1778692)
This commit is contained in:
parent
b0a3c9e8cf
commit
8f26ba5487
@ -1440,8 +1440,8 @@ class PushButtonWidgetAnnotationElement extends LinkAnnotationElement {
|
|||||||
container.title = this.data.alternativeText;
|
container.title = this.data.alternativeText;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.enableScripting && this.hasJSActions) {
|
|
||||||
const linkElement = container.lastChild;
|
const linkElement = container.lastChild;
|
||||||
|
if (this.enableScripting && this.hasJSActions && linkElement) {
|
||||||
this._setDefaultPropertiesFromJS(linkElement);
|
this._setDefaultPropertiesFromJS(linkElement);
|
||||||
|
|
||||||
linkElement.addEventListener("updatefromsandbox", jsEvent => {
|
linkElement.addEventListener("updatefromsandbox", jsEvent => {
|
||||||
|
2
test/pdfs/bug1778692.pdf.link
Normal file
2
test/pdfs/bug1778692.pdf.link
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
https://bugzilla.mozilla.org/attachment.cgi?id=9284681
|
||||||
|
|
@ -6837,5 +6837,15 @@
|
|||||||
"rotation": 270
|
"rotation": 270
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{ "id": "bug1778692",
|
||||||
|
"file": "pdfs/bug1778692.pdf",
|
||||||
|
"md5": "8855414caaa04fbbdfad1545d1c8a8ae",
|
||||||
|
"rounds": 1,
|
||||||
|
"link": true,
|
||||||
|
"firstPage": 2,
|
||||||
|
"lastPage": 2,
|
||||||
|
"type": "eq",
|
||||||
|
"annotations": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user