2014-12-08 21:36:30 +00:00
|
|
|
module.exports =
|
|
|
|
# Attributes.
|
|
|
|
ATTRIBUTE_ALLOWTRANSPARENCY: 'allowtransparency'
|
|
|
|
ATTRIBUTE_AUTOSIZE: 'autosize'
|
|
|
|
ATTRIBUTE_MAXHEIGHT: 'maxheight'
|
|
|
|
ATTRIBUTE_MAXWIDTH: 'maxwidth'
|
|
|
|
ATTRIBUTE_MINHEIGHT: 'minheight'
|
|
|
|
ATTRIBUTE_MINWIDTH: 'minwidth'
|
2014-12-09 00:14:12 +00:00
|
|
|
ATTRIBUTE_NAME: 'name'
|
2014-12-08 21:36:30 +00:00
|
|
|
ATTRIBUTE_PARTITION: 'partition'
|
2014-12-09 00:14:12 +00:00
|
|
|
ATTRIBUTE_SRC: 'src'
|
|
|
|
ATTRIBUTE_HTTPREFERRER: 'httpreferrer'
|
2014-12-08 21:36:30 +00:00
|
|
|
ATTRIBUTE_NODEINTEGRATION: 'nodeintegration'
|
|
|
|
ATTRIBUTE_PLUGINS: 'plugins'
|
2014-12-18 00:32:25 +00:00
|
|
|
ATTRIBUTE_DISABLEWEBSECURITY: 'disablewebsecurity'
|
2014-12-08 21:36:30 +00:00
|
|
|
ATTRIBUTE_PRELOAD: 'preload'
|
|
|
|
|
2014-12-09 00:14:12 +00:00
|
|
|
# Internal attribute.
|
|
|
|
ATTRIBUTE_INTERNALINSTANCEID: 'internalinstanceid'
|
|
|
|
|
2014-12-08 21:36:30 +00:00
|
|
|
# Error messages.
|
|
|
|
ERROR_MSG_ALREADY_NAVIGATED: 'The object has already navigated, so its partition cannot be changed.'
|
|
|
|
ERROR_MSG_CANNOT_INJECT_SCRIPT: '<webview>: ' +
|
|
|
|
'Script cannot be injected into content until the page has loaded.'
|
|
|
|
ERROR_MSG_INVALID_PARTITION_ATTRIBUTE: 'Invalid partition attribute.'
|
2015-02-01 02:50:26 +00:00
|
|
|
ERROR_MSG_INVALID_PRELOAD_ATTRIBUTE: 'Only "file:" protocol is supported in "preload" attribute.'
|