Bug 147547

Summary: Web Inspector shows elements that are blocked by Content Blocker (iOS 9)
Product: WebKit Reporter: sal cangleoso <salcan>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: iPhone / iPad   
OS: OS X 10.3   
URL: all

Description sal cangleoso 2015-08-02 15:08:41 PDT
Content Blocker extension is blocking elements, the console confirms this with messages like:

"Content blocker prevented frame displaying http://xxxxxxxx/ from loading a resource from http://tags.bkrtx.com/js/bk-coretag.js"

but then I go into web inspector (Safari > Develop > Simulator > ....) and see:

<script type="text/javascript" src="http://tags.bkrtx.com/js/bk-coretag.js"></script>

I've done tests on some scripts and can confirm that they are not running, but they are appearing in web inspector. 

Is it just that the "view source" is being generated before the blocking action is taking place? Or is this a bug? (Or is this user error??)
Comment 1 sal cangleoso 2015-08-02 15:13:52 PDT
This is iOS 9 + xcode 7 + iPhone Simulator on OSX 10.10.3 + Safari 8.0.6. 

Could certainly be due to pre-release version of iOS and xcode. 

Thanks
Comment 2 Timothy Hatcher 2015-08-04 14:52:12 PDT
The load is blocked, not the script element. So the script element should be visible still.