Re: Disabling the startup cache

2015-06-23 Thread Nicolas B. Pierron

On 06/21/2015 05:38 AM, Nicholas Nethercote wrote:

On Sat, Jun 20, 2015 at 1:36 PM, Aaron Klotz  wrote:


I did some measurements last year at the 2014 JS workweek and it turns out
that the cost of converting the omnijar's JS source to jschars during
parsing is equivalent to the benefits we gain from StartupCache. Assuming
that nothing has changed in SM with respect to the time required to do the
conversion, if we eliminate that conversion step, we can eliminate
XDR-encoded JS from the StartupCache.


Would that mean XDR encoding could be removed altogether? If so, I
will gleefully volunteer to do the removal :)


No because, we will probably want to do that for cold start-up of web-pages 
& application, and I do not expect website/app developers to encode anything 
in UTF-16.


Also, note that the start-up cache that we currently have does not use a 
sparse-bytecode cache, which means that we could potentially optimize it by 
only storing functions which are used during the start-up time of the 
browser. (making this cache smaller, on B2G, only 33% of the function were 
executed during the start-up)


--
Nicolas B. Pierron
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: [feature] open certain domains into a private window

2015-06-23 Thread Aaron Klotz
I would like to see this as an addition to tab queues: having an option in
the toast to choose to open the link in a private tab.
On Jun 23, 2015 8:58 PM, "Andreas Tolfsen"  wrote:

> On 23 Jun 2015, at 20:24, Karl Dubost  wrote:
> > Le 23 juin 2015 à 19:16, Eric Shepherd  a écrit :
> >> I thought we had an "open in new private window" option when right
> clicking links. Not a total solution but helps.
> >
> > My "I'm reading an email with a link to Google Doc" was assuming an
> email client (not webmail), could be IRC, or anything else outside of the
> browser.
>
> Is it an option to register two browser handlers in the operating system
> for Firefox?  One for regular Firefox, and one for Firefox in private mode?
>
> Nevertheless I can’t help but feel that the plumbing of links by
> pattern/recognition is something which ideally should be handled at the
> program- or OS level, and that a specific set of patterns in Firefox would
> just be a way of mitigating bad design choices on behalf of the OS.
>
> ___
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: [feature] open certain domains into a private window

2015-06-23 Thread Andreas Tolfsen
On 23 Jun 2015, at 20:24, Karl Dubost  wrote:
> Le 23 juin 2015 à 19:16, Eric Shepherd  a écrit :
>> I thought we had an "open in new private window" option when right clicking 
>> links. Not a total solution but helps.
> 
> My "I'm reading an email with a link to Google Doc" was assuming an email 
> client (not webmail), could be IRC, or anything else outside of the browser.

Is it an option to register two browser handlers in the operating system for 
Firefox?  One for regular Firefox, and one for Firefox in private mode?

Nevertheless I can’t help but feel that the plumbing of links by 
pattern/recognition is something which ideally should be handled at the 
program- or OS level, and that a specific set of patterns in Firefox would just 
be a way of mitigating bad design choices on behalf of the OS.

___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: [feature] open certain domains into a private window

2015-06-23 Thread Karl Dubost
Eric,

Le 23 juin 2015 à 19:16, Eric Shepherd  a écrit :
> I thought we had an "open in new private window" option when right clicking 
> links. Not a total solution but helps.

When you are in the browser already. :)

My "I'm reading an email with a link to Google Doc" was assuming an email 
client (not webmail), could be IRC, or anything else outside of the browser.


-- 
Karl Dubost, Mozilla
http://www.la-grange.net/karl/moz

___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: [feature] open certain domains into a private window

2015-06-23 Thread Eric Shepherd
I thought we had an "open in new private window" option when right clicking 
links. Not a total solution but helps.

Eric Shepherd
Sent from my iPhone

> On Jun 23, 2015, at 6:00 PM, Karl Dubost  wrote:
> 
> Margaret,
> Let's hope it's the appropriate list (or maybe I should just open a bug about 
> it).
> 
> For privacy reasons, I would love to have certain domain names (and/or links) 
> opened in specific silos. 
> 
> Use case:
> I'm reading an email with a link to Google Doc.
> As a user I want all Google Docs links opened automatically in a private 
> window. I can save this preference in a list of domain names where I would 
> love the same behavior. 
> 
> 
> Currently:
> 1. I need to copy the link
> 2. open a new private window
> 3. paste the link
> 
> 
> I guess in the consequences for the platform, the link needs to be caught 
> very early on before any HTTP requests are done. 
> 
> PS: An additional feature, A private window with privileged access to certain 
> parameters such as login/password which are saved from session to session but 
> only for this specific domain. 
> 
> -- 
> Karl Dubost, Mozilla
> http://www.la-grange.net/karl/moz
> 
> ___
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


[feature] open certain domains into a private window

2015-06-23 Thread Karl Dubost
Margaret,
Let's hope it's the appropriate list (or maybe I should just open a bug about 
it).

For privacy reasons, I would love to have certain domain names (and/or links) 
opened in specific silos. 

Use case:
I'm reading an email with a link to Google Doc.
As a user I want all Google Docs links opened automatically in a private 
window. I can save this preference in a list of domain names where I would love 
the same behavior. 


Currently:
1. I need to copy the link
2. open a new private window
3. paste the link


I guess in the consequences for the platform, the link needs to be caught very 
early on before any HTTP requests are done. 

PS: An additional feature, A private window with privileged access to certain 
parameters such as login/password which are saved from session to session but 
only for this specific domain. 

-- 
Karl Dubost, Mozilla
http://www.la-grange.net/karl/moz

___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


How to retrieve callstack for JavaScript strict warning

2015-06-23 Thread Yonggang Luo
I was running xulrunner or thunderbird. and the warning appeared in consoe

```

JavaScript strict warning: , line 0: TypeError: "Services" is read-only
JavaScript strict warning: , line 0: TypeError: "Services" is read-only
JavaScript strict warning: resource://gre/modules/GMPUtils.jsm, line
92: ReferenceError: reference to undefined property this.KEY_LOG_BASE
[info] Injecting starting
[info] The createChromeWindow uri is:null,app://app/test/xul/441414-richtree.xul
[info] Injecting starting
[info] Injecting starting
[info] Inject finished for URI:app://app/test/xul/441414-richtree.xul
```

-- 
 此致
礼
罗勇刚
Yours
sincerely,
Yonggang Luo
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: clear cache

2015-06-23 Thread Marcello Stanisci

Tried on latest FF too, no luck. If someone got that working, please
give us some advice!

Marcello

> > Additionally, launching FF with '-clearcaches' or by setting the
> > environmental 'MOZ_CLEAR_CACHES' does not seems to give the desired
> > effect.
> 
> The switch you want is  -purgecaches
> 
> Phil
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform