Closed
Bug 1416343
Opened 8 years ago
Closed 8 years ago
Mark nsIURI and interfaces extending it as [builtinclass]
Categories
(Core :: Networking, enhancement, P3)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla59
People
(Reporter: valentin, Assigned: valentin)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
No description provided.
| Assignee | ||
Comment 1•8 years ago
|
||
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → valentin.gosu
Priority: -- → P3
Whiteboard: [necko-triaged]
| Comment hidden (mozreview-request) |
Comment 3•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8927933 [details]
Bug 1416343 - Mark URI interfaces as [builtinclass]
https://reviewboard.mozilla.org/r/199174/#review204618
LGTM, just one little minor things...
::: browser/modules/test/browser/browser_SitePermissions_tab_urls.js:10
(Diff revision 1)
> "use strict";
>
> Cu.import("resource:///modules/SitePermissions.jsm", this);
>
> +function uri(url) {
> + return Services.io.newURI(url);
nit: this seems to use a smaller indent than other parts of this file?
Attachment #8927933 -
Flags: review?(daniel) → review+
| Assignee | ||
Comment 4•8 years ago
|
||
| mozreview-review-reply | ||
Comment on attachment 8927933 [details]
Bug 1416343 - Mark URI interfaces as [builtinclass]
https://reviewboard.mozilla.org/r/199174/#review204618
> nit: this seems to use a smaller indent than other parts of this file?
This file has several indentation types. I'm going to stick with 2 spaces for now.
Pushed by valentin.gosu@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/cfe4b1e6be9b
Mark URI interfaces as [builtinclass] r=bagder
Comment 6•8 years ago
|
||
Backed out changeset cfe4b1e6be9b (bug 1416343) for ESlint failing in modules/test/browser/browser_SitePermissions_tab_urls.js:38:14 r=backout on a CLOSED TREE
https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=cfe4b1e6be9bb8fe780209776f03fb0c834bafa0&filter-classifiedState=unclassified&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=runnable&selectedJob=144907308
https://hg.mozilla.org/integration/autoland/rev/561d658b088d1ea00d226891603b91acadee4d91
Flags: needinfo?(valentin.gosu)
| Comment hidden (mozreview-request) |
Pushed by valentin.gosu@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/5fcc3fb66b12
Mark URI interfaces as [builtinclass] r=bagder
Comment 9•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
| Assignee | ||
Comment 10•8 years ago
|
||
Comment 11•8 years ago
|
||
What was the motivation for this change? It's breaking Thunderbird quite badly since we rely on being able to define a URL class with is derived from nsIURI in JS.
In fact, Thunderbird offers a facility to define mail account types in JS (called JS Account). Since TB relies on URLs to address almost everything, mail messages, servers, etc. using various nsIURI-derived classes, this JS Account module is now broken.
| Assignee | ||
Comment 12•8 years ago
|
||
(In reply to Jorg K [Almost not working on Thunderbird (some bustage-fix only) due to non-renewal of contract] from comment #11)
> What was the motivation for this change? It's breaking Thunderbird quite
> badly since we rely on being able to define a URL class with is derived from
> nsIURI in JS.
This is a necessary step in our plan to make nsIURI thread safe (bug 922464). Being implemented in JS makes it impossible to be used OMT.
For now, you can probably revert this change in Thunderbird code. As we change a lot of the code to use the new URI API, keeping up with the changes could be a bit more difficult. But if you are sure the JS implemented URIs are only used on the main thread, you can create a new C++ wrapper that forwards calls to the JS implementation.
Flags: needinfo?(valentin.gosu)
Updated•8 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•