Daisuke Akatsuka
a65bd31ef9
Bug 1572933: Introduce an attribute to raise the cache priority. r=pbro,mayhemer
...
For now, when we turn on `disable cache` switch in DevTools[1], web page loads
the contents without using the cache. Furthermore, DevTools as well comes to
load the contents DevTools inspects without using the cache. And, if the loaded
contents from the web page and DevTools was different, becomes impossible to
inspect the content correctly.
Thus, in order to make DevTools refer the same content the web page loaded,
makes DevTools load the contents inspecting from the cache at first, no matter
if disables the switch or not.
When turns on disable cache in DevTools, `LOAD_BYPASS_CACHE` flag is set into
`loadFlags` in the `docshell`.[2] The other hand, the content DevTools inspects
is loaded from a channel DevTools creates with `LOAD_FROM_CACHE` flag.[3]
However, because this channel is belong to same `loadGroup` of the `docshell`,
`LOAD_BYPASS_CACHE` is inherited and is choosen even if `LOAD_FROM_CACHE` is set.
Thus, in this patch, we introduce an attribute `preferCacheLoadOverBypass`
which raises the priority for `LOAD_FROM_CACHE` above `LOAD_BYPASS_CACHE` and
`LOAD_BYPASS_LOCAL_CACHE`.
[1] https://developer.mozilla.org/en-US/docs/Tools/Settings#Advanced_settings
[2] https://searchfox.org/mozilla-central/source/devtools/server/actors/targets/browsing-context.js#1227
[3] https://searchfox.org/mozilla-central/source/devtools/shared/DevToolsUtils.js#542-544
Differential Revision: https://phabricator.services.mozilla.com/D44626
--HG--
extra : moz-landing-system : lando
2019-09-09 00:57:05 +00:00
Gurzau Raul
812644ff5f
Backed out changeset 8c25acd6a557 (bug 1237782) for wpt failures at controller-on-disconnect.https.html
2019-09-07 14:32:37 +03:00
Jonathan Kingston
64f59b042f
Bug 1237782 - Remove http override and add appcache pref r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D44472
--HG--
extra : moz-landing-system : lando
2019-09-07 07:45:30 +00:00
Christian Holler
c87d1c6975
Bug 1579466 - Check GetEsniUsed return value in nsHttpConnection. r=mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D45032
--HG--
extra : moz-landing-system : lando
2019-09-06 17:56:16 +00:00
Cosmin Sabou
732b97195a
Backed out changeset 7dc9a45ef7d6 (bug 1237782) for causing browser chrome failures on browser_disableAppcache.js CLOSED TREE
2019-09-06 19:10:20 +03:00
Jonathan Kingston
a8f4386427
Bug 1237782 - Remove http override and add appcache pref r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D44472
--HG--
extra : moz-landing-system : lando
2019-09-06 15:02:34 +00:00
Ting-Yu Lin
b8fee8f71c
Bug 1308587 Part 2 - Remove -moz prefix for all multi-column properties in testing and css files. r=dholbert
...
This patch is generated by the following script:
```
function remove_column_prefix() {
echo "Renaming $1 to $2"
find .\
-type f\
! -path "./obj*"\
! -path "./.git"\
! -path "./.hg"\
\( -name "*.html" -or\
-name "*.xhtml" -or\
-name "*.xht" -or\
-name "*.xul" -or\
-name "*.xml" -or\
-name "*.css" \)\
-exec sed -i -e "s/$1/$2/g" "{}" \;
}
remove_column_prefix "-moz-columns" "columns"
remove_column_prefix "-moz-column-width" "column-width"
remove_column_prefix "-moz-column-count" "column-count"
remove_column_prefix "-moz-column-fill" "column-fill"
remove_column_prefix "-moz-column-gap" "column-gap"
remove_column_prefix "-moz-column-rule" "column-rule"
remove_column_prefix "-moz-column-rule-width" "column-rule-width"
remove_column_prefix "-moz-column-rule-color" "column-rule-color"
remove_column_prefix "-moz-column-rule-style" "column-rule-style"
```
Note: after running the above script, I reverted one minor change to the
file multicol-nested-column-rule-001.xht in the theoretically read-only
directory layout/reftests/w3c-css/received/css-multicol/.
Differential Revision: https://phabricator.services.mozilla.com/D44870
--HG--
extra : moz-landing-system : lando
2019-09-05 21:37:32 +00:00
Christian Holler
77a280300f
Bug 1578186 - Add fuzzing support for HTTP2 proxy. r=mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D44374
--HG--
extra : moz-landing-system : lando
2019-09-05 19:26:12 +00:00
Christian Holler
95fc013b8b
Bug 1528951 - Implement Websocket fuzzing target for Necko. r=dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D42816
--HG--
extra : moz-landing-system : lando
2019-09-05 16:28:42 +00:00
Coroiu Cristina
9683a17a37
Backed out changeset d2867a062f45 (bug 1574480) for browser-chrome failures at browser/base/content/test/general/browser_offlineQuotaNotification.js on a CLOSED TREE
2019-09-05 18:38:42 +03:00
Christian Holler
d5d628a5fb
Bug 1577571 - Add OnUpgradeFailed to nsIHttpUpgradeListener. r=michal
...
Differential Revision: https://phabricator.services.mozilla.com/D44680
--HG--
extra : moz-landing-system : lando
2019-09-05 12:10:27 +00:00
Paul Zuehlcke
99bfbf1328
Bug 1574480 - Updated browser.js and OfflineAppsChild.jsm to use PermissionManager principal methods. r=johannh,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D42620
--HG--
extra : moz-landing-system : lando
2019-09-05 13:37:55 +00:00
ffxbld
3e8fdbe0ed
No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
...
Differential Revision: https://phabricator.services.mozilla.com/D44828
--HG--
extra : moz-landing-system : lando
2019-09-05 13:17:10 +00:00
Bogdan Tara
37b20c9b16
Backed out 2 changesets (bug 1405971) for test_sanityRegisteredServiceWorker2.html failures a=backout
...
Backed out changeset 71d1cf219835 (bug 1405971)
Backed out changeset 207b97835f60 (bug 1405971)
2019-09-05 06:45:40 +03:00
Brindusan Cristian
971c2dc9aa
Merge inbound to mozilla-central. a=merge
2019-09-04 19:26:46 +03:00
Cosmin Sabou
62c067e92f
Bug 1578037 - Disable tests that cause leaks on fission. r=johannh
...
Differential Revision: https://phabricator.services.mozilla.com//D44599
2019-09-04 07:18:42 +03:00
arthur.iakab
4ea120b5cb
Backed out changeset e3f06f11de62 (bug 1237782) for causing browser-chrome failure on automation.py CLOSED TREE
2019-09-03 21:04:49 +03:00
Jonathan Kingston
dbfd29b586
Bug 1237782 - Remove http override and add appcache pref r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D44472
--HG--
extra : moz-landing-system : lando
2019-09-03 16:44:13 +00:00
hb
f05c8469c7
Bug 1575217, r=michal,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D43761
--HG--
extra : moz-landing-system : lando
2019-09-02 18:06:09 +00:00
Tom Schuster
68ebc30ae5
Bug 1405971 - Strip existing disallowed schemes in Origin header. r=JuniorHsu,ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D39781
--HG--
extra : moz-landing-system : lando
2019-09-03 18:58:18 +00:00
Honza Bambas
482bfa7a25
Bug 1559088 - Fix test_redirect-caching_failure.js to again do what it has to, r=kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D43796
--HG--
extra : moz-landing-system : lando
2019-09-03 12:24:11 +00:00
Andrea Marchesini
d5803b5f62
Bug 1563313 - URL-Classifier should process nsIChannel before the proxy, r=mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D36872
--HG--
extra : moz-landing-system : lando
2019-09-03 10:50:40 +00:00
Dorel Luca
15fefbe415
Merge mozilla-inbound to mozilla-central. a=merge
2019-09-03 07:03:04 +03:00
Jean-Yves Avenard
1c657f7d19
Bug 1556489 - P25. Make nsIIdentChannel support conditional for nsBaseChannel. r=mayhemer
...
So that we can restrict QI(nsIIdentChannel) to nsIHttpChannel and DocumentChannelChild objects only.
Differential Revision: https://phabricator.services.mozilla.com/D44111
MANUAL PUSH: multiple authors stack
2019-09-03 10:20:16 +10:00
Jean-Yves Avenard
5749840f21
Bug 1556489 - P23 - Only create new ClientSource objects in the content, but use the recreated info from redirects in the parent. r=asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D42260
2019-09-03 10:19:53 +10:00
Jean-Yves Avenard
ff8e5e92fd
Bug 1556489 - P22 - Manually add history entries for all DocumentChannel redirects, since these aren't exposed to the content process as channel redirects. r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D42259
2019-09-03 10:19:53 +10:00
Matt Woodrow
4151ea2a94
Bug 1556489 - P21 - Cache the original referrer before url classification has been applied to send back to the content process, since the docshell expects to find the original. r=mayhemer,tnguyen
...
Differential Revision: https://phabricator.services.mozilla.com/D42258
2019-09-03 10:19:52 +10:00
Jean-Yves Avenard
9cdcb33634
Bug 1556489 - P20 - Remove unused method. r=mayhemer
2019-09-03 10:19:52 +10:00
Jean-Yves Avenard
d65c5e0309
Bug 1556489 - P19. Fix devtools stack traces. r=honza,ochameau
...
DevTools rely on events when a new HttpChannel is opened, it needs to know when a DocumentChannel is.
Differential Revision: https://phabricator.services.mozilla.com/D40975
2019-09-03 10:19:46 +10:00
Matt Woodrow
1b5f7c772a
Bug 1556489 - P18. Add DocumentChannel and hook it up. r=nika,mayhemer
...
DocumentChannel acts as a replacement for HttpChannel where redirects are now entirely handled in the DocumentChannelParent. The ContentChild will receive the final nsIChannel once all redirects have been handled.
Differential Revision: https://phabricator.services.mozilla.com/D37490
2019-09-03 10:19:38 +10:00
Jean-Yves Avenard
f0b40a38d7
Bug 1556489 - P15. Move methods into dedicated nsI* interface. r=mayhemer
...
This allows in the future for the nsHttpChannel to deal with things others than the HttpChannelParent.
Differential Revision: https://phabricator.services.mozilla.com/D40972
2019-09-03 10:19:37 +10:00
Matt Woodrow
8a54afbb4c
Bug 1556489 - P14. No longer pass nsILoadInfo to TriggerCrossProcessRedirect. r=mayhemer
...
We can deduct it from the nsIChannel argument already. In the future, the httpParent may be either HttpChannelParent or DocumentChannelParent.
Differential Revision: https://phabricator.services.mozilla.com/D40971
2019-09-03 10:19:36 +10:00
Jean-Yves Avenard
b43fd91ea2
Bug 1556489 - P11. Add nIIdentChannel interface. r=mayhemer
...
The devtools listens to http-on-opening-request event which is expected to receive a nsIHttpChannel. However future changes will make it that it's not always a nsIHttpChannel that can fire such event.
As such we create an intermediary interface nsIIdentChannel and move the subset generating such event in nsIHttpChannel there.
Differential Revision: https://phabricator.services.mozilla.com/D40968
2019-09-03 10:19:34 +10:00
Matt Woodrow
a209298de2
Bug 1556489 - P7. Make LoadInfoArgsToLoadInfo works with LoadInfo class. r=mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D40964
2019-09-03 10:19:11 +10:00
Jean-Yves Avenard
0c52caf2b2
Bug 1556489 - P6. Simplify use of namespace. r=mayhemer
...
This is a cosmetic only change.
Differential Revision: https://phabricator.services.mozilla.com/D40963
2019-09-03 10:19:10 +10:00
Jean-Yves Avenard
e76aa88e15
Bug 1556489 - P4. Add ability to set Document object on LoadInfo. r=mayhemer,ckerschb
...
This will be required to access the Performance object from future DocumentChannel.
Differential Revision: https://phabricator.services.mozilla.com/D41133
2019-09-03 10:18:58 +10:00
Jean-Yves Avenard
a23b70b74e
Bug 1556489 - P3. Move logic on when to return the PerformanceStorage into nsILoadInfo. r=mayhemer
...
This more closely follow the code as earlier documented. To remove all ambiguities, the idl documentation was amended.
Differential Revision: https://phabricator.services.mozilla.com/D40961
2019-09-03 09:50:05 +10:00
Jean-Yves Avenard
de650bb217
Bug 1556489 - P2. Use ReplacementChannelConfig across HttpChannelParent and ContentChild. r=mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D40960
2019-09-03 09:49:46 +10:00
Jean-Yves Avenard
cc07990908
Bug 1556489 - P1. Introduce ReplacementChannelConfig. r=mayhemer
...
This class allows to encapsulate all the information required in order to create a new HttpChannel object following a redirect.
Differential Revision: https://phabricator.services.mozilla.com/D40959
2019-09-03 09:47:17 +10:00
Michal Novotny
85857b979d
Bug 1577354 - Assertion failure: decoded.CountChar('\t') == 2, at /netwerk/cache2/CacheFileContextEvictor.cpp:409, r=mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D43902
--HG--
extra : moz-landing-system : lando
2019-09-02 17:26:08 +00:00
Honza Bambas
26889bce93
Bug 1578136 - Add a non-null check before dereferencing TLSFilterTransaction::Connection(), r=dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D44391
--HG--
extra : moz-landing-system : lando
2019-09-02 17:22:23 +00:00
Michal Novotny
a9aa8451c2
Bug 1570932 - Add telemetry about how often we observe network change events, r=dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D44215
--HG--
extra : moz-landing-system : lando
2019-08-30 18:18:19 +00:00
arthur.iakab
fd7aae5565
Backed out changeset 9057d052acee (bug 1559088) for causing xpcshell failures on test_redirect-caching_failure.js CLOSED TREE
2019-08-30 21:37:15 +03:00
Honza Bambas
1b5f4ca60b
Bug 1559088 - Fix test_redirect-caching_failure.js to again do what it has to, r=kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D43796
--HG--
extra : moz-landing-system : lando
2019-08-30 16:44:11 +00:00
Ehsan Akhgari
625509f19c
Bug 1399803 - Consider all IPv4 loopback addresses as secure context; r=bzbarsky,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D43633
--HG--
extra : moz-landing-system : lando
2019-08-30 07:57:34 +00:00
Eric Rahm
e678238a60
Bug 1569323 - Remove verbose warning in SetUserPass. r=mayhemer
...
This removes a rather verbose warning during URI mutation. This often
happens for use cases such as attempting to clear the field. Since `Finalize`
is marked as `MOZ_MUST_USE` we can be confident that any failures that used
to be warned about are properly handled.
Differential Revision: https://phabricator.services.mozilla.com/D42384
--HG--
extra : moz-landing-system : lando
2019-08-22 14:49:28 +00:00
Ehsan Akhgari
d5e2f368cc
Bug 1529396 - Fix another test CLOSED TREE
...
Bug #: 1529396
Differential Revision: https://phabricator.services.mozilla.com/D44071
--HG--
extra : amend_source : 7445e9c7c4168365e363731dcc69b76a8bea3c20
2019-08-30 01:50:41 +03:00
Ehsan Akhgari
52b58160a7
Bug 1576109 - Ensure that the content blocking allow list principal is set correctly during HTTP redirects; r=baku,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D43541
--HG--
extra : moz-landing-system : lando
2019-08-29 18:48:43 +00:00
Bogdan Tara
3310211997
Backed out changeset a4768bd82d57 (bug 1559088) for test_redirect-caching_failure_wrap.js failures CLOSED TREE
2019-08-29 21:01:38 +03:00
Honza Bambas
bcbbd6b737
Bug 1559088 - Fix test_redirect-caching_failure.js to again do what it has to, r=kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D43796
--HG--
extra : moz-landing-system : lando
2019-08-29 12:07:54 +00:00