Closed
Bug 726235
Opened 13 years ago
Closed 13 years ago
break out XPath code into separate module
Categories
(Firefox :: Session Restore, defect)
Firefox
Session Restore
Tracking
()
RESOLVED
FIXED
Firefox 14
People
(Reporter: dietrich, Assigned: dietrich)
References
Details
Attachments
(1 file, 4 obsolete files)
(deleted),
patch
|
dietrich
:
review+
|
Details | Diff | Splinter Review |
start moving code not directly related to session restore out into their own home.
Assignee | ||
Comment 1•13 years ago
|
||
move xpath generator code to a module, and rename to be more explicit.
the only change made to the xpath code itself was a s/Ci/Components.interfaces/.
Assignee: nobody → dietrich
Attachment #596230 -
Flags: review?(paul)
Updated•13 years ago
|
Attachment #596230 -
Flags: review?(paul) → review+
Comment 2•13 years ago
|
||
There was some similar stuff happening in bug 697903, but that stalled and included the rest of the form restoration. But then e10s concerns stalled it and it didn't pick back up.
Blocks: 697903
Assignee | ||
Comment 3•13 years ago
|
||
Assignee | ||
Updated•13 years ago
|
Attachment #596230 -
Attachment is obsolete: true
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Assignee | ||
Updated•13 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Comment 4•13 years ago
|
||
Comment on attachment 601827 [details] [diff] [review]
break out XPath code into separate module (
>diff --git a/browser/components/sessionstore/src/XPathGenerator.js b/browser/components/sessionstore/src/XPathGenerator.js
>new file mode 100644
Don't forget a license header!
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 5•13 years ago
|
||
Assignee | ||
Updated•13 years ago
|
Attachment #601827 -
Attachment is obsolete: true
Comment 7•13 years ago
|
||
Do we expect this module to be useful for non-sessionstore code?
If so, can we put it in toolkit?
Otherwise, can the file be named SessionstoreXPathGenerator.js or put in resource:///modules/sessionstore/?
Keywords: checkin-needed
Assignee | ||
Comment 8•13 years ago
|
||
Sure, this code has nothing specific to sessionstore in it anymore (note to self: other than the "sss_", which should be removed).
Where in toolkit do you suggest? We don't have /toolkit/modules yet. Could add one, I suppose.
Comment 9•13 years ago
|
||
(In reply to Dietrich Ayala (:dietrich) from comment #8)
> Sure, this code has nothing specific to sessionstore in it anymore
Yeah, but do we actually expect other code to use it?
> Where in toolkit do you suggest? We don't have /toolkit/modules yet. Could
> add one, I suppose.
toolkit/content/ contains some JS modules.
Comment 10•13 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #9)
> (In reply to Dietrich Ayala (:dietrich) from comment #8)
> > Sure, this code has nothing specific to sessionstore in it anymore
>
> Yeah, but do we actually expect other code to use it?
Not for the forseeable future. Maybe if 697903 get's picked up again but we can always move it to a more general location then if need be.
Personally, I like resource:///modules/sessionstore/, especially as we move towards a compatmentalized sessionstore
Assignee | ||
Comment 11•13 years ago
|
||
(In reply to Paul O'Shannessy [:zpao] from comment #10)
> Personally, I like resource:///modules/sessionstore/, especially as we move
> towards a compatmentalized sessionstore
Sure. Dao?
Comment 12•13 years ago
|
||
Sounds good to me.
Assignee | ||
Comment 13•13 years ago
|
||
Assignee | ||
Updated•13 years ago
|
Attachment #601833 -
Attachment is obsolete: true
Assignee | ||
Comment 14•13 years ago
|
||
Comment on attachment 602155 [details] [diff] [review]
break out XPath code into separate module (
* renamed to jsm
* now in modules/sessionstore/
Attachment #602155 -
Flags: review?(paul)
Assignee | ||
Updated•13 years ago
|
Blocks: sessionRestoreJank
Comment 15•13 years ago
|
||
Comment on attachment 602155 [details] [diff] [review]
break out XPath code into separate module (
Review of attachment 602155 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/components/sessionstore/src/Makefile.in
@@ +48,5 @@
> nsSessionStartup.js \
> $(NULL)
>
> +libs::
> + $(NSINSTALL) $(srcdir)/*.jsm $(FINAL_TARGET)/modules/sessionstore
Nit, you have a space after your tab in there
Attachment #602155 -
Flags: review?(paul) → review+
Assignee | ||
Comment 16•13 years ago
|
||
Attachment #602155 -
Attachment is obsolete: true
Attachment #608545 -
Flags: review+
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 17•13 years ago
|
||
Comment 18•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 19•13 years ago
|
||
> Yeah, but do we actually expect other code to use it?
Well yes. SeaMonkey would like to use the module too in our session restore code, rather than forking it unnecessarily.
Comment 20•13 years ago
|
||
Comment on attachment 608545 [details] [diff] [review]
for check-in
When you move this to toolkit, please use EXTRA_JS_MODULES...
Comment 21•13 years ago
|
||
(In reply to Philip Chee from comment #19)
> > Yeah, but do we actually expect other code to use it?
> Well yes. SeaMonkey would like to use the module too in our session restore
> code, rather than forking it unnecessarily.
To move this to toolkit, I think we want more demand than from a sessionstore fork. Obviously it would be easier for SeaMonkey if way more sessionstore code was shared with a stable API...
You need to log in
before you can comment on or make changes to this bug.
Description
•