google-chrome-devtools

Why set-cookie headers are ignored?

依然范特西╮ 提交于 2019-12-23 05:38:09
问题 When authenticating, the servers response with a cookie. On localhost (both server and client), no problem, the cookie is received and stored. But when I use an address (pointing to localhost, by using /etc/hosts) instead of localhost for the client, then the cookie is not set. I tried setting the domain field in cookie (with and without appending a dot): tokenOptions = {expires: false, httpOnly: true, domain: ".lch.lch.com"}; But still, even if in firebug I can see the cookie in the server

Can node-inspector debug an app without pausing it?

被刻印的时光 ゝ 提交于 2019-12-23 04:31:45
问题 Node-inspector is a fantastic tool for debugging server-side code just as one would use the Chrome developer tools. I'm using it to debug a Meteor server, as in https://stackoverflow.com/a/19438774/586086. One thing that would be even better would be to be able to use the debugging console to inspect objects while the app is running, without pausing it , as allowed by the Chrome developer tools. Currently, if one tries to do this without pausing, the following type of error is displayed: It

Can node-inspector debug an app without pausing it?

喜夏-厌秋 提交于 2019-12-23 04:31:09
问题 Node-inspector is a fantastic tool for debugging server-side code just as one would use the Chrome developer tools. I'm using it to debug a Meteor server, as in https://stackoverflow.com/a/19438774/586086. One thing that would be even better would be to be able to use the debugging console to inspect objects while the app is running, without pausing it , as allowed by the Chrome developer tools. Currently, if one tries to do this without pausing, the following type of error is displayed: It

Why isn't nodes and listeners being cleaned up properly and in a consistent way?

♀尐吖头ヾ 提交于 2019-12-23 04:30:07
问题 I'm investigating the cause of a memory leak having to do with the nodes count, but I'm just getting confused when I look at what angular is doing, because the results are not consistent enough to draw a clear line of what is happening. I've created a really simple app, it has 1 controller and 2 views. Each view use the same controller: core.controller('CoreCtrl', [function() { var core = this; core.helloWorld = function() { console.log('hello world'); }; }]); core.config(['$routeProvider',

How to find an event listener in Chrome Dev Tools?

雨燕双飞 提交于 2019-12-23 02:25:22
问题 I know that hovering over an element causes another element to get a new class added to it. How do I check what and where this eventListener is on Chrome? The Event Listeners tab in Chrome just list some listeners on the document instead of any specific element. 回答1: To view event listeners for a single element you have selected, make sure you uncheck the 'Ancestors' box in the event listeners tab. If checked, you will see all event listeners for the ancestors of that element - which may be

How to filter by both text and property in Chrome DevTool's network panel?

久未见 提交于 2019-12-23 02:24:05
问题 I want to filter Chrome DevTool's network panel by the method property and text in the URL. For example, if I am searching for the text chromequestion in the URL and only HTTP GET requests (ignore PUT, POST, DELETE, etc). I am able to filter by text or by method: I am not able to combine the filter to search by both text and method: I read the documentation at https://developers.google.com/web/tools/chrome-devtools/network-performance/reference#filters and I am able to filter by multiple

how to customize rightclick on chrome devtools elements panel

杀马特。学长 韩版系。学妹 提交于 2019-12-22 18:56:08
问题 devtools elements panel right click look at the image above. right clicking on any node displays menu of options like 'add attribute' and 'edit attribute' etc... I want to be able to extend the right click menu to add my custom events. for example, I need to get the xpath of the node. I know I can extend the right click on actual page instead of extending right click on the source of the page. https://developer.chrome.com/extensions/devtools_panels#type-ElementsPanel API's only supports

Javascript - Reading binary data when using chrome.devtools.network.onRequestFinished

人走茶凉 提交于 2019-12-22 18:50:12
问题 So I am building a Chrome DevTools extension that inspects binary traffic on particular website. Requests on site are made with responseType = "blob" . Now when I get request with chrome.devtools.network.onRequestFinished and then access its content with request.getContent() , I get string as response and not blob . This string looks like some kind of binary string but not sure how it is encoded. I tried transforming it to base64 string with a lot of different transforms (Utf-8 to latin, Utf

Chrome extensions with jQuery

亡梦爱人 提交于 2019-12-22 18:14:04
问题 I downloaded http://code.google.com/chrome/extensions/samples.html#ea2894c41cb8e80a4433a3e6c5772dadce9be90d. I would like make it it jQuery, but if i do: <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script> <script> $("div").css('background-color', 'black'); $('.click').click(function(){ chrome.tabs.executeScript(null, {code:"document.body.style.backgroundColor='" + $(this).attr('id') + "'"}); window.close(); }) </script> <div class="click" id="red">red</div>

YouTube player stops after few seconds on mobile

北城余情 提交于 2019-12-22 14:58:17
问题 I have a YouTube video embedded in my mobile webpage. On desktop, it plays properly. However, on mobile phone (emulated on Android), it stops after some time throwing an error. When I debugged in console, following errors are generated: Failed to load resource: net::ERR_FAILED XMLHttpRequest cannot load http://r13---sn-nx57yn7s.googlevideo.com/videoplayback?source=youtube&ipbit…s_redirect=yes&mm=30&ms=nxu&mt=1410325650&mv=u&range=0-65535&keepalive=yes . No 'Access-Control-Allow-Origin' header