WebAPI/BrowserAPI: Difference between revisions

Jump to navigation Jump to search
Line 171: Line 171:
: Indicates the favicon URL of the page changed, the URL of the favicon is included as a string in the event payload.
: Indicates the favicon URL of the page changed, the URL of the favicon is included as a string in the event payload.


=== alert ===  
=== showmodalprompt ===  


: Indicates that the content requested an alert dialog to be displayed. Used by a browser app to display alerts.
: Indicates that the content requested an alert, confirm, or prompt dialog. This API is a bit complicated; see the relevant test, or ask someone.


=== confirm ===
=== openwindow ===  
 
: Indicates that the content requested a confirmation dialog to be displayed. Used by a browser app to display confirmation dialogs.
 
=== prompt ===
 
: Indicates that the content requested a prompt dialog to be displayed. Used by a browser app to display prompt dialogs.
 
=== open ===  


: Indicates that the content requested a new window to be opened. Used by a browser app to open a new window/tab.
: Indicates that the content requested a new window to be opened. Used by a browser app to open a new window/tab.
Line 193: Line 185:
=== securitychange ===  
=== securitychange ===  


: Indicates that the security status (secure or not) of a web page changed. Not sure how this should work, should we provide all the security details (e.g. SSL or not, certificate) in the event payload or add a getSecurityInfo() method for this?
: Indicates that the security status of a web page changed. The options are "secure", "insecure", and "broken".  "broken" corresponds to the "broken lock icon", which indicates mixed content.


=== resize ===  
=== resize ===  
187

edits

Navigation menu