Port Bug 1513241 Pass loadURIOptions dictionary for docshell loads
Categories
(Thunderbird :: General, task)
Tracking
(Not tracked)
People
(Reporter: jorgk-bmo, Assigned: jorgk-bmo)
Details
Attachments
(1 file, 1 obsolete file)
|
11.27 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
Instead of passing single parameters, this now passes an object:
https://hg.mozilla.org/mozilla-central/rev/71cb45922e34#l1.12
We have a few call-sites
https://searchfox.org/comm-central/search?q=webnav.*LoadURI&case=false®exp=true&path=
in C++ and JS code.
| Assignee | ||
Comment 1•7 years ago
|
||
This compiles but the JS part is missing. Coming up.
| Assignee | ||
Comment 2•7 years ago
|
||
First reviewer wins. I couldn't test chat since it's broken (bug 1519091).
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/77f1eb52e155
Port bug 1513241: Adjust parameters of nsIWebNavigation.loadURI(). rs=bustage-fix
| Assignee | ||
Updated•7 years ago
|
Comment 4•7 years ago
|
||
| Assignee | ||
Comment 5•7 years ago
|
||
Usually we don't use namaspaces much:
https://dxr.mozilla.org/comm-central/search?q=mozilla%3A%3A+path%3Acomm%2F&redirect=false
or more specific:
https://dxr.mozilla.org/comm-central/search?q=mozilla%3A%3Adom%3A%3A+path%3Acomm%2F&redirect=false
Only nsMsgCompose.cpp and nsMsgSend.cpp have using namespace mozilla::dom;:
https://dxr.mozilla.org/comm-central/search?q=namespace+mozilla%3A%3Adom+path%3Acomm%2F&redirect=false
So I think this is inline with current practise.
Comment 6•7 years ago
|
||
Well practice is to copy as much as we can from core, right? And they seem to use namespaces.
Someone more c++ could chim in, but is there any reason we shouldn't use them?
Updated•6 years ago
|
Description
•