Closed Bug 1277802 Opened 5 years ago Closed 2 years ago
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0 Build ID: 20160502172042 Steps to reproduce: I opened a file containing swagger-ui. Actual results: The included script swagger-ui.js was invisible both in inspector and Firebug. Expected results: The included script swagger-ui.js should have been visible
OS: Unspecified → Windows 10
Hardware: Unspecified → x86_64
Hi, I also tried to reproduce the bug in Chrome and IE. The js file was visible in Chrome inspector. With IE when I opened the inspector the first time, the window crashed. I retried one more time with IE and the js file was visible in the inspector. Best regards, Laurent Lyaudet
If you refresh the page when the Debugger is open, the JS sources appear. I think there is an issue about caching or delay, maybe due to the size of the JS lib linked.
Hi Loic, I tried to refresh the page with the debugger open but the file swagger-ui.js still doesn't show. Best regards, Laurent Lyaudet
Even with a forced refresh? (ctrl+f5)
Hi Loic, Even with a forced refresh it doesn't appear in Debugger tab. However it appears in network tab. Best regards, Laurent Lyaudet
My first thought was that swagger.js does not define any global functions. In that case all scripts introduced by this source file can be garbage collected before the debugger is opened. The debugger relies on those scripts to find the list of sources, which would explain why it doesn't show up. However, on closer examination, it looks like swagger.js defines plenty of global functions, so that explanation seems out. We should take a closer look at this when we have the time.
Priority: -- → P3
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.