Closed
Bug 864658
Opened 12 years ago
Closed 12 years ago
URL instances should inherit api signature of window.location
Categories
(Add-on SDK Graveyard :: General, defect, P3)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: evold, Assigned: jsantell)
References
Details
(Whiteboard: [good first bug])
Attachments
(1 file)
Reporter | ||
Updated•12 years ago
|
Summary: URL instances should inherit structure of window.location → URL instances should inherit api signature of window.location
Whiteboard: [good first bug]
Priority: -- → P3
Assignee | ||
Comment 1•12 years ago
|
||
Just a note, `Location`'s implementation for `host` is hostname + por, whereas our currently implementation of `host` is `Location`'s `hostname`
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → jsantell
Assignee | ||
Comment 2•12 years ago
|
||
Erik, is this what you had in mind? Also this would complete #861084 as well
https://github.com/jsantell/addon-sdk/commit/31fb98f10cee787118b39e93c31853384e3906ce
Flags: needinfo?(evold)
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #747125 -
Flags: review?(evold)
Reporter | ||
Comment 4•12 years ago
|
||
Comment on attachment 747125 [details]
GH Pull Request 991
Looks great to me, we should get Irakli's approval tho
Attachment #747125 -
Flags: review?(evold)
Attachment #747125 -
Flags: review+
Attachment #747125 -
Flags: feedback?(rFobic)
Flags: needinfo?(evold)
Comment 5•12 years ago
|
||
window.location does not implements `tld` property and I don't think we should add it. Instead we should define `getTDL(urlString)` function to the module.
Updated•12 years ago
|
Attachment #747125 -
Flags: feedback?(rFobic) → feedback-
Comment 6•12 years ago
|
||
Other than that it looks fine by me.
Comment 7•12 years ago
|
||
As a side note [nsIURLParser](https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIURLParser) maybe a better way to parse URLs than regexp replace.
Comment 8•12 years ago
|
||
Commits pushed to master at https://github.com/mozilla/addon-sdk
https://github.com/mozilla/addon-sdk/commit/c32dcc5617073d75c31b552cb5292016cab31952
Bug 864658, URL API should have same properties as window.location, also
fixes bug 861084
https://github.com/mozilla/addon-sdk/commit/86fb910bdcf8d5dcc9f5dd3bb6db80030c640b10
Merge pull request #991 from jsantell/url-matches-window-location
Fix Bug 864658, URL API should have same properties as window.location, also fixes bug 861084 (getTLD method) r+=@erikvold
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 9•12 years ago
|
||
Commits pushed to integration at https://github.com/mozilla/addon-sdk
https://github.com/mozilla/addon-sdk/commit/c32dcc5617073d75c31b552cb5292016cab31952
Bug 864658, URL API should have same properties as window.location, also
https://github.com/mozilla/addon-sdk/commit/86fb910bdcf8d5dcc9f5dd3bb6db80030c640b10
Merge pull request #991 from jsantell/url-matches-window-location
You need to log in
before you can comment on or make changes to this bug.
Description
•