Closed
Bug 1446607
Opened 7 years ago
Closed 7 years ago
Port |Bug 1444760 - Combine loadURIWithFlags with loadURI|
Categories
(Thunderbird :: General, enhancement)
Thunderbird
General
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 61.0
People
(Reporter: jorgk-bmo, Unassigned)
Details
Attachments
(1 file)
1.12 KB,
patch
|
aceman
:
review+
|
Details | Diff | Splinter Review |
Bug 1444760 is about to land and we need to follow.
Basically loadURIWithFlags will be removed in the second patch of that bug and in the first patch the interface will be changed.
So while before the call accepted a list of arguments, it now accepts an object.
Before:
loadURIWithFlags(uri, flags, null, null, null);
loadURIWithFlags(aURI, flags, referrerURI, charset, postData);
loadURIWithFlags(submission.uri.spec,
Ci.nsIWebNavigation.LOAD_FLAGS_NONE, null, null,
submission.postData);
Now:
loadURI(uri, { flags });
loadURIWithFlags(aURI, { flags, referrerURI, charset, postData });
loadURI(submission.uri.spec, {
flags: Ci.nsIWebNavigation.LOAD_FLAGS_NONE,
postData: submission.postData });
So we see from the second example that the object properties are flags, referrerURI, charset, postData.
We need to modify all uses of these two functions:
https://dxr.mozilla.org/comm-central/search?q=loadURIWithFlags&redirect=false
One hit in mail/, nine hits in suite/ plus two comments.
I believe that the existing loadURI() calls don't need to be modified, since the flags object is optional.
Tim could you please confirm. In this case we have very little to do here.
Flags: needinfo?(ntim.bugs)
Reporter | ||
Comment 1•7 years ago
|
||
Attachment #8959775 -
Flags: review?(acelists)
Comment 2•7 years ago
|
||
Before bug 1444760, we had:
- loadURIWithFlags(aURI, flags, referrerURI, charset, postData); (last 3 are sometimes set to null)
- loadURIWithFlags(aURI, {flags, referrerURI, charset, postData}); (both forms were supported)
- loadURI(uri)
- loadURI(uri, aReferrerURI, aCharset) (last 2 are sometimes set to null)
After bug 1444760:
- loadURI(uri, {flags, referrerURI, postData});
- loadURI(uri, {flags, referrerURI, postData});
- loadURI(uri)
- loadURI(uri, {referrerURI})
Also, note that the charset argument seemed unused in m-c, and didn't seem to do anything in the binding, so I removed support for it too.
Another thing to take in consideration is that comm-central seems to have its own loadURIWithFlags, so you might either want to follow the m-c changes, or be more careful when changing the loadURIWithFlags calls.
Flags: needinfo?(ntim.bugs)
Attachment #8959775 -
Flags: review?(acelists) → review+
(In reply to Tim Nguyen :ntim from comment #2)
> Another thing to take in consideration is that comm-central seems to have
> its own loadURIWithFlags,
Where do you see this one?
Comment 4•7 years ago
|
||
(In reply to :aceman from comment #3)
> (In reply to Tim Nguyen :ntim from comment #2)
> > Another thing to take in consideration is that comm-central seems to have
> > its own loadURIWithFlags,
>
> Where do you see this one?
SM has its own tabbrowser.xml: https://dxr.mozilla.org/comm-central/source/suite/browser/tabbrowser.xml#2797
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/e2bf5fa4e5be
Port bug 1444760 - Combine loadURIWithFlags with loadURI, mail part. r=aceman
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 6•7 years ago
|
||
FRG, here's more work for you. We've only done the simple stuff.
Flags: needinfo?(frgrahl)
Target Milestone: --- → Thunderbird 61.0
You need to log in
before you can comment on or make changes to this bug.
Description
•