2018-09-22 12:28:50 +00:00
|
|
|
'use strict'
|
|
|
|
|
2016-01-12 02:40:23 +00:00
|
|
|
module.exports = {
|
2016-01-14 18:35:29 +00:00
|
|
|
// Attributes.
|
2016-01-12 02:40:23 +00:00
|
|
|
ATTRIBUTE_NAME: 'name',
|
|
|
|
ATTRIBUTE_PARTITION: 'partition',
|
|
|
|
ATTRIBUTE_SRC: 'src',
|
|
|
|
ATTRIBUTE_HTTPREFERRER: 'httpreferrer',
|
|
|
|
ATTRIBUTE_NODEINTEGRATION: 'nodeintegration',
|
|
|
|
ATTRIBUTE_PLUGINS: 'plugins',
|
|
|
|
ATTRIBUTE_DISABLEWEBSECURITY: 'disablewebsecurity',
|
|
|
|
ATTRIBUTE_ALLOWPOPUPS: 'allowpopups',
|
|
|
|
ATTRIBUTE_PRELOAD: 'preload',
|
|
|
|
ATTRIBUTE_USERAGENT: 'useragent',
|
2016-01-21 10:13:41 +00:00
|
|
|
ATTRIBUTE_BLINKFEATURES: 'blinkfeatures',
|
2016-06-07 23:26:53 +00:00
|
|
|
ATTRIBUTE_DISABLEBLINKFEATURES: 'disableblinkfeatures',
|
2016-10-14 22:16:39 +00:00
|
|
|
ATTRIBUTE_WEBPREFERENCES: 'webpreferences',
|
2016-01-12 02:40:23 +00:00
|
|
|
|
2016-01-14 18:35:29 +00:00
|
|
|
// Internal attribute.
|
2016-01-12 02:40:23 +00:00
|
|
|
ATTRIBUTE_INTERNALINSTANCEID: 'internalinstanceid',
|
|
|
|
|
2016-01-14 18:35:29 +00:00
|
|
|
// Error messages.
|
2016-01-12 02:40:23 +00:00
|
|
|
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.',
|
|
|
|
ERROR_MSG_INVALID_PRELOAD_ATTRIBUTE: 'Only "file:" protocol is supported in "preload" attribute.'
|
2016-03-25 19:57:17 +00:00
|
|
|
}
|