Commit Graph
6 Commits
Author SHA1 Message Date
CanadaHonk 5f86c31234 Bug 1827941 - Do not preload nonmatching @import supports() r=emilio
Added evaluating supports() conditions in the import preload scanner
and not emitting URLs if they do not match.

There is no use preloading imports for features we do not support,
as they will never be loaded since supports() conditions cannot change mid-page.

Also tweaked internals a bit (added a generic ResetState internal func) and
added a new gtest for import supports(), plus a WPT test print test.

Differential Revision: https://phabricator.services.mozilla.com/D175432
2023-04-25 07:22:29 +00:00
Emilio Cobos Álvarez eae8939621 Bug 1750917 - Ignore layer statement rules before import in ImportScanner. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D136309
2022-01-22 00:50:40 +00:00
Emilio Cobos Álvarez c10b459538 Bug 1585674 - Start loads more incrementally in the @import scanner. r=hsivonen
Consider the case of a very big <style> element, with a few imports on top,
which we cut half-way over the network.

The @import scanner would be likely to have found anything there is to be found,
but we won't process it until we pop the <style> element. It's relatively low
effort to support this use-case by making Scan() return the already-found urls.

Differential Revision: https://phabricator.services.mozilla.com/D47914
2019-10-03 07:34:35 +00:00
Emilio Cobos Álvarez cb142ccccd Bug 1546783 - Add a best-effort @import rule scanner for the parser. r=bzbarsky
Doesn't recognize all the edge cases, but I think this should be good enough.

Let me know if you think something common is missing.

Differential Revision: https://phabricator.services.mozilla.com/D47469
2019-09-30 13:29:23 +00:00
Coroiu Cristina 0279094995 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 99b3794187 Bug 1546783 - Add a best-effort @import rule scanner for the parser. r=bzbarsky
Doesn't recognize all the edge cases, but I think this should be good enough.

Let me know if you think something common is missing.

Differential Revision: https://phabricator.services.mozilla.com/D47469
2019-09-30 10:37:22 +00:00