Google Chrome developer tools: missing storage tab - google-chrome

For unknown reasons, when I use Google chrome (version 9.0.597.84), the developer tools aren't showing the "Storage" tab (mentioned/illustrated, for example, at http://www.html5rocks.com/tutorials/developertools/part1/#toc-overview-storage and http://webdevlife.com/getting-started-with-localstorage-in-html5/), which I need to examine and modify localStorage. Any idea either what I would do to get this tab or what would be a workaround? I'm aware I can simply dump localStorage and I can write code to modify it, but this will probably be an ongoing concern in my work and I'd really like to have a proper tool.

It is now under the resources tab within the "Storage" tree node item. I submitted a bug report for this:
http://code.google.com/p/html5rocks/issues/detail?id=421
Hope that helped!

I recommend you to use firefox or you can access local storage in application tab on google chrome

Related

Facing issue while trying to run Robot framework script in google chrome browser

I am facing a Chrome popup while trying to run Robot Frame work script:
Microsoft Security Essentials wants to restore your Chrome settings to their
original defaults.
This will reset your homepage, new tab page and
search engine, disable your extensions, and unpin all tabs. It will
also clear other temporary and cached data, such as cookies, content
and site data.
In chrome extension, my developer mode is unchecked, whereas it should be checked.
The Robot Framework automation script is just to open the google Chrome browser and load google search page.
I am using Win 7 Home Basic OS.
I have attached screenshots.
It appears that most Chrome support specialists will ask you to run an anti-malware tool to verify that your system is running normally. These can be found by searching on the popup message.
One Reddit user commented that in his case the problem was resolved by altering the Windows registry:
I finally found a fix for this. There is a setting in the registry
that's causing it.
In the registry it's under
HKEY_CKU\CURRENT_USER\Software\Google\Chrome\TriggeredReset
Delete the TriggeredReset key and then close regedit. Fixed.
This is an API for 3rd party programmers who want to create cleaning
tools. But if the tool isn't written properly, the triggered reset
never gets deleted and we have it always asking.

Completely forget a single domain in Chrome

How do I completely remove all data about a single domain in Google Chrome? (in one action)
Use case:
I am developing an offline web application, and frequently need to 'start fresh' while testing
Chrome's "Clear browsing data" can only be limited to time, not domains
Removing a domain's pages in history does not remove service workers
App Cache doesn't work properly in Chrome's Incognito mode
Ideally, a UI button or keyboard shortcut would be best. Extensions are fine, if they work.
Please don't submit answer unless service workers are also removed (I know there are many solutions for cookies/cache etc).
thanks
Chrome now includes a 'Clear storage' function in the 'Application' tab of dev tools (using v52). Thanks Chrome!

How to share a packed Chrome Extension without publishing?

I have seen other answers here, such as this.
But nowadays, you cannot simply drag an extension to the browser and expect it to work. Google does not allow you to activate it, showing a message "not downloaded from chrome store"
Now, I really don't want to publish anything. It's a personal extension for me and friends! How can I workaround this limitation?
You could publish to testers.
I know you said you didn't want to publish anything but it only shows up to google accounts you have listed at testers.
You really only have two options:
Distribute the crx and have them run in developer mode.
List the extension on the Chrome store.
It sounds like #1 is a problem for you (as it is for most). If you go with option #2, you can list the extension privately, so it isn't listed in the Chrome store.
For context, Google is not doing this to hold people back. Most of the browsers have tightened up these methods to prevent abuse. From Google's perspective, they cannnot differentiate between your friendly use case, and a hacker using an extension to place malware. If it's published through the store, they can scan for malware.

right-click-then-open-with works but simple left-click does not

At some point in the last couple of days a bug seems to have materialised in my app's Google Drive integration, despite me not having changed anything, and usage remaining fairly constant.
When you left click one of the app's documents in Drive a new about:blank tab opens showing the app's icon and the text "Sorry, an error occurred while opening this file. Please try again. [XXXXX]" where [XXXXX] is a short string that seems to be different every time. The create new works fine, and if you use the right-click menu and open with it also works fine.
All of this makes me think that there is a bug in the latest javascript update to Google Drive's main interface.
In terms of debugging, in the apiconsole the app has...
The initiate oauth2 option unchecked
The allow multiple files option unchecked
Mobile browser support checked
24 mime-types, 61 primary extensions, and 1 secondary extension registered
If it is a bug as Claudio has mentioned, I believe Google Drive SDK documentation needs to be updated too, since 'open' action is described only for "Open With" option:
https://developers.google.com/drive/integrate-open
I'm wondering how to trigger the proper action when registred mime-type can be managed by more than one installed application? Is there a way to set the default open action - or the application which created it will be used as the default? What's happen if you reach the application web by typing the url (not from UI Drive UI create action) and save the content on Drive, since you may be already authorized to do it?

How to view or edit localStorage?

I created a Chrome extension and am using localStorage for storing data.
I am accessing localStorage through "background_page".
It works fine but how can I manually view its values? In Firefox you can use Firebug.
Anyone have any suggestions?
It's simple. Just go to the developer tools by pressing F12, then go to the Application tab. In the Storage section expand Local Storage. After that, you'll see all your browser's local storage there.
Open the Developer Tools by pressing F12.
Click on the Application tab and you will see localStorage's content. From there you can add/edit/delete the entries manually.
On OS X the keys are: ⌥ + ⌘ + i
Another combination: Ctrl + Shift + i
In Chrome it looks like this:
You can go to chrome://chrome/extensions and there will be a link to your background page that once you launch you can use the Dev Tools to see the localStorage stuff.
I am using chrome Version 52.0.2743.82 m currently. In this lastest version of chrome as of now, you can see the local storage values by launching "Developer Tools" and then looking into "Application" tab.
Either I don't understand what people here are trying to do, and it's not what I'm doing, and/or the Chrome developer tools have changed, and are broken in this regard.
My extension's content-script stores data like this:
chrome.storage.local.set(packet);
When I view the Application tab of the extension's background page, and expand Storage > Local Storage, I see my extension listed, but clicking on it shows no data.
The only solution I've found is to run this in the background page's console:
chrome.storage.local.get(null, function(data) {console.log(data);})
That's similar to how the extension reads it (except passing null to get all keys instead of a key name to get just the one I want) and it works fine, it's just awkward to type it out every time. It's also weird that there are all these answers here that don't work for me.
I'm using Chrome 73.0.3683.103 (Official Build) (64-bit) on Windows 10. The extension is still unpacked, if that's relevant, but that's the most likely time you'd want to do this, i.e., in development.