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
Kris Maglione
605e3719de
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
Emilio Cobos Álvarez
2d5273b6c6
Bug 1520502 - Set the standard cursor and the custom cursor in the same IPC message. r=jmathies
...
This cleans up a bit and allows us to be smarter about which cursors
should we allow from content or what not, which will help with bug 1445844 and
co.
Differential Revision: https://phabricator.services.mozilla.com/D16711
2019-01-26 07:49:28 +01:00
Andrea Marchesini
0db1ced8aa
Bug 1514547 - Timing token to allow external protocol URLs are blocked in iframes without user-interaction, r=smaug
2019-01-24 20:05:03 +01:00
Andrea Marchesini
da0b231799
Bug 1514547 - No error should be returned when external protocol URLs are blocked in iframes, r=smaug
2019-01-24 20:05:03 +01:00
Andrea Marchesini
56431dfd94
Bug 1522181 - multiple external protocol URL blocker behind pref, r=smaug
2019-01-24 06:31:41 +01:00
Nika Layzell
046e0a18c7
Bug 1467223 - Part 4: Add support for piping redirected channels through nsDocShell's loading functions, r=qdot
...
This code largely skips the logic in load methods, and tries to simply get the
channel opened & connected to the correct listener ASAP, without breaking any
loading state.
Depends on D15610
Differential Revision: https://phabricator.services.mozilla.com/D15611
2019-01-23 21:07:08 +00:00
Emilio Cobos Álvarez
aa94e650c1
Bug 1521137 - The pres context's base min font size is dead code. r=heycam
...
Nobody uses it from js, and we only thread the value around in layout. Let's
kill all this code.
Differential Revision: https://phabricator.services.mozilla.com/D16999
2019-01-21 07:15:02 +00:00
Ehsan Akhgari
5530c0b72d
Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh
...
Differential Revision: https://phabricator.services.mozilla.com/D16052
2019-01-21 09:58:50 -05:00
Jon Coppeard
4caf6854b1
Bug 1512749 - Convert JS::gcreason::Reason to enum class JS:GCReason r=jonco r=mccr8
2019-01-21 13:09:12 +00:00
Ehsan Akhgari
498e2df734
Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
...
# ignore-this-changeset
2019-01-18 10:16:18 +01:00
Ehsan Akhgari
53c197e13a
Bug 1521000 - Part 1: Reformat the tree to ensure everything is formatted correctly with clang-format r=sylvestre
...
Summary: # ignore-this-changeset
Reviewers: sylvestre
Reviewed By: sylvestre
Subscribers: reviewbot, emilio, jandem, bbouvier, karlt, jya
Bug #: 1521000
Differential Revision: https://phabricator.services.mozilla.com/D16936
2019-01-18 10:12:56 +01:00
Kyle Machulis
9137039571
Bug 1518986 - Change docshell/ to use infallible Principal URL accessor; r=bzbarsky
...
Depends on D16372
Differential Revision: https://phabricator.services.mozilla.com/D16373
2019-01-14 22:40:33 +00:00
Kyle Machulis
d3355fe135
Bug 1518986 - Move docshell/ to use SchemeIs convenience functions; r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D16372
2019-01-17 15:13:22 +00:00
Ehsan Akhgari
7fb309f045
Bug 1518491 - Reduce the amount of UTF encodings we do when reporting content blocking events; r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D16217
2019-01-14 09:36:12 -05:00
Jan Henning
d561bbf114
Bug 1498812 - Part 9: Switch session store/session history to use visual viewport for scroll position tracking. r=mikedeboer,snorp
...
For simplicity's sake, for now we keep storing only one scroll position per
history entry (bug 1499210), so if we have to choose between the layout and the
visual viewport, the latter is a vastly better choice, as it more accurately
represents the scroll position as perceived by the user, especially when the
page has been pinch-zoomed.
This also means that instead of the normal scroll events, the session store now
has to listen for the corresponding events specific to the visual viewport.
We also extend the scroll position test to check that the scroll position isn't
just properly saved, but also actually properly restored in practice as well.
We only add this test now instead of already adding it beforehand like we did
with the rest of the test
- to avoid having to temporarily extend the checkScroll() helper function to
deal with todo()/todo_is etc.
- because getting that part of the test to complete without timing out (which
would be one of its natural failure modes, because the expected events would
be missing) would require faking even more scroll events
- because we already have the todo() tests that are telling us the we didn't
*store* any scroll position in the first place, so there's no point in trying
to actually restore anything
For the GeckoView saveAndRestoreState test, we now spin the event loop once
before setting the scroll position in order to give APZ opportunity to settle
down after the initial page load.
Differential Revision: https://phabricator.services.mozilla.com/D15690
2019-01-11 19:50:09 +00:00
Jan Henning
a207c5d710
Bug 1498812 - Part 8: Simplify docshell's GetCurScrollPos() function. r=nika
...
This is now only being used as a purely internal helper function, so there's no
need for mucking about with nsresults, out parameters, retrieving x- and y-
coordinates separately, etc.
Differential Revision: https://phabricator.services.mozilla.com/D15689
2019-01-11 19:49:56 +00:00
Razvan Maries
649cecbe01
Merge mozilla-central to autoland. a=merge on a CLOSED TREE
2019-01-11 17:33:16 +02:00
Christoph Kerschbaumer
be58c1d92d
Bug 1513241: Update loadURI interface and pass a loadURIOptions dictionary from frontend to docshell loads. r=bz
2019-01-11 12:43:39 +01:00
Jonathan Kingston
4b05c6c954
Bug 1405176 - Change IsFrame() in nsDocShell to be an explicitly passed attribute. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D15967
2019-01-10 16:42:07 +00:00
Ehsan Akhgari
bef12263c4
Bug 1517136 - Devirtualize and inline the calls in nsSecureBrowserUIImpl::CheckForBlockedContent(); r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D15574
2019-01-07 17:56:07 -05:00
Gurzau Raul
ca7e228805
Backed out changeset d801dfa24d7d (bug 1517136) for build bustages at /security/manager/ssl/nsSecureBrowserUIImpl.cpp on a CLOSED TREE
2019-01-07 23:42:15 +02:00
Ehsan Akhgari
6a358bf780
Bug 1517136 - Devirtualize and inline the calls in nsSecureBrowserUIImpl::CheckForBlockedContent(); r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D15574
2019-01-07 16:03:40 -05:00
Gurzau Raul
45845ef185
Backed out changeset f6f97217b46c (bug 1517136) for build bustage at /security/manager/ssl/nsSecureBrowserUIImpl.cpp on a CLOSED TREE
2019-01-07 21:31:52 +02:00
Ehsan Akhgari
124e361b1d
Bug 1517136 - Devirtualize and inline the calls in nsSecureBrowserUIImpl::CheckForBlockedContent(); r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D15574
2019-01-07 13:53:46 -05:00
Jonathan Kingston
92c5938cf9
Bug 1517768 - Fix typos of DocShell spelling. r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D15733
2019-01-04 23:17:00 +00:00