Closed Bug 1558915 Opened 5 years ago Closed 5 years ago

Use infallible nsIURI::SchemeIs

Categories

(Core :: Networking, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: evilpie, Assigned: evilpie)

References

Details

(Whiteboard: [necko-triaged])

Attachments

(9 files)

The infallible variant of SchemeIs is actually not used at all. I guess we should switch most fallible uses to that function?

Priority: -- → P3
Whiteboard: [necko-triaged]
Assignee: nobody → evilpies
Keywords: leave-open
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/d251fbeed0f7 Use infallible nsIURI::SchemeIs in dom/security. r=ckerschb https://hg.mozilla.org/integration/autoland/rev/d6ac4ac8610a Use infallible nsIURI::SchemeIs in dom/base. r=smaug
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/3da6e9e86be4 Use infallible nsIURI::SchemeIs in dom/. r=smaug https://hg.mozilla.org/integration/autoland/rev/e44c9fd81e5b Use infallible nsIURI::SchemeIs in toolkit/ r=Ehsan

Backed out 2 changesets for causing bustages.

Backout link: https://hg.mozilla.org/integration/autoland/rev/418858fa823396ccc16c9cefb1b482228d7da747

Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&selectedJob=259549241&resultStatus=testfailed%2Cbusted%2Cexception%2Crunnable&revision=e44c9fd81e5b0455f608127e09e98a51a5a49253

Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=259549245&repo=autoland&lineNumber=26152

[task 2019-08-02T09:13:06.821Z] 09:13:06 ERROR - /builds/worker/workspace/build/src/toolkit/components/url-classifier/nsUrlClassifierStreamUpdater.cpp:180:8: error: unused variable 'match' [-Werror,-Wunused-variable]

[task 2019-08-02T09:13:36.584Z] 09:13:36 ERROR - /builds/worker/workspace/build/src/toolkit/xre/nsAppRunner.cpp:1010:3: error: use of undeclared identifier 'rv'
[task 2019-08-02T09:13:36.584Z] 09:13:36 INFO - rv = aServerURL->GetSpec(spec);
[task 2019-08-02T09:13:36.584Z] 09:13:36 INFO - ^
[task 2019-08-02T09:13:36.589Z] 09:13:36 ERROR - /builds/worker/workspace/build/src/toolkit/xre/nsAppRunner.cpp:1011:21: error: use of undeclared identifier 'rv'
[task 2019-08-02T09:13:36.589Z] 09:13:36 INFO - NS_ENSURE_SUCCESS(rv, rv);
[task 2019-08-02T09:13:36.589Z] 09:13:36 INFO - ^
[task 2019-08-02T09:13:36.589Z] 09:13:36 ERROR - /builds/worker/workspace/build/src/toolkit/xre/nsAppRunner.cpp:1011:25: error: use of undeclared identifier 'rv'

[task 2019-08-02T09:13:42.431Z] 09:13:42 ERROR - /builds/worker/workspace/build/src/toolkit/mozapps/extensions/AddonContentPolicy.cpp:114:8: error: unused variable 'equals' [-Werror,-Wunused-variable]
[task 2019-08-02T09:13:42.431Z] 09:13:42 INFO - bool equals;
[task 2019-08-02T09:13:42.431Z] 09:13:42 INFO - ^
[task 2019-08-02T09:13:42.431Z] 09:13:42 INFO - In file included from /builds/worker/workspace/build/src/obj-firefox/toolkit/mozapps/extensions/Unified_cpp_mozapps_extensions0.cpp:20:
[task 2019-08-02T09:13:42.431Z] 09:13:42 ERROR - /builds/worker/workspace/build/src/toolkit/mozapps/extensions/AddonManagerWebAPI.cpp:66:3: error: use of undeclared identifier 'rv'
[task 2019-08-02T09:13:42.431Z] 09:13:42 INFO - rv = uri->GetHost(host);
[task 2019-08-02T09:13:42.431Z] 09:13:42 INFO - ^
[task 2019-08-02T09:13:42.431Z] 09:13:42 ERROR - /builds/worker/workspace/build/src/toolkit/mozapps/extensions/AddonManagerWebAPI.cpp:67:17: error: use of undeclared identifier 'rv'

Flags: needinfo?(evilpies)
Pushed by malexandru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6d27ca6d890f Use infallible nsIURI::SchemeIs in dom/. r=smaug
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/c0096372c462 Use infallible nsIURI::SchemeIs in toolkit/ r=Ehsan
Flags: needinfo?(evilpies)
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/dfa76bace85c Use infallible nsIURI::SchemeIs in image/ r=tnikkel
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/c47bc0881be0 Use infallible nsIURI::SchemeIs in uriloader/ r=bzbarsky
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/b197ca57677a Use infallible nsIURI::SchemeIs in various places r=Ehsan
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/ca88862d6b63 Use infallible nsIURI::SchemeIs in various places r=Ehsan
Backout by csabou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6d3f1ebf7ba7 Backed out changeset ca88862d6b63 for causing build bustages on StartupCacheUtils. CLOSED TREE
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/3a4e01e2d89a Use infallible nsIURI::SchemeIs in various places r=Ehsan
Flags: needinfo?(evilpies)

Sorry I had some problems figuring out who can review netwerk/. Most people seem to be on PTO.

Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/000157acfe10 Use infallible nsIURI::SchemeIs in netwerk/. r=baku
Keywords: leave-open
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/6d39ec9446c3 Use infallible nsIURI::SchemeIs everywhere. r=smaug
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: