Bug 156991 - Uncaught Exception: SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent.
Summary: Uncaught Exception: SecurityError: DOM Exception 18: An attempt was made to b...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-04-25 12:47 PDT by Zach Li
Modified: 2016-04-26 19:14 PDT (History)
9 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (3.29 KB, patch)
2016-04-26 17:38 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zach Li 2016-04-25 12:47:04 PDT
-------
Auto-generated details:

Inspected URL:        (unknown)
Loading completed:    false
Frontend User Agent:  Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/602.1.30+ (KHTML, like Gecko)
Uncaught exceptions:
 - SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent. (at Setting.js:61:44)
 - ReferenceError: Can't find variable: InspectorBackend (at InspectorBackendCommands.js:32:17)
 - ReferenceError: Can't find variable: InspectorBackend (at Main.js:59:25)
-------

* STEPS TO REPRODUCE
1. What were you doing? Include setup or other preparations to reproduce the exception.
2. Include explicit, accurate, and minimal steps taken. Do not include extraneous or irrelevant steps.

* NOTES
Document any additional information that might be useful in resolving the problem, such as screen shots or other included attachments.
Comment 1 Zach Li 2016-04-25 12:51:52 PDT
(In reply to comment #0)
> -------
> Auto-generated details:
> 
> Inspected URL:        (unknown)
> Loading completed:    false
> Frontend User Agent:  Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5)
> AppleWebKit/602.1.30+ (KHTML, like Gecko)
> Uncaught exceptions:
>  - SecurityError: DOM Exception 18: An attempt was made to break through the
> security policy of the user agent. (at Setting.js:61:44)
>  - ReferenceError: Can't find variable: InspectorBackend (at
> InspectorBackendCommands.js:32:17)
>  - ReferenceError: Can't find variable: InspectorBackend (at Main.js:59:25)
> -------
> 
> * STEPS TO REPRODUCE
> 1. What were you doing? Include setup or other preparations to reproduce the
> exception.

I was trying to inspect Safari Extensions Preferences.

I installed AnySearch extension.

> 2. Include explicit, accurate, and minimal steps taken. Do not include
> extraneous or irrelevant steps.
> 
> * NOTES
> Document any additional information that might be useful in resolving the
> problem, such as screen shots or other included attachments.
Comment 2 Radar WebKit Bug Importer 2016-04-25 12:53:32 PDT
<rdar://problem/25913475>
Comment 3 Joseph Pecoraro 2016-04-25 14:08:58 PDT
In Safari's Privacy settings what is your "Cookies and website data setting"? If it is blocking this is a known bug (and a duplicate of others). If it is not, then it is a new issue.
Comment 4 Zach Li 2016-04-25 14:43:23 PDT
(In reply to comment #3)
> In Safari's Privacy settings what is your "Cookies and website data
> setting"? If it is blocking this is a known bug (and a duplicate of others).
> If it is not, then it is a new issue.

"Allow from websites I visit"
Comment 5 Timothy Hatcher 2016-04-26 10:52:28 PDT

*** This bug has been marked as a duplicate of bug 154448 ***
Comment 6 Zach Li 2016-04-26 11:24:20 PDT
Hi Timothy,

Why did you mark this bug as a duplicate of bug 154448?

In my previous reply, my Cookies and website data setting is "Allow from websites I visit". Also, I tried changing it to "Always allow", still encountering the same problem.
Comment 7 Joseph Pecoraro 2016-04-26 17:38:45 PDT
Created attachment 277427 [details]
[PATCH] Proposed Fix
Comment 8 WebKit Commit Bot 2016-04-26 19:14:08 PDT
Comment on attachment 277427 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 277427

Committed r200119: <http://trac.webkit.org/changeset/200119>
Comment 9 WebKit Commit Bot 2016-04-26 19:14:11 PDT
All reviewed patches have been landed.  Closing bug.