java.lang.Object
org.htmlunit.corejs.javascript.SlotMapOwner<org.htmlunit.corejs.javascript.Scriptable>
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.javascript.HtmlUnitScriptable
org.htmlunit.javascript.host.event.Event
org.htmlunit.javascript.host.event.SecurityPolicyViolationEvent
- All Implemented Interfaces:
Serializable,Cloneable,org.htmlunit.corejs.javascript.ConstProperties<org.htmlunit.corejs.javascript.Scriptable>,org.htmlunit.corejs.javascript.debug.DebuggableObject,org.htmlunit.corejs.javascript.PropHolder<org.htmlunit.corejs.javascript.Scriptable>,org.htmlunit.corejs.javascript.Scriptable,org.htmlunit.corejs.javascript.SymbolScriptable
A JavaScript object for
SecurityPolicyViolationEvent.- Author:
- Ahmed Ashour, Ronald Brill
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.corejs.javascript.ScriptableObject.DescriptorInfo, org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator, org.htmlunit.corejs.javascript.ScriptableObject.LambdaGetterFunction, org.htmlunit.corejs.javascript.ScriptableObject.LambdaSetterFunction -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDisposition of enforced policies.static final StringDisposition of report only policies.static final StringThe event type.Fields inherited from class org.htmlunit.javascript.host.event.Event
ALT_MASK, AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE, CONTROL_MASK, KEY_CURRENT_EVENT, META_MASK, NONE, SHIFT_MASK, TYPE_ABORT, TYPE_AFTERPRINT, TYPE_AFTERSCRIPTEXECUTE, TYPE_ANIMATIONCANCEL, TYPE_ANIMATIONEND, TYPE_ANIMATIONITERATION, TYPE_ANIMATIONSTART, TYPE_AUXCLICK, TYPE_BEFORE_UNLOAD, TYPE_BEFORECOPY, TYPE_BEFORECUT, TYPE_BEFOREPASTE, TYPE_BEFOREPRINT, TYPE_BEFORESCRIPTEXECUTE, TYPE_BLUR, TYPE_CANCEL, TYPE_CANPLAY, TYPE_CANPLAYTHROUGH, TYPE_CHANGE, TYPE_CLOSE, TYPE_COPY, TYPE_CUECHANGE, TYPE_CUT, TYPE_DEVICEMOTION, TYPE_DEVICEORIENTATION, TYPE_DEVICEORIENTATIONABSOLUTE, TYPE_DOM_DOCUMENT_LOADED, TYPE_DRAG, TYPE_DRAGEND, TYPE_DRAGENTER, TYPE_DRAGLEAVE, TYPE_DRAGOVER, TYPE_DRAGSTART, TYPE_DROP, TYPE_DURATIONCHANGE, TYPE_EMPTIED, TYPE_ENDED, TYPE_ERROR, TYPE_FOCUS, TYPE_FOCUS_IN, TYPE_FOCUS_OUT, TYPE_GAMEPAD_CONNECTED, TYPE_GAMEPAD_DISCONNECTED, TYPE_GOTPOINTERCAPTURE, TYPE_HASH_CHANGE, TYPE_INPUT, TYPE_INVALID, TYPE_KEY_DOWN, TYPE_KEY_PRESS, TYPE_KEY_UP, TYPE_LANGUAGECHANGE, TYPE_LOAD, TYPE_LOAD_END, TYPE_LOAD_START, TYPE_LOADEDDATA, TYPE_LOADEDMETADATA, TYPE_LOSTPOINTERCAPTURE, TYPE_MESSAGE, TYPE_MOUDEENTER, TYPE_MOUSELEAVE, TYPE_MOUSEWHEEL, TYPE_MOZFULLSCREENCHANGE, TYPE_MOZFULLSCREENERROR, TYPE_OFFLINE, TYPE_ONLINE, TYPE_ONMESSAGEERROR, TYPE_ONTRANSITIONCANCEL, TYPE_ONTRANSITIONEND, TYPE_ONTRANSITIONRUN, TYPE_ONTRANSITIONSTART, TYPE_OPEN, TYPE_PAGEHIDE, TYPE_PAGESHOW, TYPE_PASTE, TYPE_PAUSE, TYPE_PLAY, TYPE_PLAYING, TYPE_POINTERCANCEL, TYPE_POINTERDOWN, TYPE_POINTERENTER, TYPE_POINTERLEAVE, TYPE_POINTERLOCKCHANGE, TYPE_POINTERLOCKERROR, TYPE_POINTERMOVE, TYPE_POINTEROUT, TYPE_POINTEROVER, TYPE_POINTERUP, TYPE_POPSTATE, TYPE_PROGRESS, TYPE_PROPERTY_CHANGE, TYPE_RATECHANGE, TYPE_READY_STATE_CHANGE, TYPE_REJECTIONHANDLED, TYPE_RESET, TYPE_RESIZE, TYPE_SCROLL, TYPE_SCROLLEND, TYPE_SEARCH, TYPE_SEEKED, TYPE_SEEKING, TYPE_SELECT, TYPE_SELECTIONCHANGE, TYPE_SELECTSTART, TYPE_STALLED, TYPE_STORAGE, TYPE_SUBMIT, TYPE_SUSPEND, TYPE_TIMEOUT, TYPE_TIMEUPDATE, TYPE_TOGGLE, TYPE_TRANSITIONEND, TYPE_UNHANDLEDREJECTION, TYPE_UNLOAD, TYPE_VOLUMECHANGE, TYPE_WAITING, TYPE_WEBANIMATIONSTART, TYPE_WEBKITANIMATIONEND, TYPE_WEBKITANIMATIONITERATION, TYPE_WEBKITFULLSCREENCHANGE, TYPE_WEBKITFULLSCREENERROR, TYPE_WEBKITTRANSITIONEND, TYPE_WHEELFields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, LEGACY_CONST, PERMANENT, READONLY, STRICTLY_READONLY, UNINITIALIZED_CONSTFields inherited from class org.htmlunit.corejs.javascript.SlotMapOwner
isSealedFields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor used to build the prototype.SecurityPolicyViolationEvent(DomNode target) Creates a new securitypolicyviolation event (bubbling, not cancelable) for the given target. -
Method Summary
Modifier and TypeMethodDescriptionReturns the blockedURI property.intReturns the columnNumber property.Returns the disposition property.Returns the documentURI property.Returns the effectiveDirective property.intReturns the lineNumber property.Returns the originalPolicy property.Returns the referrer property.Returns the sample property.Returns the sourceFile property.intReturns the statusCode property.Returns the violatedDirective property.booleanReturns thecomposedproperty.voidjsConstructor(String type, org.htmlunit.corejs.javascript.ScriptableObject details) Creates an instance of this event.voidsetBlockedURI(String blockedURI) Sets the blockedURI property.voidsetColumnNumber(int columnNumber) Sets the columnNumber property.voidsetDisposition(String disposition) Sets the disposition property.voidsetDocumentURI(String documentURI) Sets the documentURI property.voidsetEffectiveDirective(String effectiveDirective) Sets the effectiveDirective property.voidsetLineNumber(int lineNumber) Sets the lineNumber property.voidsetOriginalPolicy(String originalPolicy) Sets the originalPolicy property.voidsetReferrer(String referrer) Sets the referrer property.voidSets the sample property.voidsetSourceFile(String sourceFile) Sets the sourceFile property.voidsetStatusCode(int statusCode) Sets the statusCode property.voidsetViolatedDirective(String violatedDirective) Sets the violatedDirective property.Methods inherited from class org.htmlunit.javascript.host.event.Event
createPropertyChangeEvent, endFire, eventCreated, getCurrentTarget, getEventPhase, getKeyCode, getPropertyName, getReturnValue, getSrcElement, getTarget, getTimeStamp, getType, initEvent, isAborted, isAltKey, isBubbles, isCancelable, isCancelBubble, isCtrlKey, isDefaultPrevented, isImmediatePropagationStopped, isMissingOrUndefined, isNullMissingOrUndefined, isPropagationStopped, isShiftKey, preventDefault, processLabelAfterBubbling, setAltKey, setBubbles, setCancelable, setCancelBubble, setCtrlKey, setCurrentTarget, setEventPhase, setEventType, setKeyCode, setReturnValue, setShiftKey, setSrcElement, setTarget, setType, startFire, stopImmediatePropagation, stopPropagation, toStringMethods inherited from class org.htmlunit.javascript.HtmlUnitScriptable
clone, createDOMException, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getIds, getIndexedPropertyCount, getOwnPropertyDescriptor, getPrototype, getScriptableFor, getWindow, getWindow, getWindowOrWorkerGlobalScope, getWithPreemption, has, hasInstance, isIndexedPropertyWritable, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setupPromise, setupRejectedPromiseMethods inherited from class org.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkNotSealed, checkPropertyChangeForSlot, checkPropertyChangeForSlot, checkPropertyDefinition, checkPropertyDefinition, checkSlotRemoval, defineBuiltinProperty, defineBuiltinProperty, defineBuiltInProperty, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureScriptableObjectButNotSymbol, ensureSymbolScriptable, ensureType, get, get, getAllIds, getAncestor, getArrayPrototype, getClassPrototype, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getObjectPrototype, getParentScope, getProperty, getProperty, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSuperProperty, getSuperProperty, getSuperProperty, getThis, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, hasProperty, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGenericDescriptor, isGetterOrSetter, isGetterOrSetter, isTrue, preventExtensions, put, put, putConst, putConstProperty, putConstProperty, putOwnProperty, putOwnProperty, putOwnProperty, putProperty, putProperty, putProperty, putProperty, putSuperProperty, putSuperProperty, putSuperProperty, querySlot, redefineProperty, redefineProperty, sameValue, sealObject, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizeMethods inherited from class org.htmlunit.corejs.javascript.SlotMapOwner
associateValue, checkNotSealed, copyAssociatedValue, createSlotMap, createSlotMap, defineProperty, defineProperty, get, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getIds, has, has, isSealed, readMaps, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, writeMapsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.htmlunit.corejs.javascript.Scriptable
get, getIds, has, hasMethods inherited from interface org.htmlunit.corejs.javascript.SymbolScriptable
get, has
-
Field Details
-
TYPE_SECURITY_POLICY_VIOLATION
The event type.- See Also:
-
DISPOSITION_ENFORCE
Disposition of enforced policies.- See Also:
-
DISPOSITION_REPORT
Disposition of report only policies.- See Also:
-
-
Constructor Details
-
SecurityPolicyViolationEvent
public SecurityPolicyViolationEvent()Default constructor used to build the prototype. -
SecurityPolicyViolationEvent
Creates a new securitypolicyviolation event (bubbling, not cancelable) for the given target.- Parameters:
target- the DOM node the event is fired at
-
-
Method Details
-
jsConstructor
Creates an instance of this event.- Overrides:
jsConstructorin classEvent- Parameters:
type- the event typedetails- the event details (optional)
-
isComposed
public boolean isComposed()Returns thecomposedproperty.- Overrides:
isComposedin classEvent- Returns:
falseas the default implementation
-
getDocumentURI
Returns the documentURI property.- Returns:
- the documentURI
-
setDocumentURI
Sets the documentURI property.- Parameters:
documentURI- the new value
-
getReferrer
Returns the referrer property.- Returns:
- the referrer
-
setReferrer
Sets the referrer property.- Parameters:
referrer- the new value
-
getBlockedURI
Returns the blockedURI property.- Returns:
- the blockedURI
-
setBlockedURI
Sets the blockedURI property.- Parameters:
blockedURI- the new value
-
getEffectiveDirective
Returns the effectiveDirective property.- Returns:
- the effectiveDirective
-
setEffectiveDirective
Sets the effectiveDirective property.- Parameters:
effectiveDirective- the new value
-
getViolatedDirective
Returns the violatedDirective property.- Returns:
- the violatedDirective
-
setViolatedDirective
Sets the violatedDirective property.- Parameters:
violatedDirective- the new value
-
getOriginalPolicy
Returns the originalPolicy property.- Returns:
- the originalPolicy
-
setOriginalPolicy
Sets the originalPolicy property.- Parameters:
originalPolicy- the new value
-
getSourceFile
Returns the sourceFile property.- Returns:
- the sourceFile
-
setSourceFile
Sets the sourceFile property.- Parameters:
sourceFile- the new value
-
getSample
Returns the sample property.- Returns:
- the sample
-
setSample
Sets the sample property.- Parameters:
sample- the new value
-
getDisposition
Returns the disposition property.- Returns:
- the disposition
-
setDisposition
Sets the disposition property.- Parameters:
disposition- the new value
-
getStatusCode
public int getStatusCode()Returns the statusCode property.- Returns:
- the statusCode
-
setStatusCode
public void setStatusCode(int statusCode) Sets the statusCode property.- Parameters:
statusCode- the new value
-
getLineNumber
public int getLineNumber()Returns the lineNumber property.- Returns:
- the lineNumber
-
setLineNumber
public void setLineNumber(int lineNumber) Sets the lineNumber property.- Parameters:
lineNumber- the new value
-
getColumnNumber
public int getColumnNumber()Returns the columnNumber property.- Returns:
- the columnNumber
-
setColumnNumber
public void setColumnNumber(int columnNumber) Sets the columnNumber property.- Parameters:
columnNumber- the new value
-