localStorage Isn't Accessible in Chrome's --single-process Mode - google-chrome

So I'm trying* to use Chromium's --single-process flag (yes, I know it's the most dangerous thing in the world, etc., no need for a lecture, thanks!) with localStorage, and for some reason, it looks like whenever Chromiums is started in single-process mode, localStorage no longer has any data accessible from it.
What's the reason behind this? And is there any way to get around it?
(If that means recompiling Chromium, let me know what I need to modify where.)

I have tried to search for some results about your issue, so I`v entered the irc (on freenode, #chromium channel) and because rsleevi don't have account I just copied our conversation:
Me:
hey, does anyone knows about Chromium's "--single-process" and localstorage bug ?
rsleevi:
<+rsleevi> That's a bit of a broad
question. But the easy answer is
"--single-process" isn't a "supported"
flag - it truly is intended for
debugging purposes only by devs. If
you're using/relying on it for general
use, then theres your problem :)
<+rsleevi> It's reasonably expected
that a number of things won't work or
won't work right in --single-process
Me:
yes I understand that is for debugging
pupposes, but I just want to know why
localStorage doesn't work well while
other stuff does :)
rsleevi:
<+rsleevi> Well, the answer is because
--single-process isn't "supported" :-) [13:58:32] <+rsleevi> The design of
new features always designs for the
multi-process scenario. If it happens
to work in --single-process,
serendipity, if not, c'est le vie
Me:
OK I understand. Just thought maybe
there is some "offical why"
rsleevi:
<+rsleevi> Generally, no, there's not
some decision "We don't want to
support X in --single-process"... It's
"X doesn't happen to work? Oh well"
<+rsleevi> If you're using
--single-process, realize that (just like the info bar says) you're running
without all the nice security
features, and your
configuration/features are expected to
regularly break or be unusable. I
really can't stress the
"not-supported" aspect enough, in the
hope that maybe I can sway you :-)
Me:
I don't know if you are a memeber on
stackoverflow, but I`m trying to help
this mate here:
localStorage Isn't Accessible in Chrome's --single-process Mode
, maybe you can answer his question (
if you are a member )
Don't want to take your copyrights :)
rsleevi:
[14:09:57] <+rsleevi> Heh. I don't
have an account, sounds like your mate
doesn't want my lecture, but the
answer is just like the info bar says
"unsupported" :-) marsbear's second
answer is right on track - it's just a
development aide [14:10:08] <+rsleevi>
that is, Chromium development, not
general webdev
I know that there isn't a fully answer here, but maybe it will help you.

Related

Is there any way to see the whole web page in a small panel like code glance(intellij extension)?

I think code glance make productivity greater. But I cannot find any kind of chrome or other browser's extension like code glance till now.
If it exists, can you share it?
If not, why doesn't it exist?
Or are there any reasons or restrictions for implementation?
I think some kind of responsive web architecture would be obstacle. Please give me your knowledge or insight about it.

Extension like Picture-in-Picture (by Google) but for any part of the browser and not just videos?

Hiyah!
I'm sorry for this strange post, just need help articulating my thoughts into something practical. I really could use an extension to basically select any part of the browser window and use it as a floating window (always on top of other windows).
It'd be awesome if something like this existed and I'd love a name in that case! If not, maybe any of you know of similar open source projects that I could take a look at? I'd try to write my own extension if there's nothing like that, so basically could use any keywords to simplify my research. I've been learning full stack web dev for a few months now, so I think it's in realm of possibilities for me.
Thanks for your time!

Starting off with Mozilla development/contribution to Fennec

This is the first time I am trying to contribute to Mozilla. I went through several articles and documentation/resources to get a hang of what could be the best first steps to get started. I started off from this page http://whatcanidoformozilla.org1 and chose to start off with Java.
On initial tinkering I was taken to https://wiki.mozilla.org/Mobile/Get_Involved and eventually https://wiki.mozilla.org/Mobile/Fennec/Android/Suggested_workflow resource suggested that the best way to get started with it would be to pick up some simple bug and propose a patch for it.
So then I went to http://www.joshmatthews.net/bugsahoy/?java=1&simple=1 and this specific bug drew my attention. The description of the bug mentioned this :
There are some methods that we share (or can share) across our DB
implementations, like appending PARAM_SHOW_DELETED, PARAM_LIMIT, or
PARAM_PROFILE.
These are currently spread across LocalBrowserDB, TabsAccessor,
URLMetadata, and so on. It'd be nice to clean these up.
Question 1. Now how do I get some more context on what exactly is the bug and what is required to be done ?
As of now there seems to be 2 patches already submitted from what I understood (and please correct if my understanding is wrong here). So to get some context about the bug I went ahead and opened up the first patch submitted here.
It gave me some idea as to at least where exactly is the code itself that needs to be fixed. And I found it here
Question 2. Am I on the right track on how to figure out the code that needs to be fixed ?
Question 3. Even after reaching the DBUtils.java file I could not find any documentation about what the class basically does, or where does it fit into the whole picture. Could someone please help me with this, as to how do I figure out what a class is supposed to be doing etc. or at least some documentation around it?
You're on the right path. Basically, the What Can I Do For Mozilla website is a quick and easy way to let you discover projects you might be interested in, so it's the first gateway to the coding contributions.
That said, you did good in picking a bug to start off. However, as you saw the bug was already being worked on by somebody else (marked as Assigned). Your best bet is to find some new "good first bug" to work on. This might be a complicated task, as Bug's Ahoy shows only a few not owned good first bugs.
You should try to get in touch with the Fennec team, either via email or IRC (the latter for quicker responses).
Now, to answer your questions, in a more general way
Question 1. Now how do I get some more context on what exactly is the
bug and what is required to be done ?
Usually, this should be described in the first comment in the bug, on Bugzilla. If that's not the case, feel free to drop a message there and ask for more directions. You can also flag the reporter or the mentor of the bug using the needinfo functionality, as they are usually better shown.
As you can see, somebody asked for more info in comment 1 and some new directions were given.
In general, you won't find a patch with code on the bug itself, but you might find links to files and more precise directions on what to change and how. If not, again, feel free to ping the reporter and/or mentor.
Question 2. Am I on the right track on how to figure out the code that
needs to be fixed ?
You're on the right path. In general, if there are no links to files or DXR on the bug, but some code is mentioned, you can look it up using DXR, as you did.
Question 3. Even after reaching the DBUtils.java file I could not find
any documentation about what the class basically does, or where does
it fit into the whole picture. Could someone please help me with this,
as to how do I figure out what a class is supposed to be doing etc. or
at least some documentation around it?
What I usually do when navigating the Firefox code and need some more background on a not so well documented class, is browse the change log for that file, clicking on the Log button in the top-right panel on DXR (when displaying the file). It will show you a list of bugs that affected the file. You can even trace back the original file that implemented it, to get more context.
On the other hand, if you're only interested to the history of a single line of code within a file, then the blame tool is your friend. It tells you who last touched the line, the changeset and the related bug number. That is also accessible from where you can find the Log, here.
In the case of DBUtils.java, however, it looks like the class just holds some utility functions for database access.
To see how something is being used within the Firefox codebase, you can still use DXR. Here's a sample search for the DBUtils object.

Chrome: Automatically detect language for spell checking

I use English and German interchangeably when I'm on the net with Chrome.
I really like the spell-checking functionality but find it a bit annoying that I always have to switch manually between the languages for spell checking.
Does anyone know a way how to automate that? Maybe there's a plugin?
Cheers!
This is being tracked in issue https://code.google.com/p/chromium/issues/detail?id=5102. You should "star" the issue to be notified of progress.
There is also this one:
https://code.google.com/p/chromium/issues/detail?id=1834
And this design document:
http://www.chromium.org/developers/design-documents/advancedspellchecker
The design looks a bit overkill, I hope they implement something simpler sooner.

technical comparison between the differences in html of jquery mobile and webapp-net

I am trying to build an application for smart phone devices. I have searched a lot over the web and I found some good toolkits, These are the toolkits I am considering to work with. Jquery Mobile and webapp-net.
The only problem is I need to kknow about the technical differences in html of these two toolkits. so if you please help me.
BTW this is my second account here, with my previous account i cant not ask any questions here, I want to know what are the reasons to close someones account, I am only here because I need help, and I dont want to waste anyones time. I come here to ask a question and then, some one comes and just does something to my account and I dont even know why they do that. So what is the point of this website if you close some ones account???
When consider Jquery Mobile and webapp-net, JM is elder and is coming from rich and stable family, that never ment webapp is poor, but you have much recourses and help from the net if u start ur work with JM.