Emilio Cobos Álvarez
e417f09f06
Bug 1598613 - Account for <link media=""> for speculative loads of stylesheet and preload links. r=hsivonen
...
<link media> applies to both <link rel="stylesheet"> (see
HTMLLinkElement::GetStyleSheetInfo) and all link rel="preload" links,
regardless of as value (see HTMLLinkElement::CheckPreloadAttrs), so pass it
down and check them for all of those cases.
Note that in the <link rel="stylesheet"> case we'd still have to load it, but
it doesn't block rendering and we defer its loading until more important
stylesheets are done (see SheetLoadData::ShouldDefer() which returns false if
the media attribute didn't match). So speculatively loading it seems
counter-productive.
Differential Revision: https://phabricator.services.mozilla.com/D103565
2021-02-01 08:03:57 +00:00
Honza Bambas
ec52ba8274
Bug 1618536 - Preload for fonts, r=heycam,hsivonen
...
Depends on D72118
Differential Revision: https://phabricator.services.mozilla.com/D70235
2020-05-11 14:14:32 +00:00
Honza Bambas
9e027ce534
Bug 1618535 - Implement preloading for as="fetch" type r=kershaw,baku
...
Depends on D69860
Differential Revision: https://phabricator.services.mozilla.com/D69628
2020-05-11 14:12:33 +00:00
Edgar Chen
3f250fba44
Bug 1618295 - Make imgRequestProxy implement and use PreloaderBase to support the preload as speculative load feature; r=tnikkel,smaug,mayhemer
...
Depends on D72083
Differential Revision: https://phabricator.services.mozilla.com/D69860
2020-05-11 14:43:05 +00:00
Honza Bambas
ce072f8e6a
Bug 1594449 - <link rel="preload"> implemented as a speculative load initiated during the prescan phase in the HTML5 parser, disabled by default, only supports "script" and "styles" types, r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D52019
--HG--
extra : moz-landing-system : lando
2019-11-27 21:45:12 +00:00
Emilio Cobos Álvarez
1f94271c1d
Bug 1546783
- Speculatively load @import rules inside <style>. r=bzbarsky,hsivonen
...
We don't bother handling the nested element case amazingly. We'd instead stop
at the inner <style> element and drop the URLs from the outer.
But I think that's ok. Any good way to test this? I've verified it does the
right thing looking at the CSS loader logs, but... :)
Differential Revision: https://phabricator.services.mozilla.com/D47471
--HG--
extra : moz-landing-system : lando
2019-09-30 13:39:33 +00:00
Coroiu Cristina
b3555c999a
Backed out 3 changesets (bug 1546783
) on request by emilio on a CLOSED TREE
...
Backed out changeset ad3822105edc (bug 1546783
)
Backed out changeset a8ac28c2bfc7 (bug 1546783
)
Backed out changeset b2678d2e55fb (bug 1546783
)
2019-09-30 16:23:16 +03:00
Emilio Cobos Álvarez
f65a6de55c
Bug 1546783
- Speculatively load @import rules inside <style>. r=bzbarsky,hsivonen
...
We don't bother handling the nested element case amazingly. We'd instead stop
at the inner <style> element and drop the URLs from the outer.
But I think that's ok. Any good way to test this? I've verified it does the
right thing looking at the CSS loader logs, but... :)
Differential Revision: https://phabricator.services.mozilla.com/D47471
--HG--
extra : moz-landing-system : lando
2019-09-30 13:00:22 +00:00
Thomas Nguyen
cf20303f06
Bug 1528697 - Remove ReferrerPolicy.h and add utils to ReferrerInfo r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D41956
--HG--
extra : moz-landing-system : lando
2019-08-21 12:09:06 +00:00
Thomas Nguyen
32ab8293ff
Bug 1528697 - Expose ReferrerPolicy.webidl and use referrerpolicy enum r=smaug
...
ReferrerPolicy gets tossed back and forth as a uint32_t and
ReferrerPolicy enum in header file. Expose ReferrerPolicyValues from
webidl file and use consistently in native code.
Differential Revision: https://phabricator.services.mozilla.com/D41954
--HG--
extra : moz-landing-system : lando
2019-08-21 13:24:45 +00:00
Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Thomas Nguyen
6d1ae50d62
Bug 1460920 - Part 1 - Speculative loading script should take referrerpolicy attribute in script element into account r=hsivonen
...
Referrerpolicy attribute should be taken with high priority order than
mSpeculationReferrerPolicy
Differential Revision: https://phabricator.services.mozilla.com/D11636
--HG--
extra : moz-landing-system : lando
2018-11-19 09:39:16 +00:00
Andi-Bogdan Postelnicu
0d7d76f23b
Bug 1453795 - Parser/HTML - Initialize member fields in classes/ structures. r=hsivonen
2018-06-14 11:46:13 +03:00
Chris Peterson
71422dcaa9
Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
...
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent
MozReview-Commit-ID: KuUsnVe2h8L
--HG--
extra : source : c14655ab3df2c9b1465dd8102b9d25683359a37b
2018-04-28 12:50:58 -07:00
Sebastian Hengst
0819f35e51
Backed out 4 changesets (bug 525063) on request from Andi. a=backout
...
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon
a3a77c0312
Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan
2018-04-10 21:11:02 +02:00
Boris Zbarsky
46fc331568
Bug 1446097. Switch to "set" as the canonical nsGkAtoms name of the string "set", so it matches the actual tag name "set" in SVG. r=hsivonen,njn
...
Most of the noise is from the fact that clang-format on parser/html/*.{h,cpp}
reformatted all sorts of stuff. Not running it caused lots of format changes
from the generator... I guess we changed the format rules since the last time
this got run?
MozReview-Commit-ID: IA2G87zUIKN
2018-03-16 11:26:06 -04:00
Jon Coppeard
3bdf7ef24a
Bug 1382020 - Don't preload nomodule scripts when modules are enabled r=hsivonen
2018-01-23 13:07:37 +00:00
Chris Peterson
16e0dd144e
Bug 1424548 - Part 1: Fix non-unified build of HTML parser code. r=hsivonen
...
--HG--
extra : rebase_source : 78aa25eb45c0f7cd446ac7eab4f853c46590c7e7
2017-12-04 13:09:15 -08:00
Masatoshi Kimura
082293ce3e
Bug 1424468 - Stop using Encoding::ForName in HTML parser. r=hsivonen
...
MozReview-Commit-ID: 1rONnEXLgPf
--HG--
extra : rebase_source : 081effdc2a3ee0292d73666abc7bda7b62d3a0a7
2017-12-07 23:21:42 +09:00
Henri Sivonen
24aae439f6
Bug 1410848 - Use RAII with nsHtml5TreeOpExecutor::mFlushState. r=smaug.
...
MozReview-Commit-ID: 3a1tyYGT8u5
2017-11-01 13:16:23 +02:00
Honza Bambas
2f9f6408e0
Bug 1053321 - Correctly pass info about 'defer' and 'async' attributes to HTML5 parser invoked script preload. r=bkelly
2017-08-19 05:35:00 -04:00
Josh Matthews
bfdced6e8c
Bug 1385907 - Combine exclusive fields of nsHtml5SpeculativeLoad. r=hsivonen
2017-08-16 19:33:00 -04:00
Thomas Nguyen
439e5137c2
Bug 1384493 - Speculative loading style should use correct referrer policy. r=wchen
...
When preloading style link in <head>, we used speculative referrer policy which is
delievered from meta tag and ignored the referrerpolicy attribute.
We should use referrerpolicy attribute with the higher priority
MozReview-Commit-ID: 1rQmBV01jvV
2017-08-15 00:05:00 -04:00
Phil Ringnalda
c5ab89e934
Backed out changeset 548ed79f2337 (bug 1053321) for strange and terribly-reported failures in Android opt mochitest-15 and debug mochitest-36
...
CLOSED TREE
MozReview-Commit-ID: IigWQ1wnxhZ
--HG--
extra : source : 70bd3854b6d034b67419ba11044b6cbe82b713bc
2017-08-01 23:13:42 -07:00
Honza Bambas
f33b5cb515
Bug 1053321 - Correctly pass info about 'defer' and 'async' attributes to HTML5 parser invoked script preload. r=bkelly
...
--HG--
extra : histedit_source : 1743f499ca20d75df7e957fab1c942c4f4e22df8
2017-08-01 21:21:09 +02:00
Ryan VanderMeulen
1b497ab253
Backed out changeset 20344f0dbff9 (bug 1053321) for ESLint failures.
2017-08-01 16:14:01 -04:00
Honza Bambas
d8659dd692
Bug 1053321 - Correctly pass info about 'defer' and 'async' attributes to HTML5 parser invoked script preload. r=bkelly
2017-08-01 12:43:00 -04:00
Henri Sivonen
2dfbad67f6
Bug 1347737 - Introduce a new non-heap-allocated type for holding nsStringBuffer* in the HTML parser. r=wchen.
...
MozReview-Commit-ID: Gn9fXroxQhY
--HG--
extra : rebase_source : 70bc539e80ce0b2372569a194366cfe559614fd1
2017-03-20 14:45:15 +02:00
Henri Sivonen
48c797f422
Bug 1293252
- Transfer document quirkiness via the speculative load queue. r=wchen
...
MozReview-Commit-ID: 4lTbxSSrCf4
--HG--
extra : rebase_source : ccd67d8326f5cb9fb0372d5a42b15481aa886d66
2016-08-25 12:20:58 +03:00
Christoph Kerschbaumer
2b676b1673
Bug 663570 - MetaCSP Part 4: Speculative parser changes (r=bz)
2015-11-14 19:28:51 -08:00
Francois Marier
34de332db0
Bug 992096 - Implement Sub Resource Integrity [1/2]. r=baku,r=ckerschb
...
Code changes
2015-08-12 20:19:11 -07:00
Franziskus Kiefer
2ae91f6891
Bug 1166910 - Referrer attribute for img tag. r=ckerschb, r=hsivonen, r=bz
...
--HG--
extra : rebase_source : ceb3a3d18acf7deb9d13cfae499b7e112db8ffce
2015-06-05 15:25:24 -07:00
Carsten "Tomcat" Book
8bc87efb1e
Backed out changeset f5f3827ffcf1 (bug 1166910) for bustage
2015-07-01 08:19:28 +02:00
Franziskus Kiefer
91b0523177
Bug 1166910 - referrer attribute for img tag. r=hsivonen
2015-06-05 15:25:24 -07:00
Patrick McManus
cc04db5e46
bug 1174152 - crossorigin attribute for link rel=preconnect r=hsivonen
2015-06-19 17:11:42 -04:00
Carsten "Tomcat" Book
325cd7219a
Backed out changeset feb7cd25aafb (bug 1174152) for mulet timeout in test_rel_preconnect.html
...
--HG--
extra : rebase_source : aabdc3669df5b252c4373b9fb6049565e6560a0c
2015-06-17 16:58:57 +02:00
Patrick McManus
78c4fb4975
bug 1174152 link rel=preconnect crossorigin=anonymous r=hsivonen
2015-05-06 10:09:27 -04:00
Patrick McManus
57ade7a8a4
bug 1150136 - rel=preconnect from html parser r=hsivonen
2015-05-05 20:55:18 -04:00
John Schoenick
ef04bff7d9
Bug 1067345 - Part 3 - Implement speculative load operations for <picture> and <img srcset>
2014-12-10 18:54:00 -05:00
Owen Chu
50259ae67d
Bug 704320 - Parse and implement meta tag-based referrer policies for documents and nsHttpChannels. (r=bz,mcmanus)
2014-11-18 08:46:29 -05:00
Henri Sivonen
0fdbc6a846
Bug 959150 part 6 - Move the opening brace to the next line in methods whose body is in non-generated .h files under parser/html/. r=smaug.
2014-03-05 21:38:50 +02:00
Ryan VanderMeulen
6626f074d4
Backed out 8 changesets (bug 959150) for Linux debug build bustage on a CLOSED TREE.
...
Backed out changeset 30bdc9b15e8e (bug 959150)
Backed out changeset 630e489aed30 (bug 959150)
Backed out changeset c6874004efe7 (bug 959150)
Backed out changeset ebc67518a962 (bug 959150)
Backed out changeset 14441e528582 (bug 959150)
Backed out changeset 8d0ae8bffb08 (bug 959150)
Backed out changeset 603b63c33e9a (bug 959150)
Backed out changeset 261e2d244c54 (bug 959150)
2014-03-05 15:26:07 -05:00
Henri Sivonen
30d2af3ec5
Bug 959150 part 6 - Move the opening brace to the next line in methods whose body is in non-generated .h files under parser/html/. r=smaug.
2014-03-05 21:38:50 +02:00
Ehsan Akhgari
1b83407ce9
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Cykesiopka
f5e1032f63
Bug 528863 - Use _h instead of _h__ in include guards in the HTML5 parser. r=hsivonen
2013-08-23 11:07:10 -04:00
Patrick McManus
aef0638b1c
bug 792438 part 1 - identify css and head-based-js as dedicated network resources r=bz
2012-12-04 18:06:29 -05:00
Boris Zbarsky
354cdcc7f6
Bug 732209 part 3. Communicate the CORS state of preloads to the CSS loader. r=sicking,hsivonen
2012-08-28 13:10:08 -04:00
Ehsan Akhgari
e368dc9c85
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Gervase Markham
68d38d677f
Bug 759095 - upgrade license to MPL 2, and other licensing cleanups.
...
--HG--
extra : rebase_source : da55a4937383eda2baf7c9a362501da8ee664146
2012-05-29 16:52:43 +01:00