diff options
Diffstat (limited to 'main_background.js')
-rw-r--r-- | main_background.js | 927 |
1 files changed, 3 insertions, 924 deletions
diff --git a/main_background.js b/main_background.js index 897b5be..4c34b63 100644 --- a/main_background.js +++ b/main_background.js @@ -91,99 +91,7 @@ var intrinsic_events = [ - "// @license [magnet link] [identifier]" then "// @license-end" (may also use /* comments) - Automatic whitelist: (http://bzr.savannah.gnu.org/lh/librejs/dev/annotate/head:/data/script_libraries/script-libraries.json_ */ - -var licenses = { - 'Apache-2.0':{ - 'URL': 'http://www.apache.org/licenses/LICENSE-2.0', - 'Magnet link': 'magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt' - }, - // No identifier was present in documentation - 'Artistic-2.0':{ - 'URL': 'http://www.perlfoundation.org/artistic_license_2_0', - 'Magnet link': 'magnet:?xt=urn:btih:54fd2283f9dbdf29466d2df1a98bf8f65cafe314&dn=artistic-2.0.txt' - }, - // No identifier was present in documentation - 'Boost':{ - 'URL': 'http://www.boost.org/LICENSE_1_0.txt', - 'Magnet link': 'magnet:?xt=urn:btih:89a97c535628232f2f3888c2b7b8ffd4c078cec0&dn=Boost-1.0.txt' - }, - // No identifier was present in documentation - 'BSD-3-Clause':{ - 'URL': 'http://opensource.org/licenses/BSD-3-Clause', - 'Magnet link': 'magnet:?xt=urn:btih:c80d50af7d3db9be66a4d0a86db0286e4fd33292&dn=bsd-3-clause.txt', - }, - 'CPAL-1.0':{ - 'URL': 'http://opensource.org/licenses/cpal_1.0', - 'Magnet link': 'magnet:?xt=urn:btih:84143bc45939fc8fa42921d619a95462c2031c5c&dn=cpal-1.0.txt' - }, - 'CC0-1.0':{ - 'URL': 'http://creativecommons.org/publicdomain/zero/1.0/legalcode', - 'Magnet link': 'magnet:?xt=urn:btih:90dc5c0be029de84e523b9b3922520e79e0e6f08&dn=cc0.txt' - }, - 'EPL-1.0':{ - 'URL': 'http://www.eclipse.org/legal/epl-v10.html', - 'Magnet link': 'magnet:?xt=urn:btih:4c6a2ad0018cd461e9b0fc44e1b340d2c1828b22&dn=epl-1.0.txt' - }, - 'Expat':{ - 'URL': 'http://www.jclark.com/xml/copying.txt', - 'Magnet link': 'magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt' - }, - 'FreeBSD':{ - 'URL': 'http://www.freebsd.org/copyright/freebsd-license.html', - 'Magnet link': 'magnet:?xt=urn:btih:87f119ba0b429ba17a44b4bffcab33165ebdacc0&dn=freebsd.txt' - }, - 'GPL-2.0':{ - 'URL': 'http://www.gnu.org/licenses/gpl-2.0.html', - 'Magnet link': 'magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt' - }, - 'GPL-3.0':{ - 'URL': 'http://www.gnu.org/licenses/gpl-3.0.html', - 'Magnet link': 'magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt' - }, - 'LGPL-2.1':{ - 'URL': 'http://www.gnu.org/licenses/lgpl-2.1.html', - 'Magnet link': 'magnet:?xt=urn:btih:5de60da917303dbfad4f93fb1b985ced5a89eac2&dn=lgpl-2.1.txt' - }, - 'LGPL-3.0':{ - 'URL': 'http://www.gnu.org/licenses/lgpl-3.0.html', - 'Magnet link': 'magnet:?xt=urn:btih:0ef1b8170b3b615170ff270def6427c317705f85&dn=lgpl-3.0.txt' - }, - 'AGPL-3.0':{ - 'URL': 'http://www.gnu.org/licenses/agpl-3.0.html', - 'Magnet link': 'magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt' - }, - 'ISC':{ - 'URL': 'https://www.isc.org/downloads/software-support-policy/isc-license/', - 'Magnet link': 'magnet:?xt=urn:btih:b8999bbaf509c08d127678643c515b9ab0836bae&dn=ISC.txt' - }, - 'MPL-2.0':{ - 'URL': 'http://www.mozilla.org/MPL/2.0', - 'Magnet link': 'magnet:?xt=urn:btih:3877d6d54b3accd4bc32f8a48bf32ebc0901502a&dn=mpl-2.0.txt' - }, - 'UPL-1.0': { - 'URL': 'https://oss.oracle.com/licenses/upl/', - 'Magnet link': 'magnet:?xt=urn:btih:478974f4d41c3fa84c4befba25f283527fad107d&dn=upl-1.0.txt' - }, - 'WTFPL': { - 'URL': 'http://www.wtfpl.net/txt/copying/', - 'Magnet link': 'magnet:?xt=urn:btih:723febf9f6185544f57f0660a41489c7d6b4931b&dn=wtfpl.txt' - }, - 'Unlicense':{ - 'URL': 'http://unlicense.org/UNLICENSE', - 'Magnet link': 'magnet:?xt=urn:btih:5ac446d35272cc2e4e85e4325b146d0b7ca8f50c&dn=unlicense.txt' - }, - // No identifier was present in documentation - 'X11':{ - 'URL': 'http://www.xfree86.org/3.3.6/COPYRIGHT2.html#3', - 'Magnet link': 'magnet:?xt=urn:btih:5305d91886084f776adcf57509a648432709a7c7&dn=x11.txt' - }, - // Picked one of the two links that were there - 'Modified-BSD':{ - 'URL': 'http://www.xfree86.org/current/LICENSE4.html', - 'Magnet link': 'magnet:?xt=urn:btih:12f2ec9e8de2a3b0002a33d518d6010cc8ab2ae9&dn=xfree86.txt' - } -} - +var licenses = require("./licenses.json").licenses; // These are objects that it will search for in an initial regex pass over non-free scripts. var reserved_objects = [ @@ -741,837 +649,8 @@ function blocked_status(hash){ } /* *********************************************************************************************** */ +var fname_data = require("./fname_data.json").fname_data; -var fname_data = { - "WebGLShader": true, - "WebGLShaderPrecisionFormat": true, - "WebGLQuery": true, - "WebGLRenderbuffer": true, - "WebGLSampler": true, - "WebGLUniformLocation": true, - "WebGLFramebuffer": true, - "WebGLProgram": true, - "WebGLContextEvent": true, - "WebGL2RenderingContext": true, - "WebGLTexture": true, - "WebGLRenderingContext": true, - "WebGLVertexArrayObject": true, - "WebGLActiveInfo": true, - "WebGLTransformFeedback": true, - "WebGLSync": true, - "WebGLBuffer": true, - "cat_svg": true, - "SVGPoint": true, - "SVGEllipseElement": true, - "SVGRadialGradientElement": true, - "SVGComponentTransferFunctionElement": true, - "SVGPathSegCurvetoQuadraticAbs": true, - "SVGAnimatedNumberList": true, - "SVGPathSegCurvetoQuadraticSmoothRel": true, - "SVGFEColorMatrixElement": true, - "SVGPathSegLinetoHorizontalAbs": true, - "SVGLinearGradientElement": true, - "SVGStyleElement": true, - "SVGPathSegMovetoRel": true, - "SVGStopElement": true, - "SVGPathSegLinetoRel": true, - "SVGFEConvolveMatrixElement": true, - "SVGAnimatedAngle": true, - "SVGPathSegLinetoAbs": true, - "SVGPreserveAspectRatio": true, - "SVGFEOffsetElement": true, - "SVGFEImageElement": true, - "SVGFEDiffuseLightingElement": true, - "SVGAnimatedNumber": true, - "SVGTextElement": true, - "SVGFESpotLightElement": true, - "SVGFEMorphologyElement": true, - "SVGAngle": true, - "SVGScriptElement": true, - "SVGFEDropShadowElement": true, - "SVGPathSegArcRel": true, - "SVGNumber": true, - "SVGPathSegLinetoHorizontalRel": true, - "SVGFEFuncBElement": true, - "SVGClipPathElement": true, - "SVGPathSeg": true, - "SVGUseElement": true, - "SVGPathSegArcAbs": true, - "SVGPathSegCurvetoQuadraticSmoothAbs": true, - "SVGRect": true, - "SVGAnimatedPreserveAspectRatio": true, - "SVGImageElement": true, - "SVGAnimatedEnumeration": true, - "SVGAnimatedLengthList": true, - "SVGFEFloodElement": true, - "SVGFECompositeElement": true, - "SVGAElement": true, - "SVGAnimatedBoolean": true, - "SVGMaskElement": true, - "SVGFilterElement": true, - "SVGPathSegLinetoVerticalRel": true, - "SVGAnimatedInteger": true, - "SVGTSpanElement": true, - "SVGMarkerElement": true, - "SVGStringList": true, - "SVGTransform": true, - "SVGTitleElement": true, - "SVGFEBlendElement": true, - "SVGTextPositioningElement": true, - "SVGFEFuncGElement": true, - "SVGFEPointLightElement": true, - "SVGAnimateElement": true, - "SVGPolylineElement": true, - "SVGDefsElement": true, - "SVGPathSegList": true, - "SVGAnimatedTransformList": true, - "SVGPathSegClosePath": true, - "SVGGradientElement": true, - "SVGSwitchElement": true, - "SVGViewElement": true, - "SVGUnitTypes": true, - "SVGPathSegMovetoAbs": true, - "SVGSymbolElement": true, - "SVGFEFuncAElement": true, - "SVGAnimatedString": true, - "SVGFEMergeElement": true, - "SVGPathSegLinetoVerticalAbs": true, - "SVGAnimationElement": true, - "SVGPathSegCurvetoCubicAbs": true, - "SVGLength": true, - "SVGTextPathElement": true, - "SVGPolygonElement": true, - "SVGAnimatedRect": true, - "SVGPathSegCurvetoCubicRel": true, - "SVGFEFuncRElement": true, - "SVGLengthList": true, - "SVGTextContentElement": true, - "SVGFETurbulenceElement": true, - "SVGMatrix": true, - "SVGZoomAndPan": true, - "SVGMetadataElement": true, - "SVGFEDistantLightElement": true, - "SVGAnimateMotionElement": true, - "SVGDescElement": true, - "SVGPathSegCurvetoCubicSmoothRel": true, - "SVGFESpecularLightingElement": true, - "SVGFEGaussianBlurElement": true, - "SVGFEComponentTransferElement": true, - "SVGNumberList": true, - "SVGTransformList": true, - "SVGForeignObjectElement": true, - "SVGRectElement": true, - "SVGFEDisplacementMapElement": true, - "SVGAnimateTransformElement": true, - "SVGAnimatedLength": true, - "SVGPointList": true, - "SVGPatternElement": true, - "SVGPathSegCurvetoCubicSmoothAbs": true, - "SVGCircleElement": true, - "SVGSetElement": true, - "SVGFETileElement": true, - "SVGMPathElement": true, - "SVGFEMergeNodeElement": true, - "SVGPathSegCurvetoQuadraticRel": true, - "SVGElement": true, - "SVGGraphicsElement": true, - "SVGSVGElement": true, - "SVGGElement": true, - "SVGGeometryElement": true, - "SVGPathElement": true, - "SVGLineElement": true, - "cat_html": true, - "HTMLTimeElement": true, - "HTMLPictureElement": true, - "HTMLMenuItemElement": true, - "HTMLFormElement": true, - "HTMLOptionElement": true, - "HTMLCanvasElement": true, - "HTMLTableSectionElement": true, - "HTMLSelectElement": true, - "HTMLUListElement": true, - "HTMLMetaElement": true, - "HTMLLinkElement": true, - "HTMLBaseElement": true, - "HTMLDataListElement": true, - "HTMLInputElement": true, - "HTMLMeterElement": true, - "HTMLSourceElement": true, - "HTMLTrackElement": true, - "HTMLTableColElement": true, - "HTMLFieldSetElement": true, - "HTMLDirectoryElement": true, - "HTMLTableCellElement": true, - "HTMLStyleElement": true, - "HTMLAudioElement": true, - "HTMLLegendElement": true, - "HTMLOListElement": true, - "HTMLEmbedElement": true, - "HTMLQuoteElement": true, - "HTMLMenuElement": true, - "HTMLHeadElement": true, - "HTMLUnknownElement": true, - "HTMLBRElement": true, - "HTMLProgressElement": true, - "HTMLMediaElement": true, - "HTMLFormControlsCollection": true, - "HTMLCollection": true, - "HTMLLIElement": true, - "HTMLDetailsElement": true, - "HTMLObjectElement": true, - "HTMLHeadingElement": true, - "HTMLTableCaptionElement": true, - "HTMLPreElement": true, - "HTMLAllCollection": true, - "HTMLFrameSetElement": true, - "HTMLFontElement": true, - "HTMLFrameElement": true, - "HTMLAnchorElement": true, - "HTMLOptGroupElement": true, - "HTMLVideoElement": true, - "HTMLModElement": true, - "HTMLBodyElement": true, - "HTMLTableElement": true, - "HTMLButtonElement": true, - "HTMLTableRowElement": true, - "HTMLAreaElement": true, - "HTMLDataElement": true, - "HTMLParamElement": true, - "HTMLLabelElement": true, - "HTMLTemplateElement": true, - "HTMLOptionsCollection": true, - "HTMLIFrameElement": true, - "HTMLTitleElement": true, - "HTMLMapElement": true, - "HTMLOutputElement": true, - "HTMLDListElement": true, - "HTMLParagraphElement": true, - "HTMLHRElement": true, - "HTMLImageElement": true, - "HTMLDocument": true, - "HTMLElement": true, - "HTMLScriptElement": true, - "HTMLHtmlElement": true, - "HTMLTextAreaElement": true, - "HTMLDivElement": true, - "HTMLSpanElement": true, - "cat_css": true, - "CSSStyleRule": true, - "CSSFontFaceRule": true, - "CSSPrimitiveValue": true, - "CSSStyleDeclaration": true, - "CSSStyleSheet": true, - "CSSPageRule": true, - "CSSSupportsRule": true, - "CSSMozDocumentRule": true, - "CSSKeyframeRule": true, - "CSSGroupingRule": true, - "CSS2Properties": true, - "CSSFontFeatureValuesRule": true, - "CSSRuleList": true, - "CSSPseudoElement": true, - "CSSMediaRule": true, - "CSSCounterStyleRule": true, - "CSSImportRule": true, - "CSSTransition": true, - "CSSAnimation": true, - "CSSValue": true, - "CSSNamespaceRule": true, - "CSSRule": true, - "CSS": true, - "CSSKeyframesRule": true, - "CSSConditionRule": true, - "CSSValueList": true, - "cat_event": true, - "ondevicemotion": true, - "ondeviceorientation": true, - "onabsolutedeviceorientation": true, - "ondeviceproximity": true, - "onuserproximity": true, - "ondevicelight": true, - "onvrdisplayconnect": true, - "onvrdisplaydisconnect": true, - "onvrdisplayactivate": true, - "onvrdisplaydeactivate": true, - "onvrdisplaypresentchange": true, - "onabort": true, - "onblur": true, - "onfocus": true, - "onauxclick": true, - "oncanplay": true, - "oncanplaythrough": true, - "onchange": true, - "onclick": true, - "onclose": true, - "oncontextmenu": true, - "ondblclick": true, - "ondrag": true, - "ondragend": true, - "ondragenter": true, - "ondragexit": true, - "ondragleave": true, - "ondragover": true, - "ondragstart": true, - "ondrop": true, - "ondurationchange": true, - "onemptied": true, - "onended": true, - "oninput": true, - "oninvalid": true, - "onkeydown": true, - "onkeypress": true, - "onkeyup": true, - "onload": true, - "onloadeddata": true, - "onloadedmetadata": true, - "onloadend": true, - "onloadstart": true, - "onmousedown": true, - "onmouseenter": true, - "onmouseleave": true, - "onmousemove": true, - "onmouseout": true, - "onmouseover": true, - "onmouseup": true, - "onwheel": true, - "onpause": true, - "onplay": true, - "onplaying": true, - "onprogress": true, - "onratechange": true, - "onreset": true, - "onresize": true, - "onscroll": true, - "onseeked": true, - "onseeking": true, - "onselect": true, - "onshow": true, - "onstalled": true, - "onsubmit": true, - "onsuspend": true, - "ontimeupdate": true, - "onvolumechange": true, - "onwaiting": true, - "onselectstart": true, - "ontoggle": true, - "onpointercancel": true, - "onpointerdown": true, - "onpointerup": true, - "onpointermove": true, - "onpointerout": true, - "onpointerover": true, - "onpointerenter": true, - "onpointerleave": true, - "ongotpointercapture": true, - "onlostpointercapture": true, - "onmozfullscreenchange": true, - "onmozfullscreenerror": true, - "onanimationcancel": true, - "onanimationend": true, - "onanimationiteration": true, - "onanimationstart": true, - "ontransitioncancel": true, - "ontransitionend": true, - "ontransitionrun": true, - "ontransitionstart": true, - "onwebkitanimationend": true, - "onwebkitanimationiteration": true, - "onwebkitanimationstart": true, - "onwebkittransitionend": true, - "onerror": true, - "onafterprint": true, - "onbeforeprint": true, - "onbeforeunload": true, - "onhashchange": true, - "onlanguagechange": true, - "onmessage": true, - "onmessageerror": true, - "onoffline": true, - "ononline": true, - "onpagehide": true, - "onpageshow": true, - "onpopstate": true, - "onstorage": true, - "onunload": true, - "cat_rtc": true, - "RTCDTMFSender": true, - "RTCStatsReport": true, - "RTCTrackEvent": true, - "RTCDataChannelEvent": true, - "RTCPeerConnectionIceEvent": true, - "RTCCertificate": true, - "RTCDTMFToneChangeEvent": true, - "RTCPeerConnection": true, - "RTCIceCandidate": true, - "RTCRtpReceiver": true, - "RTCRtpSender": true, - "RTCSessionDescription": true, - "cat_vr": true, - "VRStageParameters": true, - "VRFrameData": true, - "VRDisplay": true, - "VRDisplayEvent": true, - "VRFieldOfView": true, - "VRDisplayCapabilities": true, - "VREyeParameters": true, - "VRPose": true, - "cat_dom": true, - "DOMStringMap": true, - "DOMRectReadOnly": true, - "DOMException": true, - "DOMRect": true, - "DOMMatrix": true, - "DOMMatrixReadOnly": true, - "DOMPointReadOnly": true, - "DOMPoint": true, - "DOMQuad": true, - "DOMRequest": true, - "DOMParser": true, - "DOMTokenList": true, - "DOMStringList": true, - "DOMImplementation": true, - "DOMError": true, - "DOMRectList": true, - "DOMCursor": true, - "cat_idb": true, - "IDBFileRequest": true, - "IDBTransaction": true, - "IDBCursor": true, - "IDBFileHandle": true, - "IDBMutableFile": true, - "IDBKeyRange": true, - "IDBVersionChangeEvent": true, - "IDBObjectStore": true, - "IDBFactory": true, - "IDBCursorWithValue": true, - "IDBOpenDBRequest": true, - "IDBRequest": true, - "IDBIndex": true, - "IDBDatabase": true, - "cat_audio": true, - "AudioContext": true, - "AudioBuffer": true, - "AudioBufferSourceNode": true, - "Audio": true, - "MediaElementAudioSourceNode": true, - "AudioNode": true, - "BaseAudioContext": true, - "AudioListener": true, - "MediaStreamAudioSourceNode": true, - "OfflineAudioContext": true, - "AudioDestinationNode": true, - "AudioParam": true, - "MediaStreamAudioDestinationNode": true, - "OfflineAudioCompletionEvent": true, - "AudioStreamTrack": true, - "AudioScheduledSourceNode": true, - "AudioProcessingEvent": true, - "cat_gamepad": true, - "GamepadButton": true, - "GamepadHapticActuator": true, - "GamepadAxisMoveEvent": true, - "GamepadPose": true, - "GamepadEvent": true, - "Gamepad": true, - "GamepadButtonEvent": true, - "cat_media": true, - "MediaKeys": true, - "MediaKeyError": true, - "MediaSource": true, - "MediaDevices": true, - "MediaKeyStatusMap": true, - "MediaStreamTrackEvent": true, - "MediaRecorder": true, - "MediaQueryListEvent": true, - "MediaStream": true, - "MediaEncryptedEvent": true, - "MediaStreamTrack": true, - "MediaError": true, - "MediaStreamEvent": true, - "MediaQueryList": true, - "MediaKeySystemAccess": true, - "MediaDeviceInfo": true, - "MediaKeySession": true, - "MediaList": true, - "MediaRecorderErrorEvent": true, - "MediaKeyMessageEvent": true, - "cat_event2": true, - "SpeechSynthesisErrorEvent": true, - "BeforeUnloadEvent": true, - "CustomEvent": true, - "PageTransitionEvent": true, - "PopupBlockedEvent": true, - "CloseEvent": true, - "ProgressEvent": true, - "MutationEvent": true, - "MessageEvent": true, - "FocusEvent": true, - "TrackEvent": true, - "DeviceMotionEvent": true, - "TimeEvent": true, - "PointerEvent": true, - "UserProximityEvent": true, - "StorageEvent": true, - "DragEvent": true, - "MouseScrollEvent": true, - "EventSource": true, - "PopStateEvent": true, - "DeviceProximityEvent": true, - "SpeechSynthesisEvent": true, - "XMLHttpRequestEventTarget": true, - "ClipboardEvent": true, - "AnimationPlaybackEvent": true, - "DeviceLightEvent": true, - "BlobEvent": true, - "MouseEvent": true, - "WheelEvent": true, - "InputEvent": true, - "HashChangeEvent": true, - "DeviceOrientationEvent": true, - "CompositionEvent": true, - "KeyEvent": true, - "ScrollAreaEvent": true, - "KeyboardEvent": true, - "TransitionEvent": true, - "ErrorEvent": true, - "AnimationEvent": true, - "FontFaceSetLoadEvent": true, - "EventTarget": true, - "captureEvents": true, - "releaseEvents": true, - "Event": true, - "UIEvent": true, - "cat_other": false, - "undefined": false, - "Array": false, - "Boolean": false, - "JSON": false, - "Date": false, - "Math": false, - "Number": false, - "String": false, - "RegExp": false, - "Error": false, - "InternalError": false, - "EvalError": false, - "RangeError": false, - "ReferenceError": false, - "SyntaxError": false, - "TypeError": false, - "URIError": false, - "ArrayBuffer": true, - "Int8Array": true, - "Uint8Array": true, - "Int16Array": true, - "Uint16Array": true, - "Int32Array": true, - "Uint32Array": true, - "Float32Array": true, - "Float64Array": true, - "Uint8ClampedArray": true, - "Proxy": true, - "WeakMap": true, - "Map": true, - "Set": true, - "DataView": false, - "Symbol": false, - "SharedArrayBuffer": true, - "Intl": false, - "TypedObject": true, - "Reflect": true, - "SIMD": true, - "WeakSet": true, - "Atomics": true, - "Promise": true, - "WebAssembly": true, - "NaN": false, - "Infinity": false, - "isNaN": false, - "isFinite": false, - "parseFloat": false, - "parseInt": false, - "escape": false, - "unescape": false, - "decodeURI": false, - "encodeURI": false, - "decodeURIComponent": false, - "encodeURIComponent": false, - "uneval": false, - "BatteryManager": true, - "CanvasGradient": true, - "TextDecoder": true, - "Plugin": true, - "PushManager": true, - "ChannelMergerNode": true, - "PerformanceResourceTiming": true, - "ServiceWorker": true, - "TextTrackCueList": true, - "PerformanceEntry": true, - "TextTrackList": true, - "StyleSheet": true, - "PerformanceMeasure": true, - "DesktopNotificationCenter": true, - "Comment": true, - "DelayNode": true, - "XPathResult": true, - "CDATASection": true, - "MessageChannel": true, - "BiquadFilterNode": true, - "SpeechSynthesisUtterance": true, - "Crypto": true, - "Navigator": true, - "FileList": true, - "URLSearchParams": false, - "ServiceWorkerContainer": true, - "ValidityState": true, - "ProcessingInstruction": true, - "AbortSignal": true, - "FontFace": true, - "FileReader": true, - "Worker": true, - "External": true, - "ImageBitmap": true, - "TimeRanges": true, - "Option": true, - "TextTrack": true, - "Image": true, - "AnimationTimeline": true, - "VideoPlaybackQuality": true, - "VTTCue": true, - "Storage": true, - "XPathExpression": true, - "CharacterData": false, - "TextMetrics": true, - "AnimationEffectReadOnly": true, - "PerformanceTiming": false, - "PerformanceMark": true, - "ImageBitmapRenderingContext": true, - "Headers": true, - "Range": false, - "Rect": true, - "AnimationEffectTimingReadOnly": true, - "KeyframeEffect": true, - "Permissions": true, - "TextEncoder": true, - "ImageData": true, - "SpeechSynthesisVoice": true, - "StorageManager": true, - "TextTrackCue": true, - "WebSocket": true, - "DocumentType": true, - "XPathEvaluator": true, - "PerformanceNavigationTiming": true, - "IdleDeadline": true, - "FileSystem": true, - "FileSystemFileEntry": true, - "CacheStorage": true, - "MimeType": true, - "PannerNode": true, - "NodeFilter": true, - "StereoPannerNode": true, - "console": false, - "DynamicsCompressorNode": true, - "PaintRequest": true, - "RGBColor": true, - "FontFaceSet": false, - "PaintRequestList": true, - "FileSystemEntry": true, - "XMLDocument": false, - "SourceBuffer": false, - "Screen": true, - "NamedNodeMap": false, - "History": true, - "Response": true, - "AnimationEffectTiming": true, - "ServiceWorkerRegistration": true, - "CanvasRenderingContext2D": true, - "ScriptProcessorNode": true, - "FileSystemDirectoryReader": true, - "MimeTypeArray": true, - "CanvasCaptureMediaStream": true, - "Directory": true, - "mozRTCPeerConnection": true, - "PerformanceObserverEntryList": true, - "PushSubscriptionOptions": true, - "Text": false, - "IntersectionObserverEntry": true, - "SubtleCrypto": true, - "Animation": true, - "DataTransfer": true, - "TreeWalker": true, - "XMLHttpRequest": true, - "LocalMediaStream": true, - "ConvolverNode": true, - "WaveShaperNode": true, - "DataTransferItemList": false, - "Request": true, - "SourceBufferList": false, - "XSLTProcessor": true, - "XMLHttpRequestUpload": true, - "SharedWorker": true, - "Notification": false, - "DataTransferItem": true, - "AnalyserNode": true, - "mozRTCIceCandidate": true, - "PerformanceObserver": true, - "OfflineResourceList": true, - "FileSystemDirectoryEntry": true, - "DesktopNotification": false, - "DataChannel": true, - "IIRFilterNode": true, - "ChannelSplitterNode": true, - "File": true, - "ConstantSourceNode": true, - "CryptoKey": true, - "GainNode": true, - "AbortController": true, - "Attr": true, - "SpeechSynthesis": true, - "PushSubscription": false, - "XMLStylesheetProcessingInstruction": false, - "NodeIterator": true, - "VideoStreamTrack": true, - "XMLSerializer": true, - "CaretPosition": true, - "FormData": true, - "CanvasPattern": true, - "mozRTCSessionDescription": true, - "Path2D": true, - "PerformanceNavigation": true, - "URL": false, - "PluginArray": true, - "MutationRecord": true, - "WebKitCSSMatrix": true, - "PeriodicWave": true, - "DocumentFragment": true, - "DocumentTimeline": false, - "ScreenOrientation": true, - "BroadcastChannel": true, - "PermissionStatus": true, - "IntersectionObserver": true, - "Blob": true, - "MessagePort": true, - "BarProp": true, - "OscillatorNode": true, - "Cache": true, - "RadioNodeList": true, - "KeyframeEffectReadOnly": true, - "InstallTrigger": true, - "Function": false, - "Object": false, - "eval": true, - "Window": false, - "close": false, - "stop": false, - "focus": false, - "blur": false, - "open": true, - "alert": false, - "confirm": false, - "prompt": false, - "print": false, - "postMessage": true, - "getSelection": true, - "getComputedStyle": true, - "matchMedia": true, - "moveTo": false, - "moveBy": false, - "resizeTo": false, - "resizeBy": false, - "scroll": false, - "scrollTo": false, - "scrollBy": false, - "requestAnimationFrame": true, - "cancelAnimationFrame": true, - "getDefaultComputedStyle": false, - "scrollByLines": false, - "scrollByPages": false, - "sizeToContent": false, - "updateCommands": true, - "find": false, - "dump": true, - "setResizable": false, - "requestIdleCallback": false, - "cancelIdleCallback": false, - "btoa": true, - "atob": true, - "setTimeout": true, - "clearTimeout": true, - "setInterval": true, - "clearInterval": true, - "createImageBitmap": true, - "fetch": true, - "self": true, - "name": false, - "history": true, - "locationbar": true, - "menubar": true, - "personalbar": true, - "scrollbars": true, - "statusbar": true, - "toolbar": true, - "status": true, - "closed": true, - "frames": true, - "length": false, - "opener": true, - "parent": true, - "frameElement": true, - "navigator": true, - "external": true, - "applicationCache": true, - "screen": true, - "innerWidth": true, - "innerHeight": true, - "scrollX": true, - "pageXOffset": true, - "scrollY": true, - "pageYOffset": true, - "screenX": true, - "screenY": true, - "outerWidth": true, - "outerHeight": true, - "performance": true, - "mozInnerScreenX": true, - "mozInnerScreenY": true, - "devicePixelRatio": true, - "scrollMaxX": true, - "scrollMaxY": true, - "fullScreen": false, - "mozPaintCount": true, - "sidebar": false, - "crypto": true, - "speechSynthesis": true, - "localStorage": true, - "origin": true, - "isSecureContext": false, - "indexedDB": true, - "caches": true, - "sessionStorage": true, - "window": false, - "document": true, - "location": false, - "top": true, - "netscape": true, - "Node": true, - "Document": true, - "Performance": false, - "startProfiling": true, - "stopProfiling": true, - "pauseProfilers": true, - "resumeProfilers": true, - "dumpProfile": true, - "getMaxGCPauseSinceClear": true, - "clearMaxGCPauseAccumulator": true, - "Location": true, - "StyleSheetList": false, - "Selection": false, - "Element": true, - "AnonymousContent": false, - "MutationObserver": true, - "NodeList": true, - "StopIteration": true -}; //************************this part can be tested in the HTML file index.html's script test.js**************************** function full_evaluate(script){ @@ -2028,7 +1107,7 @@ function remove_noscripts(html_doc){ */ function read_metadata(meta_element){ - if(meta_element === undefined){ + if(meta_element === undefined || meta_element === null){ return; } |