Bug 183117 - Web Inspector: Debugging does not working for Extension
Summary: Web Inspector: Debugging does not working for Extension
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: Safari 11
Hardware: Mac macOS 10.13
: P2 Critical
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-25 21:55 PST by Nitin
Modified: 2018-02-25 21:55 PST (History)
1 user (show)

See Also:


Attachments
uBlock Extension Code (4.74 MB, application/x-zip-compressed)
2018-02-25 21:55 PST, Nitin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nitin 2018-02-25 21:55:56 PST
Created attachment 334591 [details]
uBlock Extension Code

Hi,

I am trying to debug code of one of popular extension uBlock. I have put breakpoint but it is not working. I guess It is not working when there is message passing between content script and background in extension. 

Steps to replicate this issue.

1. Find attached uBlock Extension code  
2. Load uBlock extension in Safari Browser extension builder
3. In extension builder screen, click on inspect Global Page button under Global Page Section
4. Open up any website in safari browser
5. In web inspector find file with name uBlock.js
6. Put a breakpoint on line no 291.
7. Find uBlock icon in safari browser toolbar and click on that.
8. Find element picker icon in the popup and click on that.
9. Now, break-point should be activated but not happening.

Please let me know if you need more detail.