Botond Ballo
ad3bd04424
Bug 1538511 - Move nsIScrollableFrame::ScrollMode into a separate file. r=kats
...
This allows this enumeration to be used from nsIPresShell.h without introducing
a circular dependency.
Its new home in layout/base/ScrollTypes.h, included as mozilla/ScrollTypes.h.
Others similar enums can be added to that file if desired.
This patch also makes ScrollMode an enum class (as it's no longer nested
inside a class) and switches its enumerators to the |eName| naming convention.
Differential Revision: https://phabricator.services.mozilla.com/D24796
2019-03-25 23:17:20 +00:00
Nika Layzell
cf99caa1d4
Bug 1536405 - Cycle-collect through ChromeEventHandler, r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D24422
2019-03-22 23:35:15 +00:00
dlee
9725154c92
Bug 1522412 - P3. Adopt nsIChannel.LOAD_BYPASS_URL_CLASSIFIER in the algorithm determining if we should classify a channel's URI. r=Ehsan,mayhemer
...
This patch uses the flag to exempt channels from classification, but it
doesn't include the use cases of this flag.
See Bug 1442496 for the list of the call sites should use this flag.
Differential Revision: https://phabricator.services.mozilla.com/D22112
2019-03-25 12:48:25 +00:00
dlee
3b26e613f7
Bug 1522412 - P2. Remove nsIChannel.LOAD_CLASSIFY_URI flag. r=Ehsan
...
nsIChannel.LOAD_CLASSIFY_URI is no longer required so we can remove it from
the codebase.
In the mean time, we add a new LOAD_BYPASS_URL_CLASSIFIER load flag for
channel creator to be able to force channel to bypass URL classifier check.
The use of the new LOAD_BYPASS_URL_CLASSIFIER flag will be addressed in
the other patches.
Differential Revision: https://phabricator.services.mozilla.com/D22111
2019-03-25 12:47:57 +00:00
Botond Ballo
cee6f62d12
Bug 1531535 - Use the visual smooth scrolling API in nsDocShell::SetCurScrollPosEx() if appropriate. r=kats
...
Differential Revision: https://phabricator.services.mozilla.com/D24554
2019-03-23 20:23:44 +00:00
Botond Ballo
a76969f2b8
Bug 1531535 - Add visual smooth scroll support to nsIPresShell. r=kats
...
This patch renames nsIPresShell::SetPendingVisualScrollUpdate() to
ScrollToVisual(), and adds an instant vs. smooth option.
SetPendingVisualScrollUpdate() still exists, as a helper for the instant case.
Differential Revision: https://phabricator.services.mozilla.com/D24553
2019-03-23 20:23:35 +00:00
Gurzau Raul
8cd94b1658
Backed out 7 changesets (bug 1522412) for xpcshell failures at test_shouldclassify.js on a CLOSED TREE.
...
Backed out changeset 7c998456e1fd (bug 1522412)
Backed out changeset ebb581ddf1d1 (bug 1522412)
Backed out changeset 850e1c68d978 (bug 1522412)
Backed out changeset fe288a48cecb (bug 1522412)
Backed out changeset 5399bca472b1 (bug 1522412)
Backed out changeset 91e5b339fe11 (bug 1522412)
Backed out changeset b80098d0a5c4 (bug 1522412)
2019-03-21 11:02:09 +02:00
Dimi Lee
e501babda0
Bug 1522412 - P3. Adopt nsIChannel.LOAD_BYPASS_URL_CLASSIFIER in the algorithm determining if we should classify a channel's URI. r=Ehsan,mayhemer
...
This patch uses the flag to exempt channels from classification, but it
doesn't include the use cases of this flag.
See Bug 1442496 for the list of the call sites should use this flag.
Differential Revision: https://phabricator.services.mozilla.com/D22112
2019-03-21 07:32:46 +00:00
Dimi Lee
2aec02089a
Bug 1522412 - P2. Remove nsIChannel.LOAD_CLASSIFY_URI flag. r=Ehsan
...
nsIChannel.LOAD_CLASSIFY_URI is no longer required so we can remove it from
the codebase.
In the mean time, we add a new LOAD_BYPASS_URL_CLASSIFIER load flag for
channel creator to be able to force channel to bypass URL classifier check.
The use of the new LOAD_BYPASS_URL_CLASSIFIER flag will be addressed in
the other patches.
Differential Revision: https://phabricator.services.mozilla.com/D22111
2019-03-21 07:30:51 +00:00
Alastor Wu
4f26766702
Bug 1524065 - part1 : implement the way to resume delayed autoplay media via browsing context. r=farre
...
After enable Fission, we're not able to resume media in the different process, because the current way we use can only notify one process and would cause the media on other process can't be resumed.
Therefore, we should use the browsing context to notify the web content which might be on different processes.
Differential Revision: https://phabricator.services.mozilla.com/D18136
2019-03-20 03:15:36 +00:00
Christoph Kerschbaumer
887a31ee01
Bug 1534971: Add helper function within CSP to check if two CSPs are equal. r=jkt
...
Differential Revision: https://phabricator.services.mozilla.com/D23567
2019-03-15 12:20:52 +00:00
Botond Ballo
dca72b1b66
Bug 1517895 - Scroll the visual viewport in nsDocShell::SetCurScrollPosEx(). r=qdot
...
Differential Revision: https://phabricator.services.mozilla.com/D20031
2019-03-13 23:07:17 +00:00
Felipe Gomes
097696c2d3
Bug 827976 - Teach leaks.py to ignore the hidden window. r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D21089
2019-03-04 20:21:31 +00:00
Cosmin Sabou
45f2559b66
Backed out 16 changesets (bug 827976) for causing bug 1532054. a=backout
...
Backed out changeset 54c0b12443ed (bug 827976)
Backed out changeset 92b45080d080 (bug 827976)
Backed out changeset 443087a359f9 (bug 827976)
Backed out changeset f976c2d4cebb (bug 827976)
Backed out changeset 66cffb171024 (bug 827976)
Backed out changeset 845e1d0b2402 (bug 827976)
Backed out changeset fd94066a1d76 (bug 827976)
Backed out changeset e253b264e7bd (bug 827976)
Backed out changeset 07ef335770a8 (bug 827976)
Backed out changeset 9d3805d77b99 (bug 827976)
Backed out changeset eed600ceb606 (bug 827976)
Backed out changeset 3b64368cff52 (bug 827976)
Backed out changeset 69d0378e0c09 (bug 827976)
Backed out changeset 9203871a5c6f (bug 827976)
Backed out changeset 96a507c818e2 (bug 827976)
Backed out changeset e254496ff95b (bug 827976)
2019-03-02 20:40:01 +02:00
Felipe Gomes
2354f82fd3
Bug 827976 - Teach leaks.py to ignore the hidden window. r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D21089
2019-03-01 21:07:41 +00:00
Ryan Hunt
3d8d412bc2
Bug 1523969 part 5 - Move method definition inline comments to new line in 'docshell/'. r=qdot
...
Differential Revision: https://phabricator.services.mozilla.com/D21105
2019-02-25 16:04:59 -06:00
Boris Zbarsky
b61174af9c
Bug 1489308 part 9. Remove now-unused wyciwyg bits. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D17327
2019-02-28 01:09:48 +00:00
Boris Zbarsky
49a8c7d41b
Bug 1489308 part 4. Allow UpdateURLAndHistory to work even if there's no root session history. r=smaug
...
This can happen when someone does a document.open() on a document that has no session history.
Differential Revision: https://phabricator.services.mozilla.com/D17322
2019-02-27 05:10:11 +00:00
Boris Zbarsky
bcb6d1032a
Bug 1489308 part 2. Allow UpdateURLAndHistory to work even if mOSHE is null, if we're doing a replace. r=smaug
...
We're going to end up hitting this if someone does a document.open() before mOSHE
has been set. We shouldn't need to worry about mLSHE, because the document.open()
will cancel the corresponding load.
Differential Revision: https://phabricator.services.mozilla.com/D17319
2019-02-27 06:01:57 +00:00
Boris Zbarsky
69ebb5e0ff
Bug 1489308 part 1. Factor out part of nsDocShell::AddState into a separate method. r=qdot
...
This implements the "URL and history update steps" from the HTML spec. See
<https://html.spec.whatwg.org/multipage/history.html#url-and-history-update-steps >.
Differential Revision: https://phabricator.services.mozilla.com/D17318
2019-02-27 05:56:23 +00:00
Boris Zbarsky
504b7df982
Bug 1531128 part 2. Add a docshell API for determining whether a navigation is in progress. r=mccr8
...
This is needed by the document.open spec, which cancels loads for the document
only if a navigation is pending.
Differential Revision: https://phabricator.services.mozilla.com/D21441
2019-02-27 23:21:29 +00:00
Christoph Kerschbaumer
bd82a2ed63
Bug 1518454: Part 1, backend changes, add CSP to loadURIOptions dictionary and pass CSP explicitly from frontend to docshell. r=bz
2019-02-21 16:00:32 +01:00
Christoph Kerschbaumer
1a72eb2a6b
Bug 1528677: Remove nullchecks for loadinfo since we have loadinfo on all channels. r=baku
2019-02-20 13:27:25 +01:00
Valentin Gosu
83082cfa48
Bug 1521808 - Implement process switching based on Cross-Opener-Origin-Policy header r=nika,qdot
...
* New topLevel loads get the nsILoadInfo.openerPolicy of the current top level document
* Parsing the Cross-Opener-Origin-Policy of a channel will update mLoadInfo.openerPolicy and this value will get propagated to the child process.
* SessionStore now checks nsIHttpChannel.hasCrossOriginOpenerPolicyMismatch (preffed off) and performs a process switch if needed
Differential Revision: https://phabricator.services.mozilla.com/D19000
2019-02-15 22:02:47 +00:00
Valentin Gosu
2db8ccd5ca
Bug 1521808 - Implement Cross-Origin-Opener-Policy header r=nika,mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D18119
2019-02-15 22:02:58 +00:00
Nika Layzell
8eb68bcb39
Bug 1522637 - Part 3: Send history index when resuming redirected loads, r=qdot
...
Depends on D18603
Differential Revision: https://phabricator.services.mozilla.com/D18604
2019-02-15 19:49:11 +00:00
Cosmin Sabou
de12011db0
Merge autoland to mozilla-central. a=merge
2019-02-15 20:36:32 +02:00
Cosmin Sabou
dc5b7a11e5
Backed out 4 changesets (bug 1521808) for causing merge conflicts.
...
Backed out changeset 42641f88d7da (bug 1521808)
Backed out changeset 32ce09b2c33a (bug 1521808)
Backed out changeset 94e513102b53 (bug 1521808)
Backed out changeset a08553c07886 (bug 1521808)
2019-02-15 20:34:07 +02:00
Razvan Maries
25ef899b22
Backed out 9 changesets (bug 1522637) for causing bug 1528188. a=backout
...
Backed out changeset e4ca191d62a5 (bug 1522637)
Backed out changeset 540e5f318768 (bug 1522637)
Backed out changeset 0886a317a108 (bug 1522637)
Backed out changeset 4c7c512a262d (bug 1522637)
Backed out changeset d7eb272688be (bug 1522637)
Backed out changeset 67e838f49f4b (bug 1522637)
Backed out changeset 7e38890c72fa (bug 1522637)
Backed out changeset e6ca9ad18d15 (bug 1522637)
Backed out changeset 0f759e91eca8 (bug 1522637)
2019-02-15 18:21:36 +02:00
Nika Layzell
aa7faefb58
Bug 1522637 - Part 3: Send history index when resuming redirected loads, r=qdot
...
Depends on D18603
Differential Revision: https://phabricator.services.mozilla.com/D18604
2019-02-14 15:36:02 +00:00
Bogdan Tara
cf2a8a5e80
Backed out 8 changesets (bug 1522637) for browser_all_files_referenced.js failures CLOSED TREE
...
Backed out changeset f7ab0e6e739b (bug 1522637)
Backed out changeset 3d24e8e81c02 (bug 1522637)
Backed out changeset 41ca0b87537e (bug 1522637)
Backed out changeset 6e0d4b6b1c93 (bug 1522637)
Backed out changeset 8f494271ec06 (bug 1522637)
Backed out changeset 6b4d010964ec (bug 1522637)
Backed out changeset 5eeda2ba8e79 (bug 1522637)
Backed out changeset 5988b8e7d17c (bug 1522637)
2019-02-14 19:20:58 +02:00
Nika Layzell
efa3555cc6
Bug 1522637 - Part 3: Send history index when resuming redirected loads, r=qdot
...
Depends on D18603
Differential Revision: https://phabricator.services.mozilla.com/D18604
2019-02-14 15:36:02 +00:00
Valentin Gosu
383fb68506
Bug 1521808 - Implement process switching based on Cross-Opener-Origin-Policy header r=nika,qdot
...
* New topLevel loads get the nsILoadInfo.openerPolicy of the current top level document
* Parsing the Cross-Opener-Origin-Policy of a channel will update mLoadInfo.openerPolicy and this value will get propagated to the child process.
* SessionStore now checks nsIHttpChannel.hasCrossOriginOpenerPolicyMismatch (preffed off) and performs a process switch if needed
Differential Revision: https://phabricator.services.mozilla.com/D19000
2019-02-15 12:14:49 +00:00
Valentin Gosu
c927c79c62
Bug 1521808 - Implement Cross-Origin-Opener-Policy header r=nika,mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D18119
2019-02-15 12:15:39 +00:00
Sylvestre Ledru
0ad8a25536
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D19663
2019-02-15 08:15:57 +00:00
Thomas Nguyen
d13c22ef47
Bug 1517703 - Part 1 - Implement ReferrerInfo class r=smaug
...
The class contains original full referrer and referrer policy will be
applied to the referrer.
Differential Revision: https://phabricator.services.mozilla.com/D17923
2019-02-12 19:35:32 +00:00
Dorel Luca
e3bc01d732
Backed out 4 changesets (bug 1521808) for build bustage. CLOSED TREE
...
Backed out changeset 80aeea5f7abe (bug 1521808)
Backed out changeset c8c151d92c03 (bug 1521808)
Backed out changeset cc0a5c7dabb4 (bug 1521808)
Backed out changeset 8d5174a560fa (bug 1521808)
2019-02-12 14:54:45 +02:00
Valentin Gosu
f8ad4b68d8
Bug 1521808 - Implement process switching based on Cross-Opener-Origin-Policy header r=nika,qdot
...
* New topLevel loads get the nsILoadInfo.openerPolicy of the current top level document
* Parsing the Cross-Opener-Origin-Policy of a channel will update mLoadInfo.openerPolicy and this value will get propagated to the child process.
* SessionStore now checks nsIHttpChannel.hasCrossOriginOpenerPolicyMismatch (preffed off) and performs a process switch if needed
Differential Revision: https://phabricator.services.mozilla.com/D19000
2019-02-12 12:16:58 +00:00
Valentin Gosu
8b553dfcb8
Bug 1521808 - Implement Cross-Origin-Opener-Policy header r=nika,mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D18119
2019-02-12 12:15:54 +00:00
shindli
1bcd12d6dd
Backed out 6 changesets (bug 1522637) for en-US failures in testing/firefox-ui/tests/functional/safebrowsing/test_notification.py TestSafeBrowsingNotificationBar.test_notification_bar CLOSED TREE
...
Backed out changeset 18a809d53298 (bug 1522637)
Backed out changeset 9e9fd362dd8f (bug 1522637)
Backed out changeset f1191be4243a (bug 1522637)
Backed out changeset 5a8067fd848c (bug 1522637)
Backed out changeset 5f49cd87b1bd (bug 1522637)
Backed out changeset f82ba91f5ea2 (bug 1522637)
2019-02-09 03:12:53 +02:00
Kyle Machulis
3090a4960a
Bug 1471711 - Remove redundant docshell being destroyed check; r=bzbarsky
...
Stop all loads that are coming through Docshells that are currently
being destroyed. Keeps earliest check for this condition, removes
later one.
Depends on D17018
Differential Revision: https://phabricator.services.mozilla.com/D17019
2019-02-08 21:11:02 +00:00
Kyle Machulis
625b95ff6f
Bug 1471711 - Extract short circuit loads to their own method; r=bzbarsky
...
Loading between 2 history entries is mostly a standalone procedure,
and can be extracted to its own method to clean up InternalLoad.
Depends on D17017
Differential Revision: https://phabricator.services.mozilla.com/D17018
2019-02-08 21:11:00 +00:00
Kyle Machulis
46bffb909b
Bug 1471711 - Move bailout checks as early as possible in nsDocShell::InternalLoad; r=bzbarsky
...
Depends on D17016
Differential Revision: https://phabricator.services.mozilla.com/D17017
2019-02-08 21:10:58 +00:00
Kyle Machulis
50571f80c4
Bug 1471711 - Move ContentPolicyType and Srcdoc checking to DoURILoad; r=bzbarsky
...
Since targeting has been moved to another method, we don't need to
know the ContentPolicyType until we're in DoURILoad. We can also move
Srcdoc handling to DoURILoad, as all data is passed with the LoadState.
Depends on D17015
Differential Revision: https://phabricator.services.mozilla.com/D17016
2019-02-08 21:10:56 +00:00
Kyle Machulis
56d16593e1
Bug 1471711 - Extract targeting from nsDocShell::InternalLoad; r=bzbarsky
...
Move targeting logic out of InternalLoad into its own method.
Differential Revision: https://phabricator.services.mozilla.com/D17015
2019-02-08 21:10:54 +00:00
Nika Layzell
d8f5cbfa8d
Bug 1522637 - Part 3: Send history index when resuming redirected loads, r=qdot
...
Depends on D18603
Differential Revision: https://phabricator.services.mozilla.com/D18604
2019-02-08 17:36:02 +00:00
Mike de Boer
39f20cd843
Bug 1524593 - nsISearchService (aka nsIBrowserSearchService, previously) refactor to be mostly an asynchronous, in preparation of WebExtension engines. r=daleharvey
...
This is a rollup of all the patches that have landed on the cedar project branch:
https://hg.mozilla.org/projects/cedar/rev/891252fdd0b1a3e6b129025d94952ac30d922c7e
Bug 1492475 - Part 1: Migrate most, if not all nsSearchService consumers to use async APIs. r=florian
https://hg.mozilla.org/projects/cedar/rev/79b2eb2367aab104669bbc75c3b42290f7de1570
Bug 1492475 - Part 2: Move nsIBrowserSearchService.idl to toolkit/components/search/nsISearchService.idl and update references. r=florian
https://hg.mozilla.org/projects/cedar/rev/a947d3cdf078032614edaa491ec3db1d046b55f4
Bug 1492475 - Part 3: The search service init() method should simply return a Promise. r=florian
https://hg.mozilla.org/projects/cedar/rev/c1e172dfacad4b14ebdb352bee2fd946716acd59
Bug 1492475 - Part 4: Remove the synchronous initialization flow. r=florian
https://hg.mozilla.org/projects/cedar/rev/cd41189eac88aa6023af1b0a060c15ddcd407952
Bug 1492475 - Part 5: Since async initialization of the search service now is implicit behavior, remove the distinctive verbiage used internally. r=florian
https://hg.mozilla.org/projects/cedar/rev/2ae7189dfaa63cab0e264e7a2796b1610505c40a
Bug 1492475 - Part 6: Update the cache build task to work with an actual Promise and re-initialize only once at the same time - all to fix race conditions here. r=florian
https://hg.mozilla.org/projects/cedar/rev/c8ee92973f24a44496f2bee23c13e0c74b6e11d8
Bug 1492475 - Part 7: Make the region fetch not block the init flow, to ensure it's as fast as possible. r=florian
https://hg.mozilla.org/projects/cedar/rev/c44e674e160ebab49ea5ba1ed5821bb8d3c30e53
Bug 1492475 - Part 8: Introduce an init flag, which can only be used privately, that allows to explicitly skip waiting for the region check process to complete. r=florian
https://hg.mozilla.org/projects/cedar/rev/6c79eaf1d349638258d542ced0229d786f022683
Bug 1492475 - Part 9: Update unit tests to stop using 'currentEngine', in favor of 'defaultEngine'. r=Standard8
https://hg.mozilla.org/projects/cedar/rev/21b3aa17ee43dd0efd3c08564bbc7d747d4628b9
Bug 1492475 - Part 10: Update unit tests to be fully aware of the new, async signatures of the search service API and remove sync init flow tests. r=mkaply,florian
https://hg.mozilla.org/projects/cedar/rev/ce5ba6901957903ade31888cdc6a52e2b828dac0
Bug 1492475 - Part 11: Repair incorrect usage of the `identifier` property of nsISearchEngine instances. r=florian
https://hg.mozilla.org/projects/cedar/rev/fd177a7994b250605df4b98740bdd257373e21e5
Bug 1518543 - Fix up the Android (Fennec) nsISearchService shim to work with the new asynchronous API. r=florian
https://hg.mozilla.org/projects/cedar/rev/3653d8ee22bb242b3ddc0222cb1f711b68b52f91
Bug 1523708 - Change the search service interaction in the show-heartbeat action to use the new async API. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D18355
2019-02-02 11:27:21 +00:00
Andrea Marchesini
5a9e597f3d
Bug 1522210 - Fingerprinting and cryptomining classifiers must have separate nsIWebProgressListener blocking state codes - part 1 - UrlClassifierFeatureFactory::IsClassifierBlockingErrorCode, r=ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D17637
2019-01-30 13:43:34 +01:00
Kris Maglione
8ccab89886
Bug 1478124: Part 8b - Update DocShell module to use a static component manifest. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D15040
2018-12-16 17:27:58 -08:00
arthur.iakab
127fb281ff
Backed out 16 changesets (bug 1478124) for failing android geckoview-junit CLOSED TREE
...
Backed out changeset fce62c77a56b (bug 1478124)
Backed out changeset eb2fa3b5edf7 (bug 1478124)
Backed out changeset 8dacce59fcc0 (bug 1478124)
Backed out changeset 012fd0107204 (bug 1478124)
Backed out changeset 496aaf774697 (bug 1478124)
Backed out changeset 21f4fda03159 (bug 1478124)
Backed out changeset b0444e0bc801 (bug 1478124)
Backed out changeset d94039b19943 (bug 1478124)
Backed out changeset 5d85deac61c2 (bug 1478124)
Backed out changeset 929fd654c9df (bug 1478124)
Backed out changeset 1ddd80d9e91a (bug 1478124)
Backed out changeset b8d2dfdfc324 (bug 1478124)
Backed out changeset f500020a273a (bug 1478124)
Backed out changeset dd00365ebb55 (bug 1478124)
Backed out changeset 538e40c5ee13 (bug 1478124)
Backed out changeset bedaa9c437ad (bug 1478124)
2019-01-29 10:03:06 +02:00