browser Errors
20 error patterns
Browser Permission Not Allowed
NotAllowedError.*Permission.*denied|NotAllowedError.*user gesture
- •Request permission in response to user gesture (click)
- •Check Permissions API status before requesting
LocalStorage Quota Exceeded
QuotaExceededError.*localStorage|exceeded the quota
- •Clear unused localStorage entries
- •Implement LRU eviction strategy
Cross-Origin Security Error
SecurityError.*cross-origin|Blocked a frame with origin
- •Configure CORS headers on the server
- •Use postMessage for cross-origin frame communication
Browser Operation Aborted
AbortError.*The operation was aborted
- •Check if AbortController signal was triggered
- •Handle abort gracefully in catch block
DOM User Activation Required
DOMException.*not allowed.*user activation
- •Trigger action from a user event handler
- •Use click event instead of programmatic trigger
Service Worker Registration Failed
ServiceWorker registration failed|Failed to register a ServiceWorker
- •Ensure SW file is served from same origin
- •Check SW file has valid JavaScript syntax
Browser API Not Supported
NotSupportedError.*The operation is not supported
- •Check feature availability with feature detection
- •Provide polyfill or fallback implementation
DOM Invalid State Error
InvalidStateError.*object is in an invalid state
- •Check element readyState before operation
- •Ensure DOM element is attached to document
DOM Node Not Found
NotFoundError.*node was not found|removeChild.*not a child
- •Verify element exists before removing
- •Check parent-child relationship is correct
Structured Clone Error
DataCloneError.*could not be cloned
- •Remove functions and DOM elements from data
- •Serialize object with JSON before posting
Browser Fetch Network Error
TypeError.*Failed to fetch|NetworkError.*request failed
- •Check network connectivity and CORS configuration
- •Verify URL is correct and server is running
Media Stream Not Readable
NotReadableError.*Could not read.*source
- •Check if camera/mic is being used by another app
- •Verify media constraints are supported by device
IndexedDB Quota Exceeded
QuotaExceededError.*IndexedDB
- •Request persistent storage with navigator.storage.persist()
- •Implement data cleanup for old entries
LocalStorage Access Denied
SecurityError.*localStorage.*access.*denied
- •Check if third-party cookies are blocked
- •Use Storage Access API in embedded contexts
IndexedDB Constraint Error
ConstraintError.*IndexedDB.*constraint
- •Check for duplicate key before inserting
- •Use put() instead of add() to upsert
Browser Operation Timeout
TimeoutError.*timed out|The operation timed out
- •Increase timeout value for the operation
- •Implement retry logic with backoff
DOM Hierarchy Error
HierarchyRequestError.*node.*insert
- •Verify insertion point is valid for node type
- •Check element is not being inserted into itself
Browser URI Encoding Error
EncodingError.*URI malformed|URIError
- •Use encodeURIComponent for query parameters
- •Validate URI string before decoding
Media Constraints Error
OverconstrainedError.*Constraints could not be satisfied
- •Relax media constraints (lower resolution)
- •Check available devices with enumerateDevices()
Browser Invalid Access Error
InvalidAccessError.*object does not support
- •Check API compatibility with current context
- •Verify object has required interface